Use the Raw sql query. Update is idempotent. -- Paul
On Fri, 01 May 2015, 15:45 <[email protected]> wrote: > Hi, > > I am just starting to explore the usage of orient database. > > In the query > > db.command(new OSQLSynchQuery[ODocument]("update (select > expand(milli[2]) from Second)" + > " add request = ?")).execute(reqdoc3) > > I got - Cannot execute non idempotent command, while running the same > query from console - > > update (select expand(milli[2]) from Second) add request = #13:2 > > everything is ok. Where is my mistake? Thank you. > > > -- > > --- > 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.
