HHH-13910 : MySQL57Dialect selected by automatic dialect resolution when using MySQL 8.0 database
This commit is contained in:
parent
caded6cd40
commit
e1d2aecef7
|
@ -358,6 +358,14 @@ public enum Database {
|
|||
return new MySQL57Dialect();
|
||||
}
|
||||
}
|
||||
else if ( majorVersion < 8) {
|
||||
// There is no MySQL 6 or 7.
|
||||
// Adding this just in case.
|
||||
return new MySQL57Dialect();
|
||||
}
|
||||
else if ( majorVersion == 8 ) {
|
||||
return new MySQL8Dialect();
|
||||
}
|
||||
|
||||
return latestDialectInstance( this );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue