com.orientechnologies.orient.core.exception.OCommandExecutionException:
Error on execution of command: sql.delete edge a_links_b from :vertexparam
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1482)
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1450)
at
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1319)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:396)
at
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:223)
at
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)
Caused by: java.lang.NumberFormatException: For input string: ""#43"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at
com.orientechnologies.orient.core.id.ORecordId.fromString(ORecordId.java:267)
at
com.orientechnologies.orient.core.id.ORecordId.<init>(ORecordId.java:62)
at
com.orientechnologies.orient.core.sql.OSQLEngine.parseRIDTarget(OSQLEngine.java:485)
at
com.orientechnologies.orient.graph.sql.OCommandExecutorSQLDeleteEdge$2.call(OCommandExecutorSQLDeleteEdge.java:231)
at
com.orientechnologies.orient.graph.sql.OGraphCommandExecutorSQLFactory.runInTx(OGraphCommandExecutorSQLFactory.java:130)
at
com.orientechnologies.orient.graph.sql.OCommandExecutorSQLDeleteEdge.execute(OCommandExecutorSQLDeleteEdge.java:226)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:90)
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1469)
On Thursday, October 15, 2015 at 3:41:04 PM UTC+1, l.garulli wrote:
>
> Do you have the complete, full exception?
>
> Best Regards,
>
> Luca Garulli
> Founder & CEO
> OrientDB <http://orientdb.com/>
>
>
> On 15 October 2015 at 13:56, Simon White <[email protected]
> <javascript:>> wrote:
>
>> 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] <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.