Hi Luigi, I use 2.2.12. Alessandro's answer solved my issue. Thanks for the 
quick response.


On Monday, November 14, 2016 at 7:20:46 AM UTC-8, Luigi Dell'Aquila wrote:
>
> Another question, are you passing actual RIDs as parameters? If you pass 
> strings it won't work
>
> Thanks
>
> Luigi
>
>
>
> 2016-11-14 16:19 GMT+01:00 Luigi Dell'Aquila <[email protected] 
> <javascript:>>:
>
>> Hi,
>>
>> Which version are you working with?
>>
>> Thanks
>>
>> Luigi
>>
>>
>> 2016-11-14 16:12 GMT+01:00 Borov <[email protected] <javascript:>>:
>>
>>> 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] <javascript:>.
>>> 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