Re: Problems with Quotes

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Problems with Quotes
Дата
Msg-id 20050112185847.GA95755@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Problems with Quotes  (Edmund Bacon <ebacon@onesystem.com>)
Список pgsql-sql
On Wed, Jan 12, 2005 at 11:46:53AM -0700, Edmund Bacon wrote:

> Perhaps you are forgetting to double up on your quote chars?

If that's the problem then 8.0's dollar quoting will simplify
the situation:

CREATE OR REPLACE FUNCTION foo(text) RETURNS text AS $$
SELECT replace($1, '"', '');
$$ LANGUAGE sql;

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: Kieran Ashley
Дата:
Сообщение: Re: Problems with Quotes
Следующее
От: John DeSoi
Дата:
Сообщение: Re: Problems with Quotes