Commit 8eb29194 authored by Bruce Momjian's avatar Bruce Momjian

pg_dump/pg_dumpall: remove unnecessary SQL trailing semicolons

Patch by Ian Lawrence Barwick
parent d074b4e5
...@@ -12761,7 +12761,6 @@ createViewAsClause(Archive *fout, TableInfo *tbinfo) ...@@ -12761,7 +12761,6 @@ createViewAsClause(Archive *fout, TableInfo *tbinfo)
appendPQExpBuffer(query, "SELECT definition AS viewdef " appendPQExpBuffer(query, "SELECT definition AS viewdef "
"FROM pg_views WHERE viewname = "); "FROM pg_views WHERE viewname = ");
appendStringLiteralAH(query, tbinfo->dobj.name, fout); appendStringLiteralAH(query, tbinfo->dobj.name, fout);
appendPQExpBuffer(query, ";");
} }
res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK); res = ExecuteSqlQuery(fout, query->data, PGRES_TUPLES_OK);
......
...@@ -1428,8 +1428,6 @@ dumpDatabaseConfig(PGconn *conn, const char *dbname) ...@@ -1428,8 +1428,6 @@ dumpDatabaseConfig(PGconn *conn, const char *dbname)
if (server_version >= 90000) if (server_version >= 90000)
appendPQExpBuffer(buf, ")"); appendPQExpBuffer(buf, ")");
appendPQExpBuffer(buf, ";");
res = executeQuery(conn, buf->data); res = executeQuery(conn, buf->data);
if (PQntuples(res) == 1 && if (PQntuples(res) == 1 &&
!PQgetisnull(res, 0, 0)) !PQgetisnull(res, 0, 0))
......
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