Re: does parser still parse those comment out lines?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: does parser still parse those comment out lines?
Дата
Msg-id 21838.1050766832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на does parser still parse those comment out lines?  (weiping He <laser@zhengmai.com.cn>)
Список pgsql-general
weiping He <laser@zhengmai.com.cn> writes:

> create or replace function test() returns integer as '
> begin
> -- raise NOTICE ''can't comment out!'';
                       ^

You have to double that quote mark, too.  The string-literal parser
doesn't pay any attention to what's inside the string; the fact that
this area of the string would be a comment according to plpgsql's
rules doesn't change what the parser is going to think is the end of
the string literal.

            regards, tom lane


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

Предыдущее
От: Alessandro Bottoni
Дата:
Сообщение: Status of the PGSQL replication projects?
Следующее
От: Bruno Wolff III
Дата:
Сообщение: stddev returns 0 when there is one row