Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

Support CollectionLiteral.contains as SQL IN(...)

Created: 05/Apr/10 08:46 AM   Updated: 26/Apr/10 03:38 PM   Resolved: 05/Apr/10 08:51 AM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.1.0.m2

 Description  « Hide
When evaluating CollectionLiteral.contains(elem) we currently evaluate as
elemExpr == val1 || elemExpr == val2 || ...

but we could do
elemExpr IN (val1, val2, ...)
for slightly shorter statements

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 05/Apr/10 08:51 AM
SVN trunk does this now for the special case of CollectionLiteral.contains(expr)