Exploring OrientDB further  ....  Version 2.1-rc3

I created a Class with a Property, name: last_data type: EMBEDDEDLIST type: 
FLOAT ( (as I understood, duplicate Values are allowed and the list is 
ordered)

Then I created a Document

insert into {class} set last_value = [ 3,4,5 ]  ### wrong property name by 
accident


This creates a document (#35:0), with an empty EMBEDDEDLIST and a property 
»last_value« of type EMBEDDED.

EMBEDDED --- should point to a single object.

Now:

update #35:0 add last_data =7


works as expected and inserts a value into the embedded list

BUT:

update #35:0 add last_value =7  

updates the embedded item as well.

When retrieving the document, last_value  got the "7" as last element of 
the embedded array. 

Intended behavoir or bug?



-- 

--- 
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