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-476
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Generic compilation of {arrayField}.length is incorrectly interpreted as a variable

Created: 02/Mar/10 05:51 PM   Updated: 03/Apr/10 10:45 AM   Resolved: 08/Mar/10 09:39 AM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 2.0.3, 2.1.0.m1


 Description  « Hide
When we compile the query
SELECT FROM mydomain.MyArrayHolder this.array2.length == :p

this becomes
  [filter:DyadicExpression{PrimaryExpression{VariableExpression{this.array2}.array2.length} = ParameterExpression{p}}]
  [symbols: p type=unknown, this type=mydomain.MyArrayHolder, this.array2 type=unknown]

Andy Jefferson made changes - 02/Mar/10 06:02 PM
Field Original Value New Value
Summary Generic compilation of array field access is incorrectly interpreted as a variable Generic compilation of {arrayField}.length is incorrectly interpreted as a variable
Andy Jefferson added a comment - 08/Mar/10 09:39 AM
SVN trunk has this fixed; 4 tests pass

Andy Jefferson made changes - 08/Mar/10 09:39 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.0.3 [ 10907 ]
Fix Version/s 2.1.0.release [ 10836 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 08/Mar/10 03:04 PM
Fix Version/s 2.1.0.m1 [ 10900 ]
Andy Jefferson made changes - 03/Apr/10 10:45 AM
Status Resolved [ 5 ] Closed [ 6 ]