Problem using date when querying the appengine datastore
Posted
by manu1001
on Stack Overflow
See other posts from Stack Overflow
or by manu1001
Published on 2010-04-15T06:59:44Z
Indexed on
2010/04/15
7:03 UTC
Read the original article
Hit count: 334
I'm running this query:
SELECT FROM com.Data WHERE entryDate > DATE('2010-3-16')
I get this error:
org.datanucleus.store.appengine.query.DatastoreQuery$UnsupportedDatastoreFeatureException: Problem with query DATE('2010-3-16')>: Unsupported method while parsing expression: InvokeExpression{[null].DATE(Literal{2010-3-16})}
The same query works when I use it on the admin console. But it does not work for code (java), either locally or when deployed. Any ideas?
© Stack Overflow or respective owner