DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-533
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 Core

Generic Compilation Optimiser : Optimise "var == this" to replace "var" with the candidate

Created: 17/Apr/10 02:25 PM   Updated: 11/Jun/10 01:38 PM   Resolved: 24/May/10 02:28 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.1.0.release

 Description  « Hide
If a user creates a query with the clause
"var == this" or "this == var"
then ignore it and replace all usage of "var" with the candidate.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 24/May/10 02:28 PM
Enable persistence property "datanucleus.query.compileOptimised" as "true" and this will be factored out. Handles most locations of use of variables but maybe are some others still needing process (for that reason it has to be turned on, rather than defaulted)