Object rename fix

This commit is contained in:
Serge Rider
2021-11-09 19:56:28 +03:00
parent 282cd66503
commit ab598138dd
@@ -272,7 +272,12 @@ public class WebServiceNavigator implements DBWServiceNavigator {
Map<String, Object> options = new LinkedHashMap<>();
DBECommandContext commandContext = new WebCommandContext(executionContext, false);
objectRenamer.renameObject(commandContext, object, options, newName);
commandContext.saveChanges(session.getProgressMonitor(), options);
try {
commandContext.saveChanges(session.getProgressMonitor(), options);
} catch (DBException e) {
commandContext.resetChanges(true);
throw e;
}
return node.getName();
}
}