You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #25: Found unexpected keyword 'RETURN' while it was expected '[=, WHERE]'. Use UPDATE |cluster:> [SET|ADD|PUT|REMOVE|INCREMENT|CONTENT {}|MERGE {}] [[,] = |]* [LOCK <NONE|RECORD>] [UPSERT] [RETURN <COUNT|BEFORE|AFTER>] [WHERE ] Command: UPDATE #17:16 REMOVE note RETURN AFTER ---------------------------------^
orientdb-community-2.1-rc3
The text was updated successfully, but these errors were encountered:
Ziink
changed the title
Error when using RETURN with UPDDATE REMOVE
Error when using RETURN with UPDATE REMOVE
May 30, 2015
I wonder is this is related? The following UPDATE with a PUT also throws a similar exception, but works if I replace the PUT with a SET on a non-map property:
UPDATE #14:1 PUT Options = '22', {"Action":"Test22a","Enabled":false, "@type":"d", "@class":"VOptions"} WHERE NOT (Options CONTAINSKEY '22') RETURN AFTER @this.Options['22']
works as expected. But
throws
com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #25: Found unexpected keyword 'RETURN' while it was expected '[=, WHERE]'. Use UPDATE |cluster:> [SET|ADD|PUT|REMOVE|INCREMENT|CONTENT {}|MERGE {}] [[,] = |]* [LOCK <NONE|RECORD>] [UPSERT] [RETURN <COUNT|BEFORE|AFTER>] [WHERE ] Command: UPDATE #17:16 REMOVE note RETURN AFTER ---------------------------------^
orientdb-community-2.1-rc3
The text was updated successfully, but these errors were encountered: