Skip to content
Snippets Groups Projects
Commit 47aaebaa authored by Tom Lane's avatar Tom Lane
Browse files

Switch in psql_scan() must cover all lexer states (except backslash cases).

Oversight in commit f7559c01, which changed
UESCAPE lexing in psql.  Per bug #9068 from Manuel Gómez.
parent c087e8cf
No related branches found
No related tags found
No related merge requests found
......@@ -1296,6 +1296,8 @@ psql_scan(PsqlScanState state,
{
/* This switch must cover all non-slash-command states. */
case INITIAL:
case xuiend: /* we treat these like INITIAL */
case xusend:
if (state->paren_depth > 0)
{
result = PSCAN_INCOMPLETE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment