Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJQeN-0001ho-DU for pgsql-odbc@arkaria.postgresql.org; Fri, 28 Feb 2014 16:51:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WJQeM-0005Yv-Sp for pgsql-odbc@arkaria.postgresql.org; Fri, 28 Feb 2014 16:51:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJQeL-0005Xc-Gx for pgsql-odbc@postgresql.org; Fri, 28 Feb 2014 16:51:01 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WJQeI-0001Ov-Bx for pgsql-odbc@postgresql.org; Fri, 28 Feb 2014 16:51:01 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id A33D42817F; Fri, 28 Feb 2014 08:50:54 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 9D9E518217; Fri, 28 Feb 2014 08:50:54 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id DA739120032; Fri, 28 Feb 2014 08:50:52 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Fri, 28 Feb 2014 08:50:51 -0800 (PST) Message-ID: <5310BE6C.4080608@vmware.com> Date: Fri, 28 Feb 2014 18:50:52 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Consolity Inc CC: "pgsql-odbc@postgresql.org" Subject: Re: Bug report - ODBC Driver - Error 42P18 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 02/28/2014 06:20 PM, Consolity Inc wrote: > The PostgreSQL ANSI ODBC driver reports 42P18 - ERROR: could not determine data type of parameter $; when preparing SQL with an expression of the form: > 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