| This is a follow-up of https://hibernate.atlassian.net/browse/HHH-12822. Apparently, in certain conditions, DB2 requires casts in when and else clauses of a case. Note that we already have:
/**
* {@inheritDoc}
* <p/>
* DB2 in fact does require that parameters appearing in the select clause be wrapped in cast() calls
* to tell the DB parser the type of the select value.
*/
@Override
public boolean requiresCastingOfParametersInSelectClause() {
return true;
}
so I suspect something similar is required. |