SqlTypeFactoryImpl::leastRestrictive() calls leastRestrictiveByCast() which
calls sqlTypeUtil.canCastFrom(type, resultType, false). Last boolean
argument is about type coercion. Since, its called from SqlTypeFactoryImpl,
I expected coercion should have been allowed here and canCastFrom() should
have been called with true, atleast thats what comment of canCastFrom()
method seems to suggest. Is this a bug or am I missing something here?

Thanks,
Ashutosh

Reply via email to