Re: Let's get rid of premature execution - Mailing list pgsql-odbc

From Heikki Linnakangas
Subject Re: Let's get rid of premature execution
Date
Msg-id 54CA2843.1020109@vmware.com
Whole thread Raw
In response to Re: Let's get rid of premature execution  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-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



pgsql-odbc by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Build broken since 9aaa062 because of missing isnan and isinf
Next
From: Michael Paquier
Date:
Subject: Re: Regression tests