Try this:

update (select expand(in('Manages')) from asset where guid =
'817ea932-4a4a-49a4-8454-37c5098703a2') set lastCommunicationTime=date()

With expand the collection becomes the resultset.

Lvc@


On 6 February 2015 at 17:40, alexander anguiano <jobl...@gmail.com> wrote:

> I didn't realize you can do this.
>
> The real query that i need is
>
>
> update (select in('Manages') from asset where guid =
> '817ea932-4a4a-49a4-8454-37c5098703a2') set lastCommunicationTime=date()
>
> but it isn't working, it get this
>
>  java.lang.IllegalArgumentException: Cluster segment #-2 does not exist in
> database 'assets'
>
> any clue and how to for this query?
>
>
> On Friday, February 6, 2015 at 10:07:47 AM UTC-6, Emanuele wrote:
>>
>> Have you thought to do change in this way:
>>
>> update  #13:3 set lastCommunicationTime=date()
>>
>> bye
>>
>> Emanuel
>>
>> On 06/02/15 15:59, syshex wrote:
>> > update Agent set lastCommunicationTime=date() where @rid = #13:3
>> >
>>
>>  --
>
> ---
> 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 orient-database+unsubscr...@googlegroups.com.
> 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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to