]> granicus.if.org Git - postgresql/commitdiff
Fix bogus formatting of DROP DATABASE command, per Christopher Kings-Lynne.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jan 2003 15:28:06 +0000 (15:28 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Jan 2003 15:28:06 +0000 (15:28 +0000)
src/bin/pg_dump/pg_dumpall.c

index 292220f320107f4afbc5b6860673f712aa730eed..d429b621242b04e67e99611a10d1757007ea357c 100644 (file)
@@ -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));