diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java index ac75e44034..842b7251eb 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MariaDBDialect.java @@ -111,6 +111,15 @@ public class MariaDBDialect extends MySQLDialect { } } + @Override + protected void registerKeyword(String word) { + // The MariaDB driver reports that "STRING" is a keyword, but + // it's not a reserved word, and a column may be named STRING + if ( !"string".equalsIgnoreCase(word) ) { + super.registerKeyword(word); + } + } + @Override public JdbcType resolveSqlTypeDescriptor( String columnTypeName,