summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2021-04-29 07:04:31 +0000
committerPeter Eisentraut2021-04-29 07:04:31 +0000
commitd9a9f4b4b92ad39e3c4e6600dc61d5603ddd6e24 (patch)
tree6191d9dd674be7ef6f78c624f80ed517dfa14be4
parent3a948ea0a2ced719f26e725b030558f2e4ab1d8e (diff)
psql: Fix line continuation prompts for unbalanced parentheses
This was broken by a silly mistake in e717a9a18b2e34c9c40e5259ad4d31cd7e420750. Reported-by: Jeff Janes <[email protected]> Author: Justin Pryzby <[email protected]> Discussion: https://www.postgresql.org/message-id/CAMkU=1zKGWEJdBbYKw7Tn7cJmYR_UjgdcXTPDqJj=dNwCETBCQ@mail.gmail.com
-rw-r--r--src/fe_utils/psqlscan.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe_utils/psqlscan.l b/src/fe_utils/psqlscan.l
index 991b7de0b5..0fab48a382 100644
--- a/src/fe_utils/psqlscan.l
+++ b/src/fe_utils/psqlscan.l
@@ -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;