pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Let's get rid of premature execution
Date: Thu, 29 Jan 2015 14:32:03 +0200
Message-ID: <54CA2843.1020109@vmware.com> (raw)
In-Reply-To: <CAB7nPqTkFZ+DrupFPb1GkgqHnbNYRVPAzCjBpKyNVMRj3cX04w@mail.gmail.com>
References: <54C5FCA9.7020007@vmware.com>
	<CAB7nPqTkFZ+DrupFPb1GkgqHnbNYRVPAzCjBpKyNVMRj3cX04w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (3+ messages)

Message-ID: <54CA2843.1020109@vmware.com>
Permalink:  ../54CA2843.1020109@vmware.com/
Also on:    postgresql.org/message-id/54CA2843.1020109@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, michael.paquier@gmail.com
  Subject: Re: Let's get rid of premature execution
  In-Reply-To: <54CA2843.1020109@vmware.com>
  References: <54C5FCA9.7020007@vmware.com> <CAB7nPqTkFZ+DrupFPb1GkgqHnbNYRVPAzCjBpKyNVMRj3cX04w@mail.gmail.com> <54CA2843.1020109@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox