diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java index 773f8c158d..43c0bee1d4 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/MySQLDialect.java @@ -341,6 +341,8 @@ public class MySQLDialect extends Dialect { @Override public String getCastTypeName(int code) { switch ( code ) { + case Types.BOOLEAN: + return "char"; case Types.INTEGER: case Types.BIGINT: case Types.SMALLINT: