Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: peter(dot)reijnders(at)verpeteren(dot)nl
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT
Date: 2013-10-30 14:13:37
Message-ID: 20131030141337.GC5922@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

peter(dot)reijnders(at)verpeteren(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Francisco Olarte 2013-10-30 14:32:58 No reply-to in list messages.
Previous Message Pavel Stehule 2013-10-30 03:18:31 Re: BUG #8568: PLPGSQL Documentation For CASE Is incorrect