Fix wrong version check in from dual for select only for MySQL
This commit is contained in:
parent
6e442aaed5
commit
12c69c8528
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue