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