Re: Minor irritant with comment parsing in a function (SQL) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Minor irritant with comment parsing in a function (SQL)
Date
Msg-id 5159.1065648791@sss.pgh.pa.us
Whole thread Raw
In response to Re: Minor irritant with comment parsing in a function (SQL)  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Minor irritant with comment parsing in a function (SQL)
List pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> The bug here is that the scanner doesn't know that a newline (or end of
> input) is a required as part of a -- comment.

I think the minimum-damage place to fix this is by requiring \n after
{comment} in the horiz_whitespace rule.  As is, it's possible for
xqcat to match to a second quote that is in the body of a -- comment.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pg_resetxlog and pgscripts italian translation
Next
From: Joe Conway
Date:
Subject: Re: Bug Report