Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0
-
None
Description
When translating an EJBQL condition we need to keep a stack tracing the type of condition. One place where this is important is EJBQLConditionTranslator.processParameter(), as currently it hardcodes the type to VARCHAR for null parameters:
context.append(" #bind($").append(boundName).append(" 'VARCHAR')");
This leads to errors, e.g. a postgresql 8.3 error:
Tests in error:
testCompareToNull(org.apache.cayenne.access.DataContextEJBQLIsNullTest)
There may be other places where such info will be useful