From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Consolity Inc <consolity@outlook.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Bug report - ODBC Driver - Error 42P18
Date: Fri, 28 Feb 2014 18:50:52 +0200
Message-ID: <5310BE6C.4080608@vmware.com> (raw)
In-Reply-To: <COL128-W184DA71BB29376F2EDB04BAA820@phx.gbl>
References: <COL128-W50D681DF9BCB02BBBC8FF3AA810@phx.gbl>
<COL128-W184DA71BB29376F2EDB04BAA820@phx.gbl>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 02/28/2014 06:20 PM, Consolity Inc wrote:
> The PostgreSQL ANSI ODBC driver reports 42P18 - ERROR: could not determine data type of parameter $<n>; when preparing SQL with an expression of the form:
> <bound parameter> IS NULL.
> This is a breaking change to existing code that depends on being able to check the NULL-ness of a parameter.
> Behavior is new as of psqlODBC 09.03.0100
The default for UseServerSidePrepare changed in 09.03.0100. Maybe it's
because of that? You can try setting UseServerSidePrepare=0 to get the
old behavior.
I would recommend modifying the query to explicitly cast the parameter,
though. Something like "?::text IS NULL" should work.
- Heikki
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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, consolity@outlook.com
Subject: Re: Bug report - ODBC Driver - Error 42P18
In-Reply-To: <5310BE6C.4080608@vmware.com>
References: <COL128-W50D681DF9BCB02BBBC8FF3AA810@phx.gbl> <COL128-W184DA71BB29376F2EDB04BAA820@phx.gbl> <5310BE6C.4080608@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