Skip to content

Commit

Permalink
fix: make sure that old query engine use public schema API for create…
Browse files Browse the repository at this point in the history
… property
  • Loading branch information
tglman committed Dec 12, 2023
1 parent 06c04f9 commit c3602fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -316,8 +317,8 @@ public Object execute(final Map<Object, Object> 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);
}
Expand Down

0 comments on commit c3602fb

Please sign in to comment.