Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrays are resetted if a link is insert #7141

Closed
topofocus opened this issue Feb 2, 2017 · 1 comment
Closed

Arrays are resetted if a link is insert #7141

topofocus opened this issue Feb 2, 2017 · 1 comment
Assignees
Labels

Comments

@topofocus
Copy link

OrientDB Version, operating system, or hardware.

  • v2.2 5 - 15

Operating System

  • [x ] Linux

If an array is inserted in schemaless mode, its contents are erased if a single "RID" is added

Expected behavior and actual behavior

Steps to reproduce the problem

insert into property set property = [ 'a', 'b', 3 ]
--> #26:0
update #26:0 add property = 'k'
-->["a","b",3,"k"]
update #26:0 add property = #25:0
-->[ #25:0 ]
expected
-->["a","b",3,"k",#25:0]

further an additional

update #26:0 add property = 'k'

does not modify the array

@luigidellaquila luigidellaquila self-assigned this Feb 2, 2017
@luigidellaquila luigidellaquila added this to the 2.2.x (next hotfix) milestone Feb 2, 2017
@luigidellaquila
Copy link
Member

Hi @topofocus

the problem seems to be in the JSON serialization, the record is correctly updated but when you retrieve it from HTTP (eg. from Studio) you get a wrong collection value.
If you use it from a binary driver (eg. Java) it should work fine

I'm trying to see how to fix it

Thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants