]
Daniel Migowski updated HHH-5521:
---------------------------------
Attachment: ISSUE20100831.zip
Converted the attachment to a more common zip format.
HqlSqlWalker transforms two same HQL-Query-trees with
"java.util.Date" attribute casted as "date" different.
------------------------------------------------------------------------------------------------------------
Key: HHH-5521
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5521
Project: Hibernate Core
Issue Type: Bug
Components: core, query-hql
Affects Versions: 3.3.1
Environment: Eclipse, PostgreSQL DB Server 8.3,
Hibernate Annotations 3.4.0.ga,
Hibernate Commons-Annotations-3.4.0.ga,
Hibernate Core-3.3.1.ga,
Hibernate EntityManager 3.4.0.ga
Hibernate Search 3.1.0.ga
Hibernate Validator 3.1.0.ga
Reporter: Thomas Quathamer
Attachments: ASTDumpComp.txt, ASTDumpHoli.txt, ISSUE20100831.7z,
ISSUE20100831.zip
Hi,
we have two classes with same attribute "Date modifiedDate".
Example Query:
OK: SELECT name FROM Company entity WHERE CAST(entity.modifiedDate AS date) !=
current_date()
ERROR: SELECT name FROM Holiday entity WHERE CAST(entity.modifiedDate AS date) !=
current_date()
Executing the above HQL-queries results in different AST-Nodes for the WHERE clause,
see the two appended AST_LOG files with the node trees
(line 50 in ASTNodeDump_ObjectHoliday marked by me as ERROR).
There is a DotNode instead of an IdentNode in AST_LOG for "java.util.Date"
attribute casted as "date".
Where is the differenz?
Thanks, Thomas Quathamer
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: