[hibernate-issues] [JIRA] (HHH-13910) MySQL57Dialect selected by automatic dialect resolution when using MySQL 8.0 database

Stephen Fikes (JIRA) jira at hibernate.atlassian.net
Thu Mar 26 09:40:36 EDT 2020


Stephen Fikes ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Adde519e7-180d-44ff-847c-c33e8b81dfed ) *updated* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOWI0MmFkNzM2ODI1NGM5MzkzZmQ3ZWQyYzMyMWU3NDIiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-13910?atlOrigin=eyJpIjoiOWI0MmFkNzM2ODI1NGM5MzkzZmQ3ZWQyYzMyMWU3NDIiLCJwIjoiaiJ9 ) HHH-13910 ( https://hibernate.atlassian.net/browse/HHH-13910?atlOrigin=eyJpIjoiOWI0MmFkNzM2ODI1NGM5MzkzZmQ3ZWQyYzMyMWU3NDIiLCJwIjoiaiJ9 ) MySQL57Dialect selected by automatic dialect resolution when using MySQL 8.0 database ( https://hibernate.atlassian.net/browse/HHH-13910?atlOrigin=eyJpIjoiOWI0MmFkNzM2ODI1NGM5MzkzZmQ3ZWQyYzMyMWU3NDIiLCJwIjoiaiJ9 )

Change By: Stephen Fikes ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Adde519e7-180d-44ff-847c-c33e8b81dfed )

With MySQL 8 (e.g. 8.0.19), looks like  {{ MySQL57Dialect }}  is [selected|https://github.com/hibernate/hibernate-orm/blob/5.3.15/hibernate-core/src/main/java/org/hibernate/dialect/Database.java#L338-L351] instead of  {{ MySQL8Dialect }} . Wrote a test that was examining the connection metadata:

{noformat}
... INFO ... HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect
...
... INFO ... Database server : MySQL 8.0.19
... INFO ... Database driver : MySQL Connector/J mysql-connector-java-8.0.19 (Revision: a0ca826f5cdf51a98356fdfb1bf251eb042f80bf)
{noformat}

( https://hibernate.atlassian.net/browse/HHH-13910#add-comment?atlOrigin=eyJpIjoiOWI0MmFkNzM2ODI1NGM5MzkzZmQ3ZWQyYzMyMWU3NDIiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13910#add-comment?atlOrigin=eyJpIjoiOWI0MmFkNzM2ODI1NGM5MzkzZmQ3ZWQyYzMyMWU3NDIiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122- sha1:93a3ad8 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200326/66c82596/attachment.html 


More information about the hibernate-issues mailing list