HHH-5596 org.hibernate.test.annotations.onetoone.OneToOneTest.testPkOneToOneSelectStatementDoesNotGenerateExtraJoin() fails on postgresql
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20703 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
1b6b995166
commit
d8d1a0da62
|
@ -354,9 +354,8 @@ class JoinCounter extends EmptyInterceptor {
|
|||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue