提交 f1073cea authored 作者: Thomas Mueller's avatar Thomas Mueller

In SQL scripts created with SCRIPT TO, schemas are now only created if they don't exist yet.

上级 f8afc665
...@@ -87,7 +87,7 @@ public class Schema extends DbObjectBase { ...@@ -87,7 +87,7 @@ public class Schema extends DbObjectBase {
return null; return null;
} }
StringBuffer buff = new StringBuffer(); StringBuffer buff = new StringBuffer();
buff.append("CREATE SCHEMA "); buff.append("CREATE SCHEMA IF NOT EXISTS ");
buff.append(getSQL()); buff.append(getSQL());
buff.append(" AUTHORIZATION "); buff.append(" AUTHORIZATION ");
buff.append(owner.getSQL()); buff.append(owner.getSQL());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论