Re: ecpg help with 7.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sid" <sbhatt(at)installs(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ecpg help with 7.3
Date: 2003-01-29 08:41:40
Message-ID: 21384.1043829700@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Sid" <sbhatt(at)installs(dot)com> writes:
> Cannot Insert in table xyz(-400):50 'ERROR: pg_atoi: zero-length string'
> my first guess was that there was a zero length string (NULL) being inserted
> in the table...

A zero-length string is not a NULL (even if Oracle can't tell the
difference).

Before 7.3, pg_atoi (the integer datatype's input converter) would
sloppily accept a zero-length string as meaning 0 (not NULL). We
fixed that ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rick Gigger 2003-01-29 09:05:33 Re: Using RSYNC for replication?
Previous Message Oleg Bartunov 2003-01-29 08:37:13 Re: tsearch comments