From: Tom Lane Date: Wed, 12 Nov 2003 22:55:42 +0000 (+0000) Subject: AcceptResult() was missing a case for PGRES_EMPTY_QUERY --- probably X-Git-Tag: REL7_4~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2e8591f54768df1111ceda6c7e229a5dc3cf072;p=postgresql AcceptResult() was missing a case for PGRES_EMPTY_QUERY --- probably my fault. Adding it fixes bogus message display when reading a block comment at the end of a script file. --- diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 6a5aa429b8..862fa4d667 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.76 2003/10/06 01:11:12 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.76.2.1 2003/11/12 22:55:42 tgl Exp $ */ #include "postgres_fe.h" #include "common.h" @@ -332,6 +332,7 @@ AcceptResult(const PGresult *result) { case PGRES_COMMAND_OK: case PGRES_TUPLES_OK: + case PGRES_EMPTY_QUERY: case PGRES_COPY_IN: /* Fine, do nothing */ break;