We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentdeab927 commit52c780eCopy full SHA for 52c780e
src/bin/psql/mainloop.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright 2000 by PostgreSQL Global Development Group
5
6
- * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.44 2001/12/28 05:00:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.45 2001/12/28 05:01:05 momjian Exp $
7
*/
8
#include"postgres_fe.h"
9
#include"mainloop.h"
@@ -447,6 +447,7 @@ MainLoop(FILE *source)
447
{
448
constchar*end_of_cmd=NULL;
449
450
+paren_level=0;
451
line[i-prevlen]='\0';/* overwrites backslash */
452
453
/* is there anything else on the line for the command? */
@@ -469,9 +470,6 @@ MainLoop(FILE *source)
469
470
471
success=slashCmdStatus!=CMD_ERROR;
472
-if (query_buf->len==0)
473
-paren_level=0;
474
-
475
if ((slashCmdStatus==CMD_SEND||slashCmdStatus==CMD_NEWEDIT)&&
476
query_buf->len==0)
477