From 7061e03319d9a31f02d3777ca856b6c33e7a0967 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 30 Aug 2018 19:23:22 +0200 Subject: 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 --- src/bin/scripts/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/scripts/common.c') diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index 29f5c97fafe..ba6120706d6 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.c @@ -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. -- cgit v1.2.3