提交 9c32f47a authored 作者: Thomas Mueller's avatar Thomas Mueller

When creating a database from a recovery script, the same user can now be used…

When creating a database from a recovery script, the same user can now be used (CREATE USER now always includes IF EXISTS).
上级 140bda27
...@@ -142,7 +142,7 @@ public class ScriptCommand extends ScriptBase { ...@@ -142,7 +142,7 @@ public class ScriptCommand extends ScriptBase {
add("", true); add("", true);
} }
for (User user : db.getAllUsers()) { for (User user : db.getAllUsers()) {
add(user.getCreateSQL(passwords, true), false); add(user.getCreateSQL(passwords), false);
} }
for (Role role : db.getAllRoles()) { for (Role role : db.getAllRoles()) {
add(role.getCreateSQL(true), false); add(role.getCreateSQL(true), false);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论