]> granicus.if.org Git - postgresql/commit
In that case, attached is a patch which locates the beginning of the
authorBruce Momjian <bruce@momjian.us>
Sat, 17 Aug 2002 13:06:50 +0000 (13:06 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 17 Aug 2002 13:06:50 +0000 (13:06 +0000)
commit54124240ae4fc97cd86302df600acf59cab9f982
treec6242951a3662a96f58045e7ff272923803845ef
parent82119a696e247e6d3f583c6bb89435099e062e71
In that case, attached is a patch which locates the beginning of the
offending token more efficiently (per your suggestion of using
scanbuf). The new patch does the same as before:

template1=# select * frum pg_class;
ERROR:  parser: parse error at or near "frum" at character 10

It also implement's Tom's suggestion:

template1=# select * from pg_class where\g
ERROR:  parse: parse error at end of input

Gavin Sherry
src/backend/parser/scan.l