From: Bruce Momjian Date: Thu, 16 Dec 1999 23:54:41 +0000 (+0000) Subject: Clear paren level flag on \r or any backslash command, rather than X-Git-Tag: REL7_0~1017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b22a8cb033b11721d22b5d5a6c550c571731dae;p=postgresql Clear paren level flag on \r or any backslash command, rather than keeping parenlevel unchanged. --- diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c index 1d3298187a..76da541736 100644 --- a/src/bin/psql/mainloop.c +++ b/src/bin/psql/mainloop.c @@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source) { const char *end_of_cmd = NULL; + paren_level = 0; line[i - prevlen] = '\0'; /* overwrites backslash */ /* is there anything else on the line? */