[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-823?page=co...
]
Gail Badner commented on ANN-823:
---------------------------------
The queries for both of these unit tests is specified for the "sqlInsert"
attribute in the @Table annotation.
@Tables( {
@Table(appliesTo = "Cat", indexes = @Index(name =
"secondname",
columnNames = "secondName"), comment = "My cat
table" ),
@Table(appliesTo = "Cat2", foreignKey =
@ForeignKey(name="FK_CAT2_CAT"), fetch = FetchMode.SELECT,
sqlInsert=@SQLInsert(sql="insert into Cat2(storyPart2, id)
values(upper(?), ?)") )
} )
Doesn't that make it a native query?
Unit tests fail because Insert into ... values(upper(?)) fails on
DB2
---------------------------------------------------------------------
Key: ANN-823
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-823
Project: Hibernate Annotations
Issue Type: Bug
Reporter: Gail Badner
The following tests fail with DB2Dialect:
org.hibernate.test.annotations.join.JoinTest.testFetchModeOnSecondaryTable()
org.hibernate.test.annotations.join.JoinTest.testCustomSQL()
due to failure on:
insert into Cat2 (storyPart2, id) values (upper(?), ?)
The following tests fail:
org.hibernate.test.annotations.query.QueryAndSQLTest.testEntitySQLOverriding()
org.hibernate.test.annotations.query.QueryAndSQLTest.testCollectionSQLOverriding()
due to failure on:
INSERT INTO CHAOS(name, nick_name, chaos_size, id) VALUES(upper(?),?,?,?)
The tests pass if upper(?) is changed to upper(? || ''), but this may not work on
all dialects.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira