correct impl of MySQL.supportsColumnCheck()

This commit is contained in:
Gavin 2022-12-10 10:38:54 +01:00 committed by Gavin King
parent baffbc0aae
commit 413b9ba03e
1 changed files with 7 additions and 1 deletions

View File

@ -751,7 +751,7 @@ public class MySQLDialect extends Dialect {
@Override @Override
public boolean supportsColumnCheck() { public boolean supportsColumnCheck() {
return false; return getMySQLVersion().isSameOrAfter( 8, 0, 16 );
} }
@Override @Override
@ -771,6 +771,12 @@ public class MySQLDialect extends Dialect {
} }
} }
@Override
public String getEnumCheckCondition(String columnName, int sqlType, Class<? extends Enum<?>> enumClass) {
// don't need it, since we're using the 'enum' type
return null;
}
@Override @Override
public String getQueryHintString(String query, String hints) { public String getQueryHintString(String query, String hints) {
return IndexQueryHintHandler.INSTANCE.addQueryHints( query, hints ); return IndexQueryHintHandler.INSTANCE.addQueryHints( query, hints );