diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-02-02 18:59:38 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-02-02 18:59:38 -0500 |
commit | 1c97ab9251d288cdc1a2d1759983d4bfa66e630c (patch) | |
tree | 6f98297c3c6736e4f9a3ea6aa76e8dc067ba87aa | |
parent | 1670557ab0e494b80ed85da6e53b8304bffe11ee (diff) | |
download | postgresql-1c97ab9251d288cdc1a2d1759983d4bfa66e630c.tar.gz postgresql-1c97ab9251d288cdc1a2d1759983d4bfa66e630c.zip |
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.
-rw-r--r-- | src/bin/psql/psqlscan.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l index d61387ddf99..dd80611d738 100644 --- a/src/bin/psql/psqlscan.l +++ b/src/bin/psql/psqlscan.l @@ -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; |