| From: | tgl(at)postgresql(dot)org (Tom Lane) |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql/src backend/parser/scan.l backend/po/nls ... |
| Date: | 2002-05-01 17:12:08 |
| Message-ID: | 20020501171208.313AA476108@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
CVSROOT: /cvsroot
Module name: pgsql
Changes by: tgl(at)postgresql(dot)org 02/05/01 13:12:08
Modified files:
src/backend/parser: scan.l
src/backend/po : nls.mk
src/test/regress/expected: strings.out
Log message:
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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2002-05-01 19:26:09 | pgsql/src backend/parser/parse_node.c backend/ ... |
| Previous Message | Jan Wieck | 2002-05-01 12:40:22 | pgsql/src/pl/plpgsql/src gram.y |