I'm getting an error with a query when the where clause has a "select"
in the value. For example if the url is :
http://domain.com/jquery-selectors-tutorial.html
Below is the code:
Query query = pm.newQuery("select from " +
ResourceItem.class.getName() + " where url == '" + req.getParameter
("url") + "' ");
Below is the exception:
javax.jdo.JDOUserException: JDOQL Single-String query has a subquery
clause without a closing parenthesis.
at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException
(NucleusJDOHelper.java:375)
at org.datanucleus.jdo.JDOPersistenceManager.newQuery
(JDOPersistenceManager.java:1298)
at org.datanucleus.jdo.JDOPersistenceManager.newQuery
(JDOPersistenceManager.java:1234)
JDOQL thinks that is trying to do subquery. Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---