mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03: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);
|
appendStringLiteralConn(&sql, table, conn);
|
||||||
appendPQExpBufferStr(&sql, "::pg_catalog.regclass;");
|
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.
|
* One row is a typical result, as is a nonexistent relation ERROR.
|
||||||
|
@ -23,6 +23,6 @@
|
|||||||
* might work with the old server, skip this.
|
* might work with the old server, skip this.
|
||||||
*/
|
*/
|
||||||
#define ALWAYS_SECURE_SEARCH_PATH_SQL \
|
#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 */
|
#endif /* CONNECT_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user