Re: BUG #2164: Very minor, very low priority SQL parser 'bug' with /* */ comments - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #2164: Very minor, very low priority SQL parser 'bug' with /* */ comments
Date
Msg-id 200601110839.23987.peter_e@gmx.net
Whole thread Raw
In response to BUG #2164: Very minor, very low priority SQL parser 'bug' with /* */ comments  ("John Engelhart" <johne_ganz@yahoo.com>)
List pgsql-bugs
John Engelhart wrote:
> When this piece of code is wrapped fully inside a /* */ style comment block,
> the parser interprets the */ inside the substring() function as the end of
> comment.  'Expected' behavior (principle of least astonishment, at least) is
> that the .*/ part inside the substring function not trigger the end of
> comments.

The SQL standard does not provide for this kind of exception, so there
is no real use in discussing it.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #2162: Same as bug #1679 - finite() - unresolved symbol
Next
From: Tom Lane
Date:
Subject: Re: BUG #2164: Very minor, very low priority SQL parser 'bug' with /* */ comments