Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread mbox)
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

pgsql-patches by date

Next:From: Tom LaneDate: 2003-02-05 02:46:05
Subject: Re: Adding // comments (ANSI??)...
Previous:From: Sean ChittendenDate: 2003-02-05 02:36:26
Subject: Re: Adding // comments (ANSI??)...

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group