new RETURNING clause and Pg.pm

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

Is checking for "2" my best option?

--
Brandon

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

Предыдущее
От: "Michael Shulman"
Дата:
Сообщение: Re: what are rules for?
Следующее
От: Bob Pawley
Дата:
Сообщение: Windows Crash