pg7.3.4: pg_atoi: zero-length string

Поиск
Список
Период
Сортировка
От Rob Fielding
Тема pg7.3.4: pg_atoi: zero-length string
Дата
Msg-id 3FA78BBF.9010803@dsvr.net
обсуждение исходный текст
Ответы Re: pg7.3.4: pg_atoi: zero-length string
Список 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



В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: SELECT question
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: pg7.3.4: pg_atoi: zero-length string