提交 473bfee0 authored 作者: Thomas Mueller's avatar Thomas Mueller

The script created by SCRIPT DROP did not always work if multiple views existed…

The script created by SCRIPT DROP did not always work if multiple views existed that depend on each other.
上级 b42645bb
......@@ -214,9 +214,7 @@ public class TableView extends Table {
}
public String getDropSQL() {
StatementBuilder buff = new StatementBuilder("DROP VIEW IF EXISTS ");
buff.append(getSQL());
return buff.toString();
return "DROP VIEW IF EXISTS " + getSQL() + " CASCADE";
}
public String getCreateSQLForCopy(Table table, String quotedName) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论