mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 09:21:54 +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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user