Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string" - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Date
Msg-id 4A54C7D502000025000285EF@gw.wicourts.gov
Whole thread Raw
In response to Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Next
From: Tom Lane
Date:
Subject: Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"