未验证 提交 be3c307d 编写于 作者: S Serge Rider 提交者: GitHub

Merge pull request #5947 from riednyko/#5783_cascade_delete_view

Cascade delete view #5783
......@@ -93,7 +93,11 @@ public class PostgreViewManager extends PostgreTableManagerBase implements DBEOb
{
PostgreViewBase view = (PostgreViewBase)command.getObject();
actions.add(
new SQLDatabasePersistAction("Drop view", "DROP " + view.getViewType() + " " + view.getFullyQualifiedName(DBPEvaluationContext.DDL)) //$NON-NLS-2$
new SQLDatabasePersistAction(
"Drop view",
"DROP " + view.getViewType() +
" " + view.getFullyQualifiedName(DBPEvaluationContext.DDL) +
(CommonUtils.getOption(options, OPTION_DELETE_CASCADE) ? " CASCADE" : ""))
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册