Skip to content

Commit

Permalink
cleanup: removed code not used anymore from update step
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Sep 24, 2024
1 parent 2a93119 commit 88e94ac
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.orientechnologies.common.concur.OTimeoutException;
import com.orientechnologies.orient.core.command.OCommandContext;
import com.orientechnologies.orient.core.metadata.schema.OClass;
import com.orientechnologies.orient.core.sql.executor.resultset.OExecutionStream;
import com.orientechnologies.orient.core.sql.parser.OUpdateItem;
import java.util.List;
Expand All @@ -26,14 +25,6 @@ public OExecutionStream internalStart(OCommandContext ctx) throws OTimeoutExcept
private OResult mapResult(OResult result, OCommandContext ctx) {
if (result instanceof OResultInternal) {
for (OUpdateItem item : items) {
OClass type = result.getElement().flatMap(x -> x.getSchemaType()).orElse(null);
if (type == null) {
Object clazz = result.getProperty("@view");
if (clazz instanceof String) {
type = ctx.getDatabase().getMetadata().getSchema().getView((String) clazz);
}
}

item.applyUpdate((OResultInternal) result, ctx);
}
}
Expand Down

0 comments on commit 88e94ac

Please sign in to comment.