[postgres] fix restore_commands regression from pg schema support
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 22 Dec 2014 11:25:11 +0100
changeset 434 73d26e0ed764
parent 432 4319422dc3f9
child 435 ffa3fa8921ff
[postgres] fix restore_commands regression from pg schema support Closes #284980
postgres.py
--- a/postgres.py	Tue Dec 02 17:57:36 2014 +0100
+++ b/postgres.py	Mon Dec 22 11:25:11 2014 +0100
@@ -224,15 +224,15 @@
         dbname = dbname or self.dbname
         cmds = []
         if drop:
-            cmd = self.pgdbcmd('dropdb', dbhost, dbport, dbuser)
+            cmd = self.pgdbcmd('dropdb', dbhost, dbport, dbuser, None)
             cmd.append(dbname)
             cmds.append(cmd)
-        cmd = self.pgdbcmd('createdb', dbhost, dbport, dbuser,
+        cmd = self.pgdbcmd('createdb', dbhost, dbport, dbuser, None,
                            '-T', 'template0',
                            '-E', dbencoding or self.dbencoding)
         cmd.append(dbname)
         cmds.append(cmd)
-        cmd = self.pgdbcmd('pg_restore', dbhost, dbport, dbuser, '-Fc')
+        cmd = self.pgdbcmd('pg_restore', dbhost, dbport, dbuser, None, '-Fc')
         cmd.append('--dbname')
         cmd.append(dbname)
         if not keepownership: