mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
pg_dump/pg_dumpall: remove unnecessary SQL trailing semicolons
Patch by Ian Lawrence Barwick
This commit is contained in:
@ -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)
|
|||||||
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))
|
||||||
|
Reference in New Issue
Block a user