Cannot pass null in Parameter in Query for ISNULL

Поиск
Список
Период
Сортировка
От Bernard
Тема Cannot pass null in Parameter in Query for ISNULL
Дата
Msg-id of37p7pknemd5rl4vmr0rnfm772h81pfo9@4ax.com
обсуждение исходный текст
Список pgsql-jdbc
Hi,

We have a driver issue with postgresl that doesn't exist with other
databases.

It happens with Java JPA implementations when a very simple query is
executed like:

SELECT a FROM Author a WHERE :lastName IS NULL OR LOWER(a.lastName) =
:lastName

See
http://en.wikipedia.org/wiki/Java_Persistence_Query_Language#Examples

:lastName is a parameter, and the null check is on the parameter so
there shouldn't be a problem with this at all.

Maciek has suggested a solution for this driver issue at
http://archives.postgresql.org/pgsql-jdbc/2011-12/msg00017.php

I wonder when this could be resolved? Apparently there is a related
back-end issue.

I have a few JUnit test for this so please ask.

Kind Regards,

Bernard



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Bernard
Дата:
Сообщение: Cannot pass null in Parameter in Query for ISNULL
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Cannot pass null in Parameter in Query for ISNULL