Skip to content

Commit 1b22a8c

Browse files
committed
Clear paren level flag on \r or any backslash command, rather than
keeping parenlevel unchanged.
1 parent 397e9b3 commit 1b22a8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/psql/mainloop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ MainLoop(PsqlSettings *pset, FILE *source)
313313
{
314314
const char *end_of_cmd = NULL;
315315

316+
paren_level = 0;
316317
line[i - prevlen] = '\0'; /* overwrites backslash */
317318

318319
/* is there anything else on the line? */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy