[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-3501) ASTParserLoadingTest testing unsupported queries for DB2
Gail Badner (JIRA)
noreply at atlassian.com
Mon Sep 29 17:55:06 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner closed HHH-3501.
----------------------------
> 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: 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