Generic compile of JDOQL "collField.contains(var) && var.startsWith('Value')" compiled incorrectly
--------------------------------------------------------------------------------------------------
Key: NUCCORE-474
URL: http://www.datanucleus.org/servlet/jira/browse/NUCCORE-474
Project: DataNucleus Core
Issue Type: Bug
Components: Queries
Affects Versions: 2.0.1, 2.0.0.release
Reporter: Andy Jefferson
Assignee: Andy Jefferson
If we have a filter of
collField.contains(var) && var.startsWith('Value')
where collField is declared as Collection<String> then this is currently compiled as
DyadicExpression
{
InvokeExpression{[PrimaryExpression{this.names}].contains(VariableExpression{theName})}
AND
VariableExpression{theName}
}
i.e the invocation on the variable in the second clause is missed!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.datanucleus.org/servlet/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|