MountainClimb / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

Invalid JDOQL using == not throwing exception #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Run the query
query.setFilter("key == :keyList");
List<Master> list = (List<Master>) query.execute(keyList); 
where the input param is a List<Key>

What is the expected output? What do you see instead?
Should result in invalid query exception since invalid JDOQL

What version of the product are you using? On what operating system?
latest @ 23/Oct/2009

Please provide any additional information below.
See the forum thread
http://groups.google.com/group/google-appengine-java/browse_thread/thread/aeaf48
e45b9d5d59

It's important that the JDO spec is followed on such things and inventing
arbitrary syntax for some datastore is beyond what I'd consider reasonable
where there are ample other syntaxis that could be used. e.g a filter like
":keyList.contains(key)"

Original issue reported on code.google.com by googleco...@yahoo.co.uk on 23 Oct 2009 at 9:05