HHH-11073 : Casting to boolean in HQL query fails on MySQL

(cherry picked from commit 839bf0b6f9)
This commit is contained in:
Gail Badner 2016-08-31 00:22:16 -07:00
parent 889c7852cc
commit 47af492d3a
1 changed files with 2 additions and 0 deletions

View File

@ -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: