Skip to content

Commit d413434

Browse files
committed
HHH-19768 Make DB2Dialect return true for supportsRowValueConstructorSyntaxInInSubQuery
1 parent 10cfd12 commit d413434

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
@@ -1484,4 +1484,9 @@ public boolean supportsRowValueConstructorSyntaxInInList() {
14841484
return false;
14851485
}
14861486

1487+
@Override
1488+
public boolean supportsRowValueConstructorSyntaxInInSubQuery() {
1489+
return true;
1490+
}
1491+
14871492
}

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
@@ -909,6 +909,7 @@ public boolean supportsArrayConstructor() {
909909

910910
@Override
911911
public boolean supportsRowValueConstructorSyntax() {
912+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
912913
return false;
913914
}
914915

@@ -920,11 +921,13 @@ public boolean supportsWithClauseInSubquery() {
920921

921922
@Override
922923
public boolean supportsRowValueConstructorSyntaxInQuantifiedPredicates() {
924+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
923925
return false;
924926
}
925927

926928
@Override
927929
public boolean supportsRowValueConstructorSyntaxInInList() {
930+
// It's supported but not usable due to a bug: https://sourceforge.net/p/hsqldb/bugs/1714/
928931
return false;
929932
}
930933

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,4 +1317,9 @@ public boolean supportsRowValueConstructorSyntaxInInList() {
13171317
return false;
13181318
}
13191319

1320+
@Override
1321+
public boolean supportsRowValueConstructorSyntaxInInSubQuery() {
1322+
return true;
1323+
}
1324+
13201325
}

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

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

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

@@ -758,11 +759,13 @@ public boolean supportsWithClauseInSubquery() {
758759

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

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

0 commit comments

Comments
 (0)