mirror of
https://github.com/postgres/postgres.git
synced 2025-06-06 00:02:36 -04:00
Switch in psql_scan() must cover all lexer states (except backslash cases).
Oversight in commit f7559c0101afa33bfb4e104036ca46adac900111, which changed UESCAPE lexing in psql. Per bug #9068 from Manuel Gómez.
This commit is contained in:
parent
1670557ab0
commit
1c97ab9251
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user