Create edge error

23 views
Skip to first unread message

Amrutha Valli

unread,
Jul 11, 2016, 7:05:50 AM7/11/16
to OrientDB
i  am unable to create an edge in orientdb with value as "is"

CREATE CLASS IS   EXTENDS E;


but the same is working when i am doing it from gremlin 

  graph.addEdge("is" ,new,  new1,"is");


Luigi Dell'Aquila

unread,
Jul 11, 2016, 7:54:01 AM7/11/16
to orient-...@googlegroups.com
Hi Amrutha,

"IS" is a reserved keyword in OrientDB SQL, you have to back-tick quote it if you want to use it as a class name:

CREATE CLASS `IS` EXTENDS E;

Thanks

Luigi



--

---
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.

Reply all
Reply to author
Forward
0 new messages