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

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Jack Douglas" <jackpdouglas(at)gmail(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Date: 2009-07-08 21:22:45
Message-ID: 4A54C7D502000025000285EF@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-07-08 21:51:23 Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"
Previous Message Tom Lane 2009-07-08 21:06:00 Re: BUG #4908: escaping and dollar quotes: "ERROR: unterminated string"