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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy