new RETURNING clause and Pg.pm - Mailing list pgsql-general

From Brandon Metcalf
Subject new RETURNING clause and Pg.pm
Date
Msg-id Pine.LNX.4.58L.0806261024110.9186@cash.us.nortel.com
Whole thread Raw
Responses Re: new RETURNING clause and Pg.pm  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: "Michael Shulman"
Date:
Subject: Re: what are rules for?
Next
From: Bob Pawley
Date:
Subject: Windows Crash