[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2045?page=c...
]
Josh Moore commented on HHH-2045:
---------------------------------
At least for Postgresql, Max, it's not valid :
omero3=# select * from project where id in ();
ERROR: syntax error at or near ")" at character 36
LINE 1: select * from project where id in ();
whereas:
omero3=# select * from project where id in (null);
id | owner_id | group_id | creation_id | update_id | permissions | version | name |
description
----+----------+----------+-------------+-----------+-------------+---------+------+-------------
(0 rows)
And, using Postgres, I've not been able to use the "in ()" construct, though
I can't remember the first version where I discovered that (could check subversion if
anyone's interested.) Never tried to do "in (null)", but a
q.setParameterList( "list", null ) certaily failed.
in () result in "unexpected end of subtree"
--------------------------------------------
Key: HHH-2045
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2045
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.cr4
Reporter: Max Rydahl Andersen
Assignee: Steve Ebersole
"in ()" is a valid sql construct and works with previous versions of Hibernate.
The new parser throws an "unexpected end of subtree".
example:
from Animal an where an.id in ()
or
from Animal an where an.id in (:list)
and input list is an empty list.
Is this the behavior we want from now on or ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira