[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4998) org.hibernate.test.hql.ASTParserLoadingTest failure running testStr with Ingres
Ray Fan (JIRA)
noreply at atlassian.com
Wed Mar 10 14:40:46 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ray Fan updated HHH-4998:
-------------------------
Attachment: IngresDialect.testStr.svn.diff
Override the str function with a template that uses varchar as a target type.
> org.hibernate.test.hql.ASTParserLoadingTest failure running testStr with Ingres
> --------------------------------------------------------------------------------
>
> Key: HHH-4998
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4998
> Project: Hibernate Core
> Issue Type: Bug
> Components: query-hql, testsuite
> Affects Versions: 3.5.0-CR-2
> Environment: Hibernate 3.5.0-CR-2, Ingres 9.3.1 (int.lnx/106), IngresDialect
> Reporter: Ray Fan
> Priority: Minor
> Attachments: hql-astparserloadingtest.zip, IngresDialect.testStr.svn.diff
>
>
> Assertion failure during testStr in hql ASTParserLoadingTest
> {noformat}
> <failure message="expected:<...> but was:<... >" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:<...> but was:<... >
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at org.hibernate.test.hql.ASTParserLoadingTest.testStr(ASTParserLoadingTest.java:1593)
> </failure>
> {noformat}
> The generated SQL query
> {noformat}
> select
> (cast(year(current_date) as char)+'-'+cast(month(current_date) as char)+'-'+cast(day(current_date) as char)) as col_0_0_
> from
> Animal animal0_
> {noformat}
> The cast to char produces space padded values causing the failure.
--
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