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

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

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

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 13/Jun/10 08:07 PM
SVN trunk fixes this