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: NUCRDBMS-386
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/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.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 11/May/10 04:28 PM
SVN trunk fixes this