Skip to content

Commit 3365c6f

Browse files
marko-bekhtabeikov
authored andcommitted
HHH-17016 Cast to the correct MySQL dialect
1 parent ba25ebb commit 3365c6f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacySqlAstTranslator.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
package org.hibernate.community.dialect;
88

99
import org.hibernate.dialect.DialectDelegateWrapper;
10-
import org.hibernate.dialect.MySQLDialect;
1110
import org.hibernate.dialect.MySQLSqlAstTranslator;
1211
import org.hibernate.engine.spi.SessionFactoryImplementor;
1312
import org.hibernate.query.sqm.ComparisonOperator;
@@ -245,8 +244,8 @@ protected String getFromDualForSelectOnly() {
245244
}
246245

247246
@Override
248-
public MySQLDialect getDialect() {
249-
return (MySQLDialect) DialectDelegateWrapper.extractRealDialect( super.getDialect() );
247+
public MySQLLegacyDialect getDialect() {
248+
return (MySQLLegacyDialect) DialectDelegateWrapper.extractRealDialect( super.getDialect() );
250249
}
251250

252251
@Override

0 commit comments

Comments
 (0)