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

From Tom Lane
Subject Re: Null vs. Empty String in Postgres 8.3.8
Date
Msg-id 1139.1270435782@sss.pgh.pa.us
Whole thread Raw
In response to Null vs. Empty String in Postgres 8.3.8  ("Wang, Mary Y" <mary.y.wang@boeing.com>)
Responses Re: Null vs. Empty String in Postgres 8.3.8
List pgsql-general
"Wang, Mary Y" <mary.y.wang@boeing.com> writes:
> Can someone provide a link to the Postgres 8.x documentation that provides information about Null vs. Empty String?
> Here is the situation:
> Currently,  the source code performs the following SQL statement :
> UPDATE user_group set subversion_flags='' WHERE user_id='5818' AND group_id='438';
> (This SQL statement worked in a very old version of Postgres)
> and pgsql 8.3.8 returned ERROR:  invalid input syntax for integer: ""

You were not getting a NULL there.  You were getting an integer zero,
as a result of sloppy input checking in the integer-input routine.

            regards, tom lane

pgsql-general by date:

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