Re: new RETURNING clause and Pg.pm

Поиск
Список
Период
Сортировка
От Brandon Metcalf
Тема Re: new RETURNING clause and Pg.pm
Дата
Msg-id Pine.LNX.4.58L.0806261224210.9186@cash.us.nortel.com
обсуждение исходный текст
Ответ на Re: new RETURNING clause and Pg.pm  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: new RETURNING clause and Pg.pm  ("Brandon Metcalf" <bmetcalf@nortel.com>)
Список pgsql-general
t == tgl@sss.pgh.pa.us writes:

 t> "Brandon Metcalf" <bmetcalf@nortel.com> writes:
 t> > I just upgraded to 8.3.3 and taking advantage of the RETURNING clause
 t> > which is really cool.  I've found that with Pg.pm $r->resultStatus
 t> > returns the integer "2" when the RETURNING clause is used on an
 t> > insert.

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

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


I'll look through the Pg.pm code and see what I can find.


--
Brandon

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: new RETURNING clause and Pg.pm
Следующее
От: "Michael Shulman"
Дата:
Сообщение: Re: what are rules for?