OrientDB v2.1.2
I see from documentation that I can run a prepared query with parameters
using:
OSQLSynchQuery<ODocument> query = new OSQLSynchQuery<ODocument>("select from
Profile where name = ? and surname = ?");
List<ODocument> result = database.command(query).execute("Barack", "Obama");
However I cannot seem to run a command as a prepared command (I get Error
on execution of command)
Map<String,Object> params = new HashMap<String,Object>();
params.put("vertexparam", "#12:0");
graph.command(new OCommandSQL("delete edge a_links_b from
:vertexparam")).execute(params);
Is this possible?
--
---
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.