Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UVTRi-0002zN-Bi for pgsql-odbc@arkaria.postgresql.org; Thu, 25 Apr 2013 21:11:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UVTRh-0001gK-So for pgsql-odbc@arkaria.postgresql.org; Thu, 25 Apr 2013 21:11:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UVTRh-0001gF-EM for pgsql-odbc@postgresql.org; Thu, 25 Apr 2013 21:11:13 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UVTRY-00069U-7n for pgsql-odbc@postgresql.org; Thu, 25 Apr 2013 21:11:13 +0000 Received: (qmail 31886 invoked by uid 512); 25 Apr 2013 21:10:59 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 25 Apr 2013 21:10:59 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 25 Apr 2013 21:10:59 -0000 Message-ID: <51799BE1.7000703@tpf.co.jp> Date: Fri, 26 Apr 2013 06:10:57 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Heikki Linnakangas CC: pgsql-odbc@postgresql.org Subject: Re: SQLExecute returns 0 rows with BoolsAsChar=1 References: <51479445.7020905@vmware.com> <514AFABC.7000808@tpf.co.jp> <514B3870.2060208@vmware.com> <514ED061.10906@tpf.co.jp> <51503885.5090001@vmware.com> <5151B89D.8060902@tpf.co.jp> <51559C6B.5000006@tpf.co.jp> <5177FD71.3030508@vmware.com> In-Reply-To: <5177FD71.3030508@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (2013/04/25 0:42), Heikki Linnakangas wrote: > On 29.03.2013 15:51, Hiroshi Inoue wrote: >> (2013/03/27 0:02), Hiroshi Inoue wrote: >>> (2013/03/25 20:44), Heikki Linnakangas wrote: >>>> On 24.03.2013 12:07, Hiroshi Inoue wrote: >>>>> I can reproduce it now when I turn off the *Server side prepare* >>>>> option >>>>> or turn on the *Use Declare/Fetch* option. >>>> >>>> Ah yeah, UseServerSidePrepare hides it. I'm also seeing the problem >>>> without UseDeclareFetch, though. >>>> >>>>> Attached is a patch to fix the bug. >>>> >>>> Thanks. I must admit I don't understand how this works. Also, the 2nd >>>> test case in attached file now fails. It does a DELETE ... RETURNING, >>>> binding a parameter array with a VARCHAR(5) column, and fetches the >>>> results. With the patch, it can't fetch the result sets. >>> >>> Thanks for the test case. >>> The attached patch instead of the previous one would fix the problem >>> but still has a problem when the server side prepare option is turned >>> on. >> >> OK attached is a patch to fix the problem with the *Server side >> Prepare* option. > > Many thanks! Although I still don't fully understand the fix, I > committed that with minor copy-editing. Thanks. I'm examing the report from Jack Wilson. Probably I can reproduce his case now. regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc