mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 00:01:51 +02:00
psql: Fix line continuation prompts for unbalanced parentheses
This was broken by a silly mistake in
e717a9a18b
.
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
This commit is contained in:
parent
3a948ea0a2
commit
d9a9f4b4b9
@ -1106,7 +1106,7 @@ psql_scan(PsqlScanState state,
|
||||
result = PSCAN_INCOMPLETE;
|
||||
*prompt = PROMPT_PAREN;
|
||||
}
|
||||
if (state->begin_depth > 0)
|
||||
else if (state->begin_depth > 0)
|
||||
{
|
||||
result = PSCAN_INCOMPLETE;
|
||||
*prompt = PROMPT_CONTINUE;
|
||||
|
Loading…
Reference in New Issue
Block a user