Thread: pgsql/src backend/parser/scan.l backend/po/nls ...

pgsql/src backend/parser/scan.l backend/po/nls ...

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.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.