I observed a strange behavior of simple Arrays

On a schemaless db, when I perform an update like

UPDATE #18:4 set abc = [34,54,'gh']

the array is created correctly

But if I do 

UPDATE #18:4 set abc = [34,54,'gh',#19:4]

only a the link is left in the array


select from #18:4
{   "result": [    {       "@type": "d",      "@rid": "#18:4",      
"@version": 10,       "@class": "test_model",     "abc": [        
"#19:4"         ], ... }


same is happening if I do


UPDATE #18:4 set abc = [34,54,'gh']
UPDATE #18:4 ADD abc = #19:4

In both cases, all array-fields other then links are erased without any 
warning or raising an error.

Is this the desired behavior or a bug?

hartmut


p.s Observation made using v. 2.2.5 

-- 

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