Yes, that was the problem. I intuitively knew that I was doing something 
wrong :)
I was treating RIDs as just strings and in some other update queries it 
worked just fine, so it never occurred to me to create an object for an 
rid. I guess for the edge creation it is more strict.

Thanks for the quick response.

On Monday, November 14, 2016 at 7:52:59 AM UTC-8, [email protected] 
wrote:
>
> You should use ORecordId
>
> ORecordId rid1 = new ORecordId("9:0");
> ORecordId rid2 = new ORecordId("10:0"); 
> String sql = "create edge SentDirectPost from ? to ?";
> graph.command(new OCommandSQL(sql)).execute(rid1, rid2);
>
> Best regards,
> Alessandro
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to