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

From Michael Meskes
Subject pgsql: Distinguish between C and SQL mode for C-style comments.
Date
Msg-id E1VkXqo-0002kz-H3@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Defend against bad trigger definitions in contrib/lo's lo_manage
Next
From: Michael Meskes
Date:
Subject: pgsql: Allow C array definitions to use sizeof().