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

Oversight in commit f7559c0101, which changed
UESCAPE lexing in psql.  Per bug #9068 from Manuel Gómez.
This commit is contained in:
Tom Lane 2014-02-02 18:59:34 -05:00
parent c087e8cf34
commit 47aaebaac9
1 changed files with 2 additions and 0 deletions

View File

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