Thread: Re: Null boolean values show as false in the data

Re: Null boolean values show as false in the data

From
"Ben Trewern"
Date:
While your at it null values need to be treated correctly for other field 
types.

I don't think "" = <null> in Postgres.  If so then it would be nice to be 
able to set text/varchar to null somehow.

Regards,

Ben

>From: Andreas Pflug <pgadmin@pse-consulting.de>
>To: Ben Trewern <ben_trewern@hotmail.com>
>CC: pgadmin-support@postgresql.org
>Subject: Re: [pgadmin-support] Null boolean values show as false in the 
>data
>Date: Tue, 12 Oct 2004 09:31:54 +0000
>
>Ben Trewern wrote:
>>All,
>>
>>PgAdmin III 1.2 beta 2
>>Postgres 8.0 beta 2
>>
>>I've just noticed that null values in boolean fields show up as false in 
>>the data grid.
>
>You're right, and unfortunately there's no quick fix for this. We're using 
>a wxGridCellBoolEditor internally, which only knows two states. We'll have 
>to redesign that completely. I'll have to think about that a little; in the 
>meantime, I've put it on BUGS.txt.
>
>Regards,
>Andreas
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger



Re: Null boolean values show as false in the data

From
Andreas Pflug
Date:
Ben Trewern wrote:
> While your at it null values need to be treated correctly for other 
> field types.
> 
> I don't think "" = <null> in Postgres.  If so then it would be nice to 
> be able to set text/varchar to null somehow.

NULL *is* handled for text. An empty field is handled as NULL, an empty 
string must be entered ''. This is documented.

Regards,
Andreas