pg_atoi error

Поиск
Список
Период
Сортировка
От LIANHE SHAO
Тема pg_atoi error
Дата
Msg-id f41876f40f99.f40f99f41876@jhmimail.jhmi.edu
обсуждение исходный текст
Ответы Re: pg_atoi error  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-novice
Hello,

In my query:
select * from experimentinfo where expid='1';
here data type of expid is int.
My question is:
if I change expid ='xyz', error is: pg_atoi: error
in "xyz": can't parse "xyz"
if I change expid ='', error is: pg_atoi:
zero-length string

In mysql, seems this will not happen and will give
you 0 row result. but not error message.

So, How can I avoid these annoying message?

Regards,
William


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

Предыдущее
От: Aarni Ruuhimäki
Дата:
Сообщение: 7.4.1 template1
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: pg_atoi error