Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 27e8ef0

Browse files
committed
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.
1 parent 934c213 commit 27e8ef0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/common.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.76 2003/10/06 01:11:12 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.77 2003/11/12 22:53:16 tgl Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "common.h"
@@ -332,6 +332,7 @@ AcceptResult(const PGresult *result)
332332
{
333333
case PGRES_COMMAND_OK:
334334
case PGRES_TUPLES_OK:
335+
case PGRES_EMPTY_QUERY:
335336
case PGRES_COPY_IN:
336337
/* Fine, do nothing */
337338
break;

0 commit comments

Comments
 (0)