提交 56df1f4c 编写于 作者: S Serge Rider

#7442 PG: sequence rename fix (use fqn)


Former-commit-id: 9bd31703
上级 aec33fa2
......@@ -102,8 +102,8 @@ public class PostgreSequenceManager extends SQLObjectEditor<PostgreTableBase, Po
protected void addObjectRenameActions(DBRProgressMonitor monitor, List<DBEPersistAction> actions, ObjectRenameCommand command, Map<String, Object> options) {
actions.add(
new SQLDatabasePersistAction("Rename sequence",
"ALTER SEQUENCE " + DBUtils.getQuotedIdentifier(command.getObject().getDataSource(), command.getOldName()) +
" RENAME TO " + DBUtils.getQuotedIdentifier(command.getObject().getDataSource(), command.getNewName())));
"ALTER SEQUENCE " + DBUtils.getQuotedIdentifier(command.getObject().getSchema()) + "." + DBUtils.getQuotedIdentifier(command.getObject().getDataSource(), command.getOldName()) +
" RENAME TO " + DBUtils.getQuotedIdentifier(command.getObject().getSchema()) + "." + DBUtils.getQuotedIdentifier(command.getObject().getDataSource(), command.getNewName())));
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册