]> granicus.if.org Git - postgresql/commit
Improve lexer's error reporting. You get the whole token mentioned now
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 May 2002 17:12:08 +0000 (17:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 May 2002 17:12:08 +0000 (17:12 +0000)
commit61446e0927ab31bf4227c7eb3de95b72540f051a
tree5028b0a7e2e00b81743de6122323c8bb5d8d3ba6
parent241978b91b3f9b6bae142b01d0082690938542b1
Improve lexer's error reporting.  You get the whole token mentioned now
in parse error messages, not just the part scanned by the last flex rule.
For example,
select "foo" "bar";
used to draw
ERROR:  parser: parse error at or near """
which was rather unhelpful.  Now it gives
ERROR:  parser: parse error at or near ""bar""
Also, error messages concerning bitstring literals and suchlike will
quote the source text at you, not the processed internal form of the literal.
src/backend/parser/scan.l
src/backend/po/nls.mk
src/test/regress/expected/strings.out