Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT
Date
Msg-id 20131030141337.GC5922@eldon.alvh.no-ip.org
Whole thread Raw
In response to BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT  (peter.reijnders@verpeteren.nl)
List pgsql-bugs
peter.reijnders@verpeteren.nl wrote:

> I am having troubles with a the RETURNING clause on a INSERT when using
> PQsendQueryParams.
> PQsendQuery is returning the record as it has been written to to database.
> PQsendQueryParams appears just to be returning the records, before these
> have been written.
> That means that defaults and serial fields are ('') empty.
> Am I doing something wrong, or is PQsendQueryParams indeed behaving
> differently then PQsendQuery.

Anyone have an idea about this?  Seems mighty curious.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

pgsql-bugs by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: BUG #8568: PLPGSQL Documentation For CASE Is incorrect
Next
From: Francisco Olarte
Date:
Subject: No reply-to in list messages.