From: Andrew Lazarus <drlaz@attglobal.net>
To: Chris Stuhr <cstuhr@ephibian.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Null bind variable in where clause
Date: Mon, 28 May 2007 20:15:59 -0700
Message-ID: <1167646704.20070528201559@attglobal.net> (raw)
In-Reply-To: <46369940.1030801@ephibian.com>
References: <46369940.1030801@ephibian.com>
Hello Chris,
Another approach is ... WHERE (b=?) IS TRUE or
... WHERE (b=?) IS NOT FALSE
depending which behavior you want when b IS NULL.
Monday, April 30, 2007, 6:34:56 PM, you wrote:
> It looks like you can not use a bind variable when trying to match null
> in a where clause. Is there any way to get the desired effect without
> having to remove the bind variable and rewrite the query to "WHERE b IS
> null"?
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-jdbc@postgresql.org
Cc: drlaz@attglobal.net, cstuhr@ephibian.com
Subject: Re: Null bind variable in where clause
In-Reply-To: <1167646704.20070528201559@attglobal.net>
References: <46369940.1030801@ephibian.com> <1167646704.20070528201559@attglobal.net>
* 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