mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08: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:
parent
c087e8cf34
commit
47aaebaac9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user