Re: BUG #8611: ECPG: unclosed comment "/*"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #8611: ECPG: unclosed comment "/*"
Дата
Msg-id 24807.1385151550@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #8611: ECPG: unclosed comment "/*"  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: BUG #8611: ECPG: unclosed comment "/*"
Список pgsql-bugs
Michael Meskes <meskes@postgresql.org> writes:
> On Wed, Nov 20, 2013 at 11:18:18AM +0000, alexsav23@gmail.com wrote:
>> pre-compiler don't work if we have unclosed comment:

> Right, this comes from ecpg using the same rules for C-style commands for SQL
> code and C code. However, this is not correct, I agree. SQL allows for nested
> comments while C does not. This needs fixing.

I don't see any way to "fix" it --- the best you can do is have a
different set of users complaining, because C and SQL aren't consistent
about this, and it's not obvious which convention should be followed
where.

Perhaps we should just document that you should avoid nested comments
in ecpg source code.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: BUG #8612: Truncate did not release disk space
Следующее
От: Jeffrey Walton
Дата:
Сообщение: Re: fe-secure.c and SSL/TLS