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-413
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

JDOQL "startsWith(:value)"/"endsWith(:value)" on H2 causes NPE on compile()

Created: 13/Jun/10 08:00 PM   Updated: 27/Jun/10 08:57 AM   Resolved: 13/Jun/10 08:07 PM
Component/s: Queries
Affects Version/s: 2.1.0.release
Fix Version/s: 2.1.1


 Description  « Hide
If we have a query filter of
myStrField.startsWith(:param)

and try to just compile it, the arg passed in to startsWith is null (parameter). This is then attempted to be put into
{strExpr1} LIKE {strExpr2}% ESCAPE ...

so the strExpr2 pattern is null. This needs catching

Andy Jefferson added a comment - 13/Jun/10 08:07 PM
SVN trunk fixes this

Andy Jefferson made changes - 13/Jun/10 08:07 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 27/Jun/10 08:57 AM
Status Resolved [ 5 ] Closed [ 6 ]