Commit 7061e033 authored by Peter Eisentraut's avatar Peter Eisentraut

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>
parent daa9fe8a
......@@ -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.
......
......@@ -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 */
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