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: NUCJPA-189
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

Treat JPQL "positional" parameters as named internally, to simplify code

Created: 25/Oct/12 11:55 AM   Updated: 27/Oct/12 03:58 PM   Resolved: 27/Oct/12 03:58 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.0.m1


 Description  « Hide
User can specify
SELECT ... FROM ... WHERE a = :param AND b = :nextParam
or
SELECT ... FROM ... WHERE a = ?1 AND b = ?2

but the second option effectively has named parameters since they are named by the number. Simply treating all JPQL params internally as named would simplify their processing.

Andy Jefferson added a comment - 25/Oct/12 12:28 PM
SVN trunk makes this change

Andy Jefferson made changes - 25/Oct/12 12:28 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 26/Oct/12 05:13 PM
Fix Version/s 3.1.3 [ 11703 ]
Andy Jefferson made changes - 26/Oct/12 05:39 PM
Status Resolved [ 5 ] Closed [ 6 ]
Andy Jefferson made changes - 27/Oct/12 03:58 PM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Andy Jefferson made changes - 27/Oct/12 03:58 PM
Fix Version/s 3.1.3 [ 11703 ]
Andy Jefferson made changes - 27/Oct/12 03:58 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 27/Oct/12 03:58 PM
Status Resolved [ 5 ] Closed [ 6 ]