Search Postgresql Archives

Re: Null vs. Empty String in Postgres 8.3.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 4, 2010 at 10:23 PM, Scott Marlowe <scott.marlowe@xxxxxxxxx> wrote:
> On Sun, Apr 4, 2010 at 9:03 PM, Wang, Mary Y <mary.y.wang@xxxxxxxxxx> 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 because it 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.
>

Or, since you have the default, set it to null.... (Which may be what
you thought you where doing?)

-- 
Peter Hunsberger

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux