diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-12-16 23:54:41 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-12-16 23:54:41 +0000 |
commit | 1b22a8cb033b11721d22b5d5a6c550c571731dae (patch) | |
tree | a4f5995ca0278a9d58f2f08b1f70c7540f291a52 /src | |
parent | 397e9b32a3c2b2c72dcb9cb99cbf2a162aadcb73 (diff) | |
download | postgresql-1b22a8cb033b11721d22b5d5a6c550c571731dae.tar.gz postgresql-1b22a8cb033b11721d22b5d5a6c550c571731dae.zip |
Clear paren level flag on \r or any backslash command, rather than
keeping parenlevel unchanged.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/mainloop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c index 1d3298187a3..76da5417365 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? */ |