Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGoH0-0003iQ-Fx for pgsql-odbc@arkaria.postgresql.org; Thu, 29 Jan 2015 12:32:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YGoGz-0002nl-Og for pgsql-odbc@arkaria.postgresql.org; Thu, 29 Jan 2015 12:32:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YGoGy-0002nd-Rh for pgsql-odbc@postgresql.org; Thu, 29 Jan 2015 12:32:36 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YGoGq-0002Za-3O for pgsql-odbc@postgresql.org; Thu, 29 Jan 2015 12:32:33 +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 12A1E29E53; Thu, 29 Jan 2015 04:32:26 -0800 (PST) Received: from EX13-CAS-010.vmware.com (EX13-CAS-010.vmware.com [10.113.191.62]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 0E96018933; Thu, 29 Jan 2015 04:32:26 -0800 (PST) Received: from [192.168.42.220] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.913.22; Thu, 29 Jan 2015 04:32:18 -0800 Message-ID: <54CA2843.1020109@vmware.com> Date: Thu, 29 Jan 2015 14:32:03 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 MIME-Version: 1.0 To: Michael Paquier CC: "pgsql-odbc@postgresql.org" Subject: Re: Let's get rid of premature execution References: <54C5FCA9.7020007@vmware.com> In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) 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 01/29/2015 09:36 AM, Michael Paquier wrote: > IMO, this behavior should be properly documented in the section of > UseServerSidePrepare, aka there is one case where server-side prepare > is used with NULL values even if this parameter is disabled. Added a notice about that. Not sure if it's makes much sense to a user who's not familiar with the FE/BE protoocl, but anyway.. > The header of this file is incorrect, DisallowPremature does not exist > anymore with your patch and this test is made to test if premature > calls of SQLNumResultCols does not influence prepared queries: > --- /dev/null > +++ b/test/src/premature-test.c > @@ -0,0 +1,201 @@ > +/* > + * This test case tests the so-called "premature execution" behaviour, which > + * can be influenced with the DisallowPremature setting. > + */ Fixed that. I also refactored and expanded the test case a bit, and fixed another bug that I bumped into. Committed with those fixes. Thanks for the review! - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc