Inconsistence between handling of equality ops and LIKE
-------------------------------------------------------
Key: HHH-5523
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5523
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.3.1
Environment: Hibernate Core 3.3.1, PostgreSQL 8.3
Reporter: Daniel Migowski
These two queries should both be handled, but only the one with the ">" is
correctly understood by the HQL Parser, the other fails.
WORKS:
SELECT a.id, a.name, a.articleGroup FROM Article a
WHERE a.articleGroup.hierarchy > (SELECT ag2.hierarchy FROM ArticleGroup ag2 WHERE
ag2.id=32)
FAILS:
SELECT a.id, a.name, a.articleGroup FROM Article a
WHERE a.articleGroup.hierarchy LIKE (SELECT ag2.hierarchy FROM ArticleGroup ag2 WHERE
ag2.id=32)
About the Entities:
Article has a ManyToOne relation to ArticleGroup, and articleGroup has a hierarchy String
attribute, which helps us get some stuff done.
I checked the SVN, and since
http://anonsvn.jboss.org/repos/hibernate/core/tags/hibernate-3.5.5-Final/...
is nearly the same as mine in v3.3.1 this should be reproducable in the current final
version.
--
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