summaryrefslogtreecommitdiffstats
path: root/src/bin/psql/common.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:16:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:16:19 +0000
commit31176cd686f31dcb71392f6583f7b8d9cef63770 (patch)
tree27fefbaada5177e179c6cf8806be49dfe613d5f4 /src/bin/psql/common.c
parentAdding upstream version 16.2. (diff)
downloadpostgresql-16-31176cd686f31dcb71392f6583f7b8d9cef63770.tar.xz
postgresql-16-31176cd686f31dcb71392f6583f7b8d9cef63770.zip
Adding upstream version 16.3.upstream/16.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/bin/psql/common.c')
-rw-r--r--src/bin/psql/common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 5973df2..3b0710a 100644
--- a/src/bin/psql/common.c
+++ b/src/bin/psql/common.c
@@ -1662,6 +1662,8 @@ ExecQueryAndProcessResults(const char *query,
if (cancel_pressed)
{
+ /* drop this next result, as well as any others not yet read */
+ ClearOrSaveResult(result);
ClearOrSaveAllResults();
break;
}