Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfi43-0004qz-Up for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Nov 2013 03:21:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vfi43-0006kv-FE for pgsql-bugs@arkaria.postgresql.org; Mon, 11 Nov 2013 03:21:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfi42-0006kp-R6 for pgsql-bugs@postgresql.org; Mon, 11 Nov 2013 03:21:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vfi3z-0002LZ-Vo for pgsql-bugs@postgresql.org; Mon, 11 Nov 2013 03:21:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rAB3LIEN022391; Sun, 10 Nov 2013 22:21:19 -0500 From: Tom Lane To: peter.reijnders@verpeteren.nl cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8524: PQsendQueryParams with RETURNING clause on a INSERT In-reply-to: References: Comments: In-reply-to peter.reijnders@verpeteren.nl message dated "Sun, 13 Oct 2013 09:30:10 -0000" Date: Sun, 10 Nov 2013 22:21:18 -0500 Message-ID: <22390.1384140078@sss.pgh.pa.us> X-Pg-Spam-Score: -0.0 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs