Commit d9a9f4b4 authored by Peter Eisentraut's avatar Peter Eisentraut

psql: Fix line continuation prompts for unbalanced parentheses

This was broken by a silly mistake in
e717a9a1.
Reported-by: default avatarJeff 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
parent 3a948ea0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment