Re: ERROR: invalid input syntax for integer: ""

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: ERROR: invalid input syntax for integer: ""
Дата
в 10:49:52
Msg-id
19725.1179928171@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
ERROR: invalid input syntax for integer: "" "Pit M." <fmi-soft@gmx.de>
Re: ERROR: invalid input syntax for integer: "" Tom Lane <tgl@sss.pgh.pa.us>
Re: ERROR: invalid input syntax for integer: "" "Pit M." <fmi-soft@gmx.de>
Re: ERROR: invalid input syntax for integer: "" Magnus Hagander <magnus@hagander.net>
Re: ERROR: invalid input syntax for integer: "" Tom Lane <tgl@sss.pgh.pa.us>
"Pit M."  writes:
> Following query fails in pgAdmin which is OK because the field PLZZ 
> contains characters:

> select * from "PERSONEN" where (CAST("PERSONEN"."PLZZ" AS INTEGER) >= 
> 70000 );

> but if using the same query with a cursor ist works:

> START TRANSACTION;

> DECLARE c21112234 SCROLL CURSOR FOR select * from "PERSONEN" where 
> (CAST("PERSONEN"."PLZZ" AS INTEGER) >= 70000;

> COMMIT;

> In my opinion this query should also fail with cursors.

It would have failed if you had run the cursor far enough to fetch one
of the bad rows.

			regards, tom lane
В списке pgsql-bugs по дате отправления
От: Pit M.
Дата:
От: Joshua Kramer
Дата:
Сообщение: Re: [ADMIN]
FAQ