Commit 1b22a8cb authored by Bruce Momjian's avatar Bruce Momjian

Clear paren level flag on \r or any backslash command, rather than

keeping parenlevel unchanged.
parent 397e9b32
...@@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source) ...@@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source)
{ {
const char *end_of_cmd = NULL; const char *end_of_cmd = NULL;
paren_level = 0;
line[i - prevlen] = '\0'; /* overwrites backslash */ line[i - prevlen] = '\0'; /* overwrites backslash */
/* is there anything else on the line? */ /* is there anything else on the line? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment