Commit 47aaebaa authored by Tom Lane's avatar Tom Lane

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
......@@ -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;
......
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