Community
Participate
Working Groups
If an OQL statement is typed in with a AS clauses with spaces (using double-quotes) then the statement cannot be reexecuted. SELECT s.@objectId AS "a b" FROM java.lang.Object s is printed out as this SELECT s.@objectId AS a b FROM java.lang.Object s which fails to execute Executed Query: SELECT s.@objectId AS a b FROM java.lang.Object s Problem reported: Encountered "b" at line 1, column 25. Was expecting one of: "FROM"
The fix is simple - it just needs quotes if the column name has spaces (or is of zero length). I've also written some tests.