pgsql: Distinguish between C and SQL mode for C-style comments.

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Distinguish between C and SQL mode for C-style comments.
Date: 2013-11-24 11:27:42
Message-ID: E1VkXqo-0002kz-H3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Distinguish between C and SQL mode for C-style comments.

SQL standard asks for allowing nested comments, while C does not. Therefore the
two comments, while mostly similar, have to be parsed seperately.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8ac5e88f9fc54c480ed1419c0ce94f54653fe8c3

Modified Files
--------------
src/interfaces/ecpg/preproc/pgc.l | 39 +++++++++++++++++++++++++------------
1 file changed, 27 insertions(+), 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Meskes 2013-11-24 11:53:11 pgsql: Allow C array definitions to use sizeof().
Previous Message Tom Lane 2013-11-24 03:47:00 pgsql: Defend against bad trigger definitions in contrib/lo's lo_manage