Re: create function with dollar quoted body

Поиск
Список
Период
Сортировка
От Jack Douglas
Тема Re: create function with dollar quoted body
Дата
Msg-id 4F5BA7CE.7030907@douglastechnology.co.uk
обсуждение исходный текст
Ответ на Re: create function with dollar quoted body  (Florent Guillaume <fg@nuxeo.com>)
Ответы Re: create function with dollar quoted body  (Florent Guillaume <fg@nuxeo.com>)
Список pgsql-jdbc
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

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

Предыдущее
От: Florent Guillaume
Дата:
Сообщение: Re: create function with dollar quoted body
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: create function with dollar quoted body