Skip to content

Commit d9a9f4b

Browse files
committed
psql: Fix line continuation prompts for unbalanced parentheses
This was broken by a silly mistake in e717a9a. Reported-by: Jeff Janes <jeff.janes@gmail.com> Author: Justin Pryzby <pryzby@telsasoft.com> Discussion: https://www.postgresql.org/message-id/CAMkU=1zKGWEJdBbYKw7Tn7cJmYR_UjgdcXTPDqJj=dNwCETBCQ@mail.gmail.com
1 parent 3a948ea commit d9a9f4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fe_utils/psqlscan.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ psql_scan(PsqlScanState state,
11061106
result = PSCAN_INCOMPLETE;
11071107
*prompt = PROMPT_PAREN;
11081108
}
1109-
if (state->begin_depth > 0)
1109+
else if (state->begin_depth > 0)
11101110
{
11111111
result = PSCAN_INCOMPLETE;
11121112
*prompt = PROMPT_CONTINUE;

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