Skip to content

Commit 52c780e

Browse files
committed
Oops, back out paren fix. That is for 7.3.
1 parent deab927 commit 52c780e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bin/psql/mainloop.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.44 2001/12/28 05:00:32 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.45 2001/12/28 05:01:05 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "mainloop.h"
@@ -447,6 +447,7 @@ MainLoop(FILE *source)
447447
{
448448
const char *end_of_cmd = NULL;
449449

450+
paren_level = 0;
450451
line[i - prevlen] = '\0'; /* overwrites backslash */
451452

452453
/* is there anything else on the line for the command? */
@@ -469,9 +470,6 @@ MainLoop(FILE *source)
469470

470471
success = slashCmdStatus != CMD_ERROR;
471472

472-
if (query_buf->len == 0)
473-
paren_level = 0;
474-
475473
if ((slashCmdStatus == CMD_SEND || slashCmdStatus == CMD_NEWEDIT) &&
476474
query_buf->len == 0)
477475
{

0 commit comments

Comments
 (0)