Fix wrong version check in from dual for select only for MySQL

This commit is contained in:
Marco Belladelli 2023-01-18 14:14:22 +01:00 committed by Christian Beikov
parent 6e442aaed5
commit 12c69c8528
2 changed files with 2 additions and 2 deletions

View File

@ -240,7 +240,7 @@ public class MySQLLegacySqlAstTranslator<T extends JdbcOperation> extends Abstra
@Override
protected String getFromDualForSelectOnly() {
return getDialect().getVersion().isBefore( 5, 7 ) ? getFromDual() : "";
return getDialect().getVersion().isSameOrAfter( 8 ) ? "" : getFromDual();
}
@Override

View File

@ -276,7 +276,7 @@ public class MySQLSqlAstTranslator<T extends JdbcOperation> extends AbstractSqlA
@Override
protected String getFromDualForSelectOnly() {
return getDialect().getVersion().isBefore( 5, 7 ) ? getFromDual() : "";
return getDialect().getVersion().isSameOrAfter( 8 ) ? "" : getFromDual();
}
@Override