提交 32a3749f 编写于 作者: S serge-rider

#2557 pg_restore command line fix


Former-commit-id: 2d193abb
上级 e7cef2ef
......@@ -98,7 +98,9 @@ class PostgreRestoreWizard extends PostgreBackupRestoreWizard<PostgreDatabaseRes
@Override
protected List<String> getCommandLine(PostgreDatabaseRestoreInfo arg) throws IOException {
List<String> cmd = super.getCommandLine(arg);
cmd.add("--format=" + format.getId());
if (format != ExportFormat.PLAIN) {
cmd.add("--format=" + format.getId());
}
cmd.add("--dbname=" + arg.getDatabase().getName());
return cmd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册