From: Tom Lane Date: Thu, 16 Jan 2003 15:28:06 +0000 (+0000) Subject: Fix bogus formatting of DROP DATABASE command, per Christopher Kings-Lynne. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=db8e81b6dd4d76998b528360983ef2c2d55119f3;p=users%2Fbernd%2Fpostgres.git Fix bogus formatting of DROP DATABASE command, per Christopher Kings-Lynne. --- diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 145a8f332e..bac03cf901 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -414,7 +414,7 @@ dumpCreateDB(PGconn *conn) continue; if (output_clean) - appendPQExpBuffer(buf, "DROP DATABASE %s\n;", fmtId(dbname)); + appendPQExpBuffer(buf, "DROP DATABASE %s;\n", fmtId(dbname)); appendPQExpBuffer(buf, "CREATE DATABASE %s", fmtId(dbname)); appendPQExpBuffer(buf, " WITH OWNER = %s TEMPLATE = template0", fmtId(dbowner));