mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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 @@ else if ( minorVersion < 7 ) {
|
||||
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…
x
Reference in New Issue
Block a user