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: Bug Bug
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/JPQL2 : when parameters input as positional, and has a param duplicated in the statement, can fail to set a parameter

Created: 11/May/10 04:14 PM   Updated: 24/May/10 03:43 PM   Resolved: 11/May/10 04:28 PM
Component/s: Queries
Affects Version/s: 2.0.3, 2.0.4, 2.1.0.m1, 2.1.0.m2
Fix Version/s: 2.1.0.m3

 Description  « Hide
If we have a statement like
MultiPoint geom = new MultiPoint("SRID=4326;MULTIPOINT(10 10,75 75)");
Short n = new Short((short) 1);
Query query = pm.newQuery(SamplePoint.class,
    "geom != null && Spatial.equals(geom, Spatial.geometryN(Spatial.mPointFromWKB(Spatial.asBinary(:geom), Spatial.srid(:geom)), :n))");
List list = (List) query.execute(geom, n);

So we have "geom" in positions 1 and 2, and "n" in position 3 yet they are input in positions 1 and 2. This means that the ":n" parameter is not being set properly.

Andy Jefferson added a comment - 11/May/10 04:28 PM
SVN trunk fixes this

Andy Jefferson made changes - 11/May/10 04:28 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 24/May/10 03:43 PM
Status Resolved [ 5 ] Closed [ 6 ]