]
Gail Badner resolved HHH-3501.
------------------------------
Resolution: Fixed
Committed fix to Branch_3_2 / Branch_3_2_4_SP1_CP / Branch_3_3 / trunk
ASTParserLoadingTest testing unsupported queries for DB2
---------------------------------------------------------
Key: HHH-3501
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3501
Project: Hibernate Core
Issue Type: Bug
Reporter: Gail Badner
Assignee: Gail Badner
Fix For: 3.2.x, 3.3.x
The org.hibernate.test.hql.ASTParserLoadingTest test is testing some unsupported queries
for DB2.
The problem is that ASTParserLoadingTest has HQL using untyped parameters, as follows:
- "from Human where ? is null" (untyped parameter compared to null)
- "from Animal where lower(upper(:foo))) like 'f%'" (untyped parameter
in function)
DB2 does not support untyped parameters. The queries need to be modified so that the
parameters are cast to an appropriate data type, as in:
- "from Human where cast(? as string) is null"
- "from Animal where lower(upper(cast(:foo as string))) like 'f%'"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: