postgres.git / summary / log / commit / refs
commit 27e8ef05350ee9e681ed5d456526ac5abf5cd889
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Wed Nov 12 22:53:16 2003 +0000
First released in: 8.0.0, 7.4
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.
src/bin/psql/common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c
index 6a5aa429b84..d7f81ece666 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.77 2003/11/12 22:53:16 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;
[parent: 934c21344ca8]