Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCOil-0005lJ-1i for pgsql-odbc@arkaria.postgresql.org; Thu, 22 Aug 2013 06:50:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VCOik-0002OC-Ax for pgsql-odbc@arkaria.postgresql.org; Thu, 22 Aug 2013 06:50:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCOij-0002N7-LJ for pgsql-odbc@postgresql.org; Thu, 22 Aug 2013 06:50:13 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VCOif-0001H0-Uu for pgsql-odbc@postgresql.org; Thu, 22 Aug 2013 06:50:11 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id E3D6828D5B; Wed, 21 Aug 2013 23:50:07 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id E09374041D; Wed, 21 Aug 2013 23:50:07 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id D404FC0054; Wed, 21 Aug 2013 23:50:13 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Wed, 21 Aug 2013 23:50:12 -0700 (PDT) Message-ID: <5215B49C.7000605@vmware.com> Date: Thu, 22 Aug 2013 09:50:04 +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: "Inoue, Hiroshi" CC: "pgsql-odbc@postgresql.org" Subject: Re: UseServerSidePrepare and data-at-execution References: <520CDAF2.5010005@vmware.com> <52155238.70104@tpf.co.jp> In-Reply-To: <52155238.70104@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.8 (-------) 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 22.08.2013 02:50, Inoue, Hiroshi wrote: > (2013/08/15 22:43), Heikki Linnakangas wrote: >> The test case executes a SELECT statement twice, using data-at-execution >> parameters (ie. SQLParamData and SQLPutData) and array binding together. >> In that combination, the server logs confirm that the query is executed >> twice with different parameters, but only the first result is returned >> to the client. >> >> After some debugging, I came up with the attached patch. It clears the >> curr_param_result flag from the statement object, in SQLParamData, after >> executing the statement with the current set of parameters. > > Oops I overlooked this case. > Yes the curr_param_result flag must be cleared before excecuting > the subsequent set of parameters. Ok then, I committed the patch. Thanks! - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc