Čedomir Igaly (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16498 (
https://hibernate.atlassian.net/browse/HHH-16498?atlOrigin=eyJpIjoiMTlmOD...
)
Re: Hibernate DDL validation fails on enum database column type (
https://hibernate.atlassian.net/browse/HHH-16498?atlOrigin=eyJpIjoiMTlmOD...
)
MySQL is treating enum column type as SQL type 1 (CHAR). When schema is validated method
org.hibernate.dialect.Dialect#equivalentTypes is returning false because it is using
org.hibernate.type.SqlTypes#isVarcharType which is returning false for 1 (CHAR).
Suggested fix is to use less strict method org.hibernate.type.SqlTypes#isCharacterType
which will accept VARCHAR and CHAR as equivalent types. Alternatively, use of
isCharacterType instead of isVarcharType can be pushed down to MySqlDialect.
Suggested fix is in pull request 6462 (
https://github.com/hibernate/hibernate-orm/pull/6462 )
(
https://hibernate.atlassian.net/browse/HHH-16498#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16498#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100223- sha1:038ca59 )