Hello,
I'm using an SQLQuery to read from a gigaspace with the following sqlExpression:
= new SQLQuery(Person.class, "phoneNumbers.work cell = '555-5678'");
where "phoneNumbers" is a Map and "work cell" is the key of the value I'm trying to compare. (using the same object defined in http://docs.gigaspaces.com/xap97/query-nested-properties.html)
I'm getting the following underlying exception:
Caused by: java.sql.SQLException: Error in statement [phoneNumbers.work cell = '555-5678']; Cause: com.j_spaces.jdbc.parser.grammar.ParseException: Encountered " "cell "" at line 1, column 19.
Was expecting one of:
"between" ...
"is" ...
"[*]" ...
at com.j_spaces.core.client.sql.SqlQueryParser.parseSqlQuery(SqlQueryParser.java:103)
at com.j_spaces.core.client.sql.QueryManager.readTake(QueryManager.java:165)
... 37 more
It seems the space between work and cell is what is causing the problem. How can I escape this space or query this data in an equivalent way? I've tried different combinations of ' " \ and `.
I'm on the following version:
GigaSpaces XAP:
Edition: XAP Premium 9.7.1 GA
Build: 10800
Thank you,
Keenan Clifford
↧