Skip to content

UPDATE #9:1 SET foo.bar = (INSERT INTO...) Syntax Not Working #8583

@big213

Description

@big213

OrientDB Version: 3.0.8

Java Version: 1.8.0_141

OS: Windows 7

Expected behavior

UPDATE ... SET foo.bar = (INSERT INTO...) successfully updates the linkmap with the inserted record (it worked fine in OrientDB 2.2x)

Actual behavior

Fails, returns java.lang.ClassCastException: java.util.ArrayList cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable

Steps to reproduce

CREATE VERTEX V SET foo = {}
UPDATE #9:1 SET foo.bar = (INSERT INTO V SET val = 1)

What does work is if I do:
CREATE VERTEX V SET id = 1, foo = {} //#9:1
CREATE VERTEX V SET id = 2 //#9:2
UPDATE #9:1 SET foo.bar = #9:2 OK

Metadata

Metadata

Labels

buglegacy not used anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions