DELETE VERTEX FROM

43 views
Skip to first unread message

Twin Tails

unread,
Sep 15, 2015, 4:14:48 PM9/15/15
to OrientDB

Trying to delete vertexes from the result of a LET statement:

BEGIN 
LET item = SELECT out() FROM 14:0 
LET item2 = DELETE VERTEX FROM ($item) 
COMMIT

Docs mention syntax as:

DELETE VERTEX <rid>|<class>|FROM (<subquery>) [WHERE <conditions>] [LIMIT <MaxRecords>>] [BATCH <batch-size>]

But the query throws an error: "Encountered " <FROM> "FROM ""

Is this still supported in OrientDB v2.1.0 ?

Using Studio: v2.1

Adrian Mihalcea

unread,
Sep 16, 2015, 1:35:44 AM9/16/15
to orient-...@googlegroups.com
the "FROM  (<subquery>)" problem has been fixed, see issue #4523
you can take a look on the 2.1.x branch or wait for the I assume soon to be released 2.1.3 version

--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Twin Tails

unread,
Sep 16, 2015, 8:04:40 AM9/16/15
to OrientDB
Alright, thanks for notifying me.
Reply all
Reply to author
Forward
0 new messages