pg7.3.4: pg_atoi: zero-length string

From: Rob Fielding <rob(at)dsvr(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: pg7.3.4: pg_atoi: zero-length string
Date: 2003-11-04 11:21:35
Message-ID: 3FA78BBF.9010803@dsvr.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

We're currently experiencing a problem where SQL statements are failing
when entring a '' for not not-null integer columns:

ERROR: pg_atoi: zero-length string

This was discovered just after a database migration from 7.2 to 7.3.4.

Example:

insert into renewal_cache
(dom, expiry, issued, aid) values
('data','2004-03-05','19980305','')

The above example in just one case where 'aid' can accept a null value.
The use of quotes around all values was established as IIRC pg7.2
wouldn't accept statements without them. The use of this convention is
extensive.

Cheers,

Rob Fielding
Development
Designer Servers Ltd

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2003-11-04 11:32:22 Re: pg7.3.4: pg_atoi: zero-length string
Previous Message Martin Hart 2003-11-04 11:17:07 Re: Obtain boolean value of expression in PLPGSQL