From 260af8efc47d744fa6d07adceb128ab3d3f631fe Mon Sep 17 00:00:00 2001 From: marko-bekhta Date: Mon, 31 Jul 2023 18:56:40 +0200 Subject: [PATCH] HHH-17016 Cast to the correct MySQL dialect --- .../community/dialect/MySQLLegacySqlAstTranslator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacySqlAstTranslator.java b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacySqlAstTranslator.java index fe287744ad..8fa41144b7 100644 --- a/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacySqlAstTranslator.java +++ b/hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/MySQLLegacySqlAstTranslator.java @@ -7,7 +7,6 @@ package org.hibernate.community.dialect; import org.hibernate.dialect.DialectDelegateWrapper; -import org.hibernate.dialect.MySQLDialect; import org.hibernate.dialect.MySQLSqlAstTranslator; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.query.sqm.ComparisonOperator; @@ -245,8 +244,8 @@ public class MySQLLegacySqlAstTranslator extends Abstra } @Override - public MySQLDialect getDialect() { - return (MySQLDialect) DialectDelegateWrapper.extractRealDialect( super.getDialect() ); + public MySQLLegacyDialect getDialect() { + return (MySQLLegacyDialect) DialectDelegateWrapper.extractRealDialect( super.getDialect() ); } @Override