Author: stliu
Date: 2010-09-25 06:39:40 -0400 (Sat, 25 Sep 2010)
New Revision: 20703
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/annotations/onetoone/OneToOneTest.java
Log:
HHH-5596
org.hibernate.test.annotations.onetoone.OneToOneTest.testPkOneToOneSelectStatementDoesNotGenerateExtraJoin()
fails on postgresql
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/annotations/onetoone/OneToOneTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/annotations/onetoone/OneToOneTest.java 2010-09-25
10:34:41 UTC (rev 20702)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/annotations/onetoone/OneToOneTest.java 2010-09-25
10:39:40 UTC (rev 20703)
@@ -354,9 +354,8 @@
}
public String onPrepareStatement(String sql) {
-
int numberOfJoins = 0;
- if (sql.startsWith("select")) {
+ if (sql.startsWith("select") & !sql.contains("nextval")) {
numberOfJoins = count(sql, "join");
TestCase.assertEquals(expectedNumberOfJoins, numberOfJoins);
}
Show replies by date