mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 12:44:49 +00:00
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 @@ public JoinCounter(int val) {
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user