From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [PATCHES] Better handling of parse errors |
Date: | 2002-08-18 09:36:32 |
Message-ID: | Pine.LNX.4.44.0208172002500.13988-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Gavin Sherry writes:
> In that case, attached is a patch which locates the beginning of the
> offending token more efficiently (per your suggestion of using
> scanbuf).
In the regression tests there are a couple of cases that could be
improved:
In strings.sql:
-- illegal string continuation syntax
SELECT 'first line'
' - next line' /* this comment is not allowed here */
' - third line'
AS "Illegal comment within continuation";
ERROR: parser: parse error at or near "' - third line'" at character 89
Character 89 is the end of the "third line" line, but the parse error is
at the beginning of that line.
In create_function_1.sql:
CREATE FUNCTION test1 (int) RETURNS int LANGUAGE sql
AS 'not even SQL';
ERROR: parser: parse error at or near "not" at character 1
Clearly confusing.
--
Peter Eisentraut peter_e(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2002-08-18 09:37:20 | Re: Open 7.3 items |
Previous Message | Joe Conway | 2002-08-18 06:35:32 | Re: Remove implicit unique index creation on SERIAL columns? |
From | Date | Subject | |
---|---|---|---|
Next Message | Dennis Bjorklund | 2002-08-18 11:57:52 | updated po files |
Previous Message | Bruce Momjian | 2002-08-18 02:20:10 | Re: Regression test updates for domains |