Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UV1qU-0008FM-OP for pgsql-odbc@arkaria.postgresql.org; Wed, 24 Apr 2013 15:42:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UV1qU-0007gt-3v for pgsql-odbc@arkaria.postgresql.org; Wed, 24 Apr 2013 15:42:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UV1qT-0007gl-A5 for pgsql-odbc@postgresql.org; Wed, 24 Apr 2013 15:42:57 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UV1qH-0004Xh-Qz for pgsql-odbc@postgresql.org; Wed, 24 Apr 2013 15:42:55 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id DD6EF281BE; Wed, 24 Apr 2013 08:42:44 -0700 (PDT) Received: from zcs-prod-mta-2.vmware.com (zcs-prod-mta-2.vmware.com [10.113.163.64]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id D93B51820F; Wed, 24 Apr 2013 08:42:44 -0700 (PDT) Received: from zcs-prod-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-mta-2.vmware.com (Postfix) with ESMTP id C5810E003B; Wed, 24 Apr 2013 08:42:44 -0700 (PDT) Received: from [10.113.236.124] (unknown [10.113.160.14]) by zcs-prod-mta-2.vmware.com (Postfix) with ESMTPSA; Wed, 24 Apr 2013 08:42:43 -0700 (PDT) Message-ID: <5177FD71.3030508@vmware.com> Date: Wed, 24 Apr 2013 18:42:41 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Hiroshi Inoue 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> In-Reply-To: <51559C6B.5000006@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.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 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. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc