Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+1-1
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)