Re: Null bind variable in where clause - Mailing list pgsql-jdbc

From Andrew Lazarus
Subject Re: Null bind variable in where clause
Date
Msg-id 1167646704.20070528201559@attglobal.net
Whole thread Raw
In response to Null bind variable in where clause  (Chris Stuhr <cstuhr@ephibian.com>)
List pgsql-jdbc
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"?




pgsql-jdbc by date:

Previous
From: Guy Rouillier
Date:
Subject: Re: which jdk i should opt for pgsql8.2 to implement jdbc interface
Next
From: "Kalle Hallivuori"
Date:
Subject: FYI: porting Copy API to 8.x