Re: Adding // comments (ANSI??)... - Mailing list pgsql-patches

From Neil Conway
Subject Re: Adding // comments (ANSI??)...
Date
Msg-id 1044412657.6532.1193.camel@tokyo
Whole thread Raw
In response to Re: Adding // comments (ANSI??)...  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List pgsql-patches
On Tue, 2003-02-04 at 21:03, Christopher Kings-Lynne wrote:
> As far as I'm aware, MySQL is the only database that supports '//' as a
> comment, and they made it up out of whole cloth...

Just to confirm that, my copy of the SQL 2003 draft, section 5.2, says:

<comment> ::=
       <simple comment>
    |  <bracketed comment>

<simple comment> ::=
    <simple comment introducer> [ <comment characters>...] <newline>

<simple comment introducer> ::=
    <minus sign><minus sign>[<minus sign>...]

(and <bracketed comment> is a C-style /* ... */ pair, which I've omitted
for brevity).

I'm not sure where the evidence for the "ANSI standard" claim comes
from, but AFAICS "// comments" are not part of the SQL standard, at any
rate.

Cheers,

Neil
--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC




pgsql-patches by date:

Previous
From: Sean Chittenden
Date:
Subject: Re: Adding // comments (ANSI??)...
Next
From: Tom Lane
Date:
Subject: Re: Adding // comments (ANSI??)...