Commit eeb86777 authored by Bruce Momjian's avatar Bruce Momjian

Update comment.

parent f59f8aed
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
* by PostgreSQL * by PostgreSQL
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.478 2007/11/19 18:44:06 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.479 2007/11/19 23:48:33 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1530,7 +1530,7 @@ dumpDatabase(Archive *AH) ...@@ -1530,7 +1530,7 @@ dumpDatabase(Archive *AH)
if (comment && strlen(comment)) if (comment && strlen(comment))
{ {
resetPQExpBuffer(dbQry); resetPQExpBuffer(dbQry);
/* This will fail when loaded into a database with a different name. */ /* Generates warning when loaded into a differently-named database.*/
appendPQExpBuffer(dbQry, "COMMENT ON DATABASE %s IS ", fmtId(datname)); appendPQExpBuffer(dbQry, "COMMENT ON DATABASE %s IS ", fmtId(datname));
appendStringLiteralAH(dbQry, comment, AH); appendStringLiteralAH(dbQry, comment, AH);
appendPQExpBuffer(dbQry, ";\n"); appendPQExpBuffer(dbQry, ";\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment