Re: PL/SQL: function call like $1($2)

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: PL/SQL: function call like $1($2)
Дата
Msg-id 20061009135411.GA26968@winnie.fuhr.org
обсуждение исходный текст
Ответ на PL/SQL: function call like $1($2)  (Jean-Gerard Pailloncy <jg@rilk.com>)
Ответы Re: PL/SQL: function call like $1($2)  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-general
On Sun, Oct 08, 2006 at 05:49:11PM +0200, Jean-Gerard Pailloncy wrote:
> I try EXECUTE f || ' ( ' || p || ' );' INTO res
> But is does not work too.
> There is no function to convert double precision[] to text.

You could use the types' input and output functions or perhaps
array_to_string().

stmt := 'SELECT ' || quote_ident(f) || '(' || quote_literal(textin(array_out(p))) || ')';
EXECUTE stmt INTO res;

--
Michael Fuhr

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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: PL/SQL: function call like $1($2)
Следующее
От: John DeSoi
Дата:
Сообщение: Re: column privileges