For future reference: I updated my version to 2.1.4, and now everything
works as expected
Thanks OrientDB Team!
Rodrigo
El miércoles, 14 de octubre de 2015, 4:05:42 (UTC-3), Rodrigo Abt escribió:
>
> Hi guys,
>
> I have a vertex class "Person" with a field called "salary" which is an
> embeddedList class (Salary) with properties "reason" (string) and "when"
> (date). The following query:
>
> select salary from Person where id='123456'
>
> gives this:
>
> [{"@type":"d","@version":0,"@class":"Salary","reason":"change","when":"2001-03-19
>
> 00:00:00","@fieldTypes":"when=t"},{"@type":"d","@version":0,"@class":"Salary","reason":"out
>
> of business","when":"2002-01-01 00:00:00","@fieldTypes":"when=t"}]
>
> When I try:
>
> update Person remove salary[reason='out of business'] where id='123456'
>
> it works, but when I try:
>
> update Person remove salary[when='2002-01-01 00:00:00'] where id='123456'
>
> it doesn't. The query works (no errors) but the value is not being removed
> at all. I'm pretty sure the values inserted are correct.
>
> select salary[when="2002-01-01"] from Person where id='123456'
>
> returns an empty array "[]". What I want is a way to remove an element
> based on the value of "when" key.
>
> Thanks,
> Rodrigo
>
--
---
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.