Issue Details (XML | Word | Printable)

Key: NUCRDBMS-378
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 Store RDBMS

JDOQL2 : Map.containsKey/containsValue using INNER JOIN don't allow for the contained variable already having its table in the statement

Created: 28/Apr/10 03:55 PM   Updated: 24/May/10 03:43 PM   Resolved: 28/Apr/10 05:05 PM
Component/s: Queries
Affects Version/s: 2.1.0.m1, 2.1.0.m2
Fix Version/s: 2.1.0.m3


 Description  « Hide
When we do a Map.containsKey/Map.containsValue and are using an inner join we always assume that the contained object doesn't yet exist in the statement. It may however have its own table present. For example when we do

var.mapField.containsValue(this)

Andy Jefferson made changes - 28/Apr/10 04:53 PM
Field Original Value New Value
Summary JDOQL2 : Collection.contains/Map.containsXXX using INNER JOIN don't allow for the variable already having its table in the statement JDOQL2 : Map.containsKey/containsValue using INNER JOIN don't allow for the contained variable already having its table in the statement
Description When we do a Collection.contains() or Map.containsKey/Map.containsValue and are using an inner join we always assume that the contained object doesn't yet exist in the statement. It may however have its own table present. For example when we do

var.collField.contains(this)
When we do a Map.containsKey/Map.containsValue and are using an inner join we always assume that the contained object doesn't yet exist in the statement. It may however have its own table present. For example when we do

var.mapField.containsValue(this)
Andy Jefferson added a comment - 28/Apr/10 05:05 PM
SVN trunk handles this correctly now and doesn't add the extra INNER JOIN

Andy Jefferson made changes - 28/Apr/10 05:05 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.0.m3 [ 10943 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 24/May/10 03:43 PM
Status Resolved [ 5 ] Closed [ 6 ]