Re: BUG #2164: Very minor, very low priority SQL parser 'bug' with /* */ comments

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "John Engelhart" <johne_ganz(at)yahoo(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2164: Very minor, very low priority SQL parser 'bug' with /* */ comments
Date: 2006-01-11 07:39:23
Message-ID: 200601110839.23987.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-bugs by date

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