Skip to content

Commit 0e3ef8a

Browse files
committed
HHH-19768 Make DB2Dialect return true for supportsRowValueConstructorSyntaxInInSubQuery
1 parent 25b1468 commit 0e3ef8a

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/DB2LegacyDialect.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,4 +1499,9 @@ public boolean supportsRowValueConstructorSyntaxInInList() {
14991499
return false;
15001500
}
15011501

1502+
@Override
1503+
public boolean supportsRowValueConstructorSyntaxInInSubQuery() {
1504+
return true;
1505+
}
1506+
15021507
}

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/HSQLLegacyDialect.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,7 @@ public boolean supportsArrayConstructor() {
912912

913913
@Override
914914
public boolean supportsRowValueConstructorSyntax() {
915+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
915916
return false;
916917
}
917918

@@ -923,11 +924,13 @@ public boolean supportsWithClauseInSubquery() {
923924

924925
@Override
925926
public boolean supportsRowValueConstructorSyntaxInQuantifiedPredicates() {
927+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
926928
return false;
927929
}
928930

929931
@Override
930932
public boolean supportsRowValueConstructorSyntaxInInList() {
933+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
931934
return false;
932935
}
933936

hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,4 +1273,9 @@ public boolean supportsRowValueConstructorSyntaxInInList() {
12731273
return false;
12741274
}
12751275

1276+
@Override
1277+
public boolean supportsRowValueConstructorSyntaxInInSubQuery() {
1278+
return true;
1279+
}
1280+
12761281
}

hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ public boolean supportsArrayConstructor() {
746746

747747
@Override
748748
public boolean supportsRowValueConstructorSyntax() {
749+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
749750
return false;
750751
}
751752

@@ -757,11 +758,13 @@ public boolean supportsWithClauseInSubquery() {
757758

758759
@Override
759760
public boolean supportsRowValueConstructorSyntaxInQuantifiedPredicates() {
761+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
760762
return false;
761763
}
762764

763765
@Override
764766
public boolean supportsRowValueConstructorSyntaxInInList() {
767+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
765768
return false;
766769
}
767770

0 commit comments

Comments
 (0)