HHH-11073 : Casting to boolean in HQL query fails on MySQL
(cherry picked from commit 839bf0b6f9
)
This commit is contained in:
parent
47040451d7
commit
b809eb09b9
|
@ -354,6 +354,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:
|
||||
|
|
Loading…
Reference in New Issue