Hi Michael,

which OrientDB version are you using? Support for named parameters is
limited in v 2.0.x but in 2.1 (rc1 was already released) it is supposed to
work well

Luigi


2015-04-26 19:47 GMT+02:00 Michael MacFadden <[email protected]>:

> I have a case where I am adding an element to an array.  I am trying to
> use named parameters in the query, but they are not working.  Using a hard
> coded string does work.  My real use case is to insert a complex object,
> but I have boiled it down to a simple example that is attached.
> Essentially the following is not working:
>
>
> String update = "UPDATE MyClass ADD array = :value WHERE docId = :docId";
> OCommandSQL command = new OCommandSQL(update);
>
> Map<String, Object> params = new HashMap<String, Object>();
> params.put("docId", DOC_ID);
> params.put("value", "foo");
>
> db.command(command).execute(params);
> 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