Skip site navigation (1) Skip section navigation (2)

Re: Show NULL values AS <NULL> not working

From: "Andy Shellam" <andy(dot)shellam-lists(at)mailnetwork(dot)co(dot)uk>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: Show NULL values AS <NULL> not working
Date: 2008-01-14 22:49:57
Message-ID: 33671a790801141449m74d0dfd5h487bba60350cfbe9@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-support
Hi guys,

A bit more info.

If I write a query manually (i.e. SELECT * FROM table) then the column shows
up as "<NULL>" which is what I expect.
However, if I write click the table and hit the "View Data" menu option, the
column is blank.

Andy.

On 1/14/08, Andy Shellam <andy(dot)shellam-lists(at)mailnetwork(dot)co(dot)uk> wrote:
>
> Hi Dave and team,
>
> Another slight bug (I think):
>
> I have a table which has a column called "first_invalid" which should be a
> timestamp if the record is invalid, or NULL if it's valid.
> In PgAdmin I have the "Show NULL values as <NULL>" option enabled, but it
> still displays a blank cell for this column.
>
> The reason why I think it may not be a bug, is I tried doing this:
>
> "SELECT COALESCE(first_invalid, '<NULL>') AS first_invalid FROM table"
>
> but PostgreSQL threw it out because "<NULL>" is not a valid timestamp -
> instead I had to do:
>
> "SELECT COALESCE(first_invalid, '1900-01-01') AS first_invalid FROM table"
>
> to prove the column is in fact NULL, and I do get: "1900-01-01
> 00:00:00+00" for this record, but in the data entry grid, PgAdmin still
> displays it blank.
>
> Question: is this a bug, or intended behaviour?
>
> Thanks,
>
> Andy
>

In response to

Responses

pgadmin-support by date

Next:From: Michael ShapiroDate: 2008-01-14 22:57:10
Subject: Re: Show NULL values AS <NULL> not working
Previous:From: Andy ShellamDate: 2008-01-14 22:41:59
Subject: Show NULL values AS <NULL> not working

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group