Content-Length: 259329 | pFad | http://github.com/postgrespro/postgres/commit/d9a9f4b4b92ad39e3c4e6600dc61d5603ddd6e24

67 psql: Fix line continuation prompts for unbalanced parentheses · postgrespro/postgres@d9a9f4b · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/d9a9f4b4b92ad39e3c4e6600dc61d5603ddd6e24

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy