Add semicolons to end of internally run queries

This ensures that the --echo output of various tools (under scripts) is
valid multiline SQL.

Author: Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
This commit is contained in:
Peter Eisentraut 2018-08-30 19:23:22 +02:00
parent daa9fe8a52
commit 7061e03319
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ appendQualifiedRelation(PQExpBuffer buf, const char *spec,
appendStringLiteralConn(&sql, table, conn);
appendPQExpBufferStr(&sql, "::pg_catalog.regclass;");
executeCommand(conn, "RESET search_path", progname, echo);
executeCommand(conn, "RESET search_path;", progname, echo);
/*
* One row is a typical result, as is a nonexistent relation ERROR.

View File

@ -23,6 +23,6 @@
* might work with the old server, skip this.
*/
#define ALWAYS_SECURE_SEARCH_PATH_SQL \
"SELECT pg_catalog.set_config('search_path', '', false)"
"SELECT pg_catalog.set_config('search_path', '', false);"
#endif /* CONNECT_H */