Error when comparing an integer to an empty string.

Поиск
Список
Период
Сортировка
От David Pradier
Тема Error when comparing an integer to an empty string.
Дата
Msg-id 20021121163010.GA27054@apartia.fr
обсуждение исходный текст
Ответы Re: Error when comparing an integer to an empty string.  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-hackers
Hi!

I'm new on this list, my name is David Pradier, and i'm french.

I'm currently trying the new postgresql 7.3rc1, and i've noticed that if
i compared an integer to an empty string, i ran in an error.

Example :
=# select nom_comm from operation where id_operation = '';
ERROR:  pg_atoi: zero-length string

\d operation gives :
id_operation | integer | not null default nextval('"operation_type_id_operation_seq"'::text)

Is this a bug or a feature of the new 7.3 version ?
Is there a purpose ?

Thanks for your help.

Best regards,
David.
-- 
dpradier@apartia.fr


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why an array in pg_group?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Error when comparing an integer to an empty string.