workaround for Maria reporting that "string" is a keyword
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
57cfbb6161
commit
2630b33261
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue