workaround for Maria reporting that "string" is a keyword

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-09-06 19:01:22 +02:00
parent 57cfbb6161
commit 2630b33261
1 changed files with 9 additions and 0 deletions

View File

@ -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 @Override
public JdbcType resolveSqlTypeDescriptor( public JdbcType resolveSqlTypeDescriptor(
String columnTypeName, String columnTypeName,