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)

Type: Task Task
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

JDOQL2 : ObjectLiteral == ObjectExpression with composite id doesn't generate correct clauses

Created: 02/Mar/10 09:21 PM   Updated: 17/Mar/10 08:52 PM   Resolved: 02/Mar/10 09:44 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.0.2

 Description  « Hide
If we have something like

parameter.field == this

where they are both of the same (candidate) type, then an incorrect SQL is generated. See test.jdo.application "JDOQLContainerTest" e.g testQueryUsesContainsOnceOnOneUnboundVariableInverseUsingParameter (last query)

Cannot perform operation "==" on and A0.GLOBALNUM Cannot perform operation "==" on
s.sql.expression.StringLiteral@1664cde and A0.GLOBALNUM

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 02/Mar/10 09:44 PM
SVN trunk now allows this ... XXXExpression eq/gt/ne/ge/lt/le needed to handle ColumnExpression comparison.