[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:37:04 EDT 2020


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

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

Issue Type: Bug Affects Versions: 5.3.15 Assignee: Unassigned Components: hibernate-core Created: 26/Mar/2020 06:37 AM Environment: Hibernate 5.3.14 / 5.3.15
MySQL 8.0.19 Priority: Major Reporter: 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:

... 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)

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

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/6306a7ad/attachment.html 


More information about the hibernate-issues mailing list