/*
** Are the types compatible to each other? If not, throw an exception.
*/
if (! leftTC.compatible(valueNode.getTypeId()))
{
throw StandardException.newException(SQLState.LANG_DB2_COALESCE_DATATYPE_MISMATCH,
leftType.getSQLTypeName(),
valueNode.getTypeId().getSQLTypeName()
);