HHH-11073 : Casting to boolean in HQL query fails on MySQL
This commit is contained in:
parent
4551e521c1
commit
839bf0b6f9
|
@ -341,6 +341,8 @@ public class MySQLDialect extends Dialect {
|
||||||
@Override
|
@Override
|
||||||
public String getCastTypeName(int code) {
|
public String getCastTypeName(int code) {
|
||||||
switch ( code ) {
|
switch ( code ) {
|
||||||
|
case Types.BOOLEAN:
|
||||||
|
return "char";
|
||||||
case Types.INTEGER:
|
case Types.INTEGER:
|
||||||
case Types.BIGINT:
|
case Types.BIGINT:
|
||||||
case Types.SMALLINT:
|
case Types.SMALLINT:
|
||||||
|
|
Loading…
Reference in New Issue