Fixing #24225
This commit is contained in:
parent
0edf127a53
commit
88333c893c
|
@ -894,7 +894,12 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
|||
return PropertyElementManagement.getPropertyDocument(value);
|
||||
|
||||
case ARRAY:
|
||||
return value;
|
||||
List<Object> list = new ArrayList<>();
|
||||
ArrayNode arrayNode = (ArrayNode) value;
|
||||
for(JsonNode node : arrayNode) {
|
||||
list.add(getObjectFromJsonNode(node));
|
||||
}
|
||||
return list;
|
||||
|
||||
case BINARY:
|
||||
break;
|
||||
|
@ -1076,7 +1081,11 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
|||
if(object != null) {
|
||||
if(object instanceof ODocument) {
|
||||
element.setProperty(key, object, OType.EMBEDDED);
|
||||
}else if(object instanceof ArrayNode){
|
||||
/*
|
||||
* Update is not allowed,
|
||||
* hence bug https://github.com/orientechnologies/orientdb/issues/7354 cannot occur
|
||||
*/
|
||||
} else if(object instanceof List){
|
||||
element.setProperty(key, object, OType.EMBEDDEDLIST);
|
||||
} else {
|
||||
element.setProperty(key, object);
|
||||
|
|
Loading…
Reference in New Issue