mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-30 19:00:29 +08:00
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:
parent
daa9fe8a52
commit
7061e03319
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user