Re: Escaping \

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Escaping \
Дата
Msg-id 22461.985881947@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Escaping \  ("Martijn van Dijk" <martijn@hardworks.nl>)
Список pgsql-sql
"Martijn van Dijk" <martijn@hardworks.nl> writes:
> But when I try this in a Function:

> CREATE FUNCTION sp_tmp() RETURNS varchar(10)
> AS '
>         SELECT ''\\\' AS RESULT'
> LANGUAGE 'sql';

> I get the following Parse-erros:

You need an extra level of quoting because the function body is itself
a string literal.  You might find the quoting discussion in
http://www.postgresql.org/devel-corner/docs/postgres/plpgsql-porting.html
helpful.
        regards, tom lane


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

Предыдущее
От: clayton cottingham
Дата:
Сообщение: Re: Calling Java from psql (was Re: requesting help)
Следующее
От: Phuong Ma
Дата:
Сообщение: inconsistent functionality with LIKE operator