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-Tag: REL7_3_2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0f0d709e6a7a0ac171ca1560676f7e966a5aaaf;p=postgresql 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 292220f320..d429b62124 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.9.2.1 2002/11/22 03:09:59 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.9.2.2 2003/01/16 15:28:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -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));