Re: new RETURNING clause and Pg.pm

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: new RETURNING clause and Pg.pm
Дата
Msg-id 18205.1214500726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на new RETURNING clause and Pg.pm  ("Brandon Metcalf" <bmetcalf@nortel.com>)
Ответы Re: new RETURNING clause and Pg.pm  ("Brandon Metcalf" <bmetcalf@nortel.com>)
Список pgsql-general
"Brandon Metcalf" <bmetcalf@nortel.com> writes:
> I just upgraded to 8.3.3 and taking advantage of the RETURNING clause
> which is really cool.  I've found that with Pg.pm $r->resultStatus
> returns the integer "2" when the RETURNING clause is used on an
> insert.

> Of course, without using RETURNING the status is the constant
> PGRES_COMMAND_OK.

Sounds to me like a bug in Pg.pm --- it's probably not expecting
a result to come back from an INSERT.  You oughta nag its author
about that.

            regards, tom lane

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: ERROR: could not open relation with OID 2836
Следующее
От: "Brandon Metcalf"
Дата:
Сообщение: Re: new RETURNING clause and Pg.pm