From: | Florent Guillaume <fg(at)nuxeo(dot)com> |
---|---|
To: | Jack Douglas <jack(at)douglastechnology(dot)co(dot)uk> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: create function with dollar quoted body |
Date: | 2012-03-11 15:08:49 |
Message-ID: | CAF-4BpPVJXCB_+chp6jQuTaNdWnLAgrNcX_6wsLY14B+PHhbXQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Please provide actual Java code.
Florent
On Sat, Mar 10, 2012 at 8:13 PM, Jack Douglas
<jack(at)douglastechnology(dot)co(dot)uk> wrote:
> Hi
>> Please give a code example reproducing the problem you see.
> This works fine:
>
> create or replace function f() returns text language plpgsql as 'begin
> return ''A''; end;';
>
> But this fails with "unterminated dollar-quoted string":
>
> create or replace function f() returns text language plpgsql as $$begin
> return 'A'; end;$$;
>
> It is not a general problem with dollar-quoting because this works:
>
> create or replace function f() returns text language plpgsql as 'begin
> return $$A$$; end;';
>
> Thanks
> Jack
>
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2012-03-12 20:19:17 | Re: oid int issue with CachedRowSet upgrading from JDBC 8.4 to 9.1 |
Previous Message | Thomas Kellerer | 2012-03-10 21:09:57 | Re: create function with dollar quoted body |