Re: BUG #1381: invalid input syntax for integer: ""

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1381: invalid input syntax for integer: ""
Дата
Msg-id 12884.1105423859@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1381: invalid input syntax for integer: ""  ("Nicolas Addington" <adding@math.wisc.edu>)
Список pgsql-bugs
"Nicolas Addington" <adding@math.wisc.edu> writes:
> PostgreSQL version: 8.0

tsk, tsk --- it's not 8.0.  Yet.

> When a pl/perl trigger for an insert event changes an integer column in the
> new row to null, it fails.  Interestingly, it doesn't have a problem if the
> column was originally null.

Looks like we have to check *both* SvOK() and SvTYPE() everywhere.
Sigh.  Done --- thanks for the report.

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: pg_dump fails to set index ownership
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump fails to set index ownership