Re: Null vs. Empty String in Postgres 8.3.8 - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Null vs. Empty String in Postgres 8.3.8
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Null vs. Empty String in Postgres 8.3.8  ("Wang, Mary Y" <[email protected]>)
Responses Re: Null vs. Empty String in Postgres 8.3.8
List pgsql-general
On Sun, Apr 4, 2010 at 9:03 PM, Wang, Mary Y <[email protected]> wrote:
> I still don't get it.  I do want a zero for the subversion_flags to be stored in the table.  But it returned an error
becauseit didn't like subversion_flags='' in the UPDATE SQL statement. 
>
> subversion_flags | integer       | not null default 0

Right. '' is not 0.  the old version of pgsql converted '' to 0 for
you, incorrectly.  Now if you want 0 you need to say 0.

pgsql-general by date:

Previous
From: "Wang, Mary Y"
Date:
Subject: Re: Null vs. Empty String in Postgres 8.3.8
Next
From: Peter Hunsberger
Date:
Subject: Re: Null vs. Empty String in Postgres 8.3.8