Hi Eric, With v3.0 you can avoid the eval and doing:
UPDATE #25:0 SET publish = expires + 2 Best Regards, Luca Garulli Founder OrientDB <http://orientdb.com/> On Sat, Jan 20, 2018 at 9:46 PM, Eric24 <[email protected]> wrote: > I'm running a query that sets a field in a target record to a calculated > value based on another field in that same record. This is a simplified > version of my query: > > UPDATE #25:0 SET publish = eval('@this.expires + 2') > > This works, but I just wanted to see if using the eval() function in this > way was the best/preferred way to do this. > > -- > > --- > 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.
