Author: stliu
Date: 2010-01-05 09:06:38 -0500 (Tue, 05 Jan 2010)
New Revision: 18412
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQL.hbm.xml
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQLTest.java
Log:
JBPAPP-3325 org.hibernate.test.legacy.CustomSQLTest.testInsert fails on most of DBs
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQL.hbm.xml
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQL.hbm.xml 2010-01-05
13:45:24 UTC (rev 18411)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQL.hbm.xml 2010-01-05
14:06:38 UTC (rev 18412)
@@ -38,7 +38,7 @@
deleteAllRoleBunchOfString(?)}</sql-delete-all>
</list>
- <sql-insert>insert into "Role" (name) values (?) /** i did
this*/</sql-insert>
+ <sql-insert>insert into "Role" (name,id) values (?,?) /** i did
this*/</sql-insert>
<sql-delete>delete from "Role" where id=?</sql-delete>
</class>
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQLTest.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQLTest.java 2010-01-05
13:45:24 UTC (rev 18411)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/CustomSQLTest.java 2010-01-05
14:06:38 UTC (rev 18412)
@@ -11,6 +11,7 @@
import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
import org.hibernate.classic.Session;
import org.hibernate.dialect.MySQLDialect;
+import org.hibernate.dialect.SybaseDialect;
/**
* @author MAX
@@ -31,7 +32,7 @@
}
public void testInsert() throws HibernateException, SQLException {
- if(getDialect() instanceof MySQLDialect)return;
+ if(getDialect() instanceof MySQLDialect || getDialect() instanceof
SybaseDialect)return;
Role p = new Role();