diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 4f310a8019..864f195992 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1114,7 +1114,7 @@ SendQuery(const char *query) pset.crosstab_flag || !is_select_command(query)) { /* Default fetch-it-all-and-print mode */ - OK = (ExecQueryAndProcessResults(query, &elapsed_msec, &svpt_gone, false, NULL, NULL) >= 0); + OK = (ExecQueryAndProcessResults(query, &elapsed_msec, &svpt_gone, false, NULL, NULL) > 0); } else {