Re: Adding // comments (ANSI??)...

From: Neil Conway <neilc(at)samurai(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Sean Chittenden <sean(at)chittenden(dot)org>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Adding // comments (ANSI??)...
Date: 2003-02-05 02:37:37
Message-ID: 1044412657.6532.1193.camel@tokyo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)samurai(dot)com> || PGP Key ID: DB3C29FC

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-02-05 02:46:05 Re: Adding // comments (ANSI??)...
Previous Message Sean Chittenden 2003-02-05 02:36:26 Re: Adding // comments (ANSI??)...