1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-11 00:12:06 +03:00

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

View File

@@ -1296,6 +1296,8 @@ psql_scan(PsqlScanState state,
{ {
/* This switch must cover all non-slash-command states. */ /* This switch must cover all non-slash-command states. */
case INITIAL: case INITIAL:
case xuiend: /* we treat these like INITIAL */
case xusend:
if (state->paren_depth > 0) if (state->paren_depth > 0)
{ {
result = PSCAN_INCOMPLETE; result = PSCAN_INCOMPLETE;