Re: pg_atoi: zero length string

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: "Larry Rosenman" <ler(at)lerctr(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_atoi: zero length string
Date: 2002-11-24 23:59:46
Message-ID: 12778.1038182386@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-11-25 02:11:56 patch testing
Previous Message Marc G. Fournier 2002-11-24 23:44:55 Re: 7.3RC2 please