[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5523) Inconsistence between handling of equality ops and LIKE
Daniel Migowski (JIRA)
noreply at atlassian.com
Wed Sep 1 09:04:18 EDT 2010
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/core/src/main/antlr/hql.g 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list