String javaTypeName =
dtd.getTypeId().getCorrespondingJavaTypeName();
String resultJavaTypeName =
getTypeId().getCorrespondingJavaTypeName();
if (!dtd.comparable(getTypeServices(), false, getClassFactory())
&& !cu.assignableTo(javaTypeName, resultJavaTypeName)
&& !cu.assignableTo(resultJavaTypeName, javaTypeName)) {
throw StandardException.newException(
SQLState.LANG_NOT_TYPE_COMPATIBLE,
dtd.getTypeId().getSQLTypeName(),