File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000 by PostgreSQL Global Development Group
5
5
*
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 $
7
7
*/
8
8
#include "postgres_fe.h"
9
9
#include "mainloop.h"
@@ -447,6 +447,7 @@ MainLoop(FILE *source)
447
447
{
448
448
const char * end_of_cmd = NULL ;
449
449
450
+ paren_level = 0 ;
450
451
line [i - prevlen ] = '\0' ; /* overwrites backslash */
451
452
452
453
/* is there anything else on the line for the command? */
@@ -469,9 +470,6 @@ MainLoop(FILE *source)
469
470
470
471
success = slashCmdStatus != CMD_ERROR ;
471
472
472
- if (query_buf -> len == 0 )
473
- paren_level = 0 ;
474
-
475
473
if ((slashCmdStatus == CMD_SEND || slashCmdStatus == CMD_NEWEDIT ) &&
476
474
query_buf -> len == 0 )
477
475
{
You can’t perform that action at this time.
0 commit comments