I have a an entity containing a field called “rank“ . This worked perfectly fine with MySQL 5.6. Now in MySQL 8, since this is a keyword, it fails to update the field.
Tested configurations were:
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect" />
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL8Dialect" />
or no dialect whatsoever.
Database is MySQL 8.0.20, Percona flavor + HikariCP
Would have expected that by choosing the correct dialect, the fields are escaped automatically. |
|