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

From Tom Lane
Subject Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT
Date
Msg-id 22390.1384140078@sss.pgh.pa.us
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 writes:
> I am having troubles with a the RETURNING clause on a INSERT when using
> PQsendQueryParams.

The bug in this test program is that you're asking for binary output
format (by passing 1 as the last argument to PQsendQueryParams) but then
expecting text-format results.  The one column that's of type text prints
okay anyway (since there's no difference), but the others don't.  If
you change that argument to zero, the program prints the expected results.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #8532: postgres fails to start with timezone-data >=2013e
Next
From: mle+tools@mega-nerd.com
Date:
Subject: BUG #8586: Misleading fe_sendauth error message