Hi,

Which version are you working with?

Thanks

Luigi


2016-11-14 16:12 GMT+01:00 Borov <[email protected]>:

> Hi guys,
>
> I'm not sure what am I doing wrong when trying to create an edge from one
> rid to another. Here is the syntax that doesn't work:
>
> String sql = "create edge SentDirectPost from ? to ?";
> db.command(new OCommandSQL(sql)).execute(rid1, rid2);
>
> It results in exception:
> Error on execution of command: sql.create edge SentDirectPost from ? to ?
>
> However, if I just hardcode the rids right into the sql string, it works
> fine:
> String sql = "create edge SentDirectPost from #133:5 to #140:2";
> db.command(new OCommandSQL(sql)).execute();
>
> Am I not supposed to use OCommandSQL with parameters in the execute
> method? If that's true, then how do I use parameters?
>
> Thanks
>
> --
>
> ---
> 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.
>

-- 

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