HHH-15572 Emulation of tuple comparison produces a wrong SQL query, missing a closing parenthesis

This commit is contained in:
Andrea Boriero 2022-10-03 17:25:04 +02:00 committed by Andrea Boriero
parent fe1ff7a829
commit b2e4348d62

View File

@ -2083,7 +2083,7 @@ private void emulateTupleComparisonSimple(
rhsExpressions.get( lastIndex ).accept( this );
// Close all opened parenthesis
for ( i = optimized ? 1 : 0; i < lastIndex; i++ ) {
for ( i = optimized ? 1 : 0; i < lastIndex + 1; i++ ) {
appendSql( CLOSE_PARENTHESIS );
}
}