Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Дата
Msg-id 4A54C7D502000025000285EF@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Список pgsql-bugs
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Or you could turn on standard_conforming_strings if you'd prefer not
> to deal with escapes.

That doesn't help with this, because of the separate pgpgsql parser:

ccdev=> select version();
                                               version
-----------------------------------------------------------------------------------------------------
 PostgreSQL 8.3.7 on x86_64-unknown-linux-gnu, compiled by GCC gcc
(GCC) 4.1.2 20070115 (SUSE Linux)
(1 row)

ccdev=> show standard_conforming_strings ;
 standard_conforming_strings
-----------------------------
 on
(1 row)

ccdev=> create or replace function temp() returns text language
plpgsql
AS $$
begin
  return '\';
end; $$;
ERROR:  unterminated string
CONTEXT:  compile of PL/pgSQL function "temp" near line 2

-Kevin

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"