projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c087e8c
)
Switch in psql_scan() must cover all lexer states (except backslash cases).
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 2 Feb 2014 23:59:34 +0000
(18:59 -0500)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 2 Feb 2014 23:59:34 +0000
(18:59 -0500)
Oversight in commit
f7559c0101afa33bfb4e104036ca46adac900111
, which changed
UESCAPE lexing in psql. Per bug #9068 from Manuel Gómez.
src/bin/psql/psqlscan.l
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/psqlscan.l
b/src/bin/psql/psqlscan.l
index 04c85816fe029cf70ee5e7db998d09b8c1848fac..7d61f932fdd6f02daa46c8c9305ea7696746c138 100644
(file)
--- 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;