Re: pg_atoi: zero length string - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_atoi: zero length string
Date
Msg-id 12778.1038182386@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_atoi: zero length string  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-hackers
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> It is in the release notes.  I'm not sure why the behaviour was changed
> (other than it really is bad behaviour).

I think someone exhibited a case where COPY behavior was really
confusing because it was silently accepting an empty string for an int
field, instead of giving an error.  Since the behavior seemed obviously
bogus anyway, we were finally motivated to change it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: 7.3RC2 please
Next
From: Bruce Momjian
Date:
Subject: patch testing