From c3602fbe854a20d70f62868f90634436cb215a51 Mon Sep 17 00:00:00 2001 From: Tglman Date: Tue, 12 Dec 2023 16:22:53 +0100 Subject: [PATCH] fix: make sure that old query engine use public schema API for create property --- .../orient/core/sql/OCommandExecutorSQLCreateProperty.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateProperty.java b/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateProperty.java index 3fc2ad861d5..edc329f447f 100644 --- a/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateProperty.java +++ b/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateProperty.java @@ -27,6 +27,7 @@ import com.orientechnologies.orient.core.exception.OCommandExecutionException; import com.orientechnologies.orient.core.metadata.schema.OClass; import com.orientechnologies.orient.core.metadata.schema.OClassEmbedded; +import com.orientechnologies.orient.core.metadata.schema.OProperty; import com.orientechnologies.orient.core.metadata.schema.OPropertyImpl; import com.orientechnologies.orient.core.metadata.schema.OType; import java.util.ArrayList; @@ -316,8 +317,8 @@ public Object execute(final Map iArgs) { } // CREATE IT LOCALLY - OPropertyImpl internalProp = - sourceClass.addPropertyInternal(fieldName, type, linkedType, linkedClass, unsafe); + OProperty internalProp = + sourceClass.addProperty(fieldName, type, linkedType, linkedClass, unsafe); if (readonly) { internalProp.setReadonly(true); }