Re: PL/SQL: function call like $1($2) - Mailing list pgsql-general

From Michael Fuhr
Subject Re: PL/SQL: function call like $1($2)
Date
Msg-id 20061009135411.GA26968@winnie.fuhr.org
Whole thread Raw
In response to PL/SQL: function call like $1($2)  (Jean-Gerard Pailloncy <jg@rilk.com>)
Responses Re: PL/SQL: function call like $1($2)
List 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 by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: PL/SQL: function call like $1($2)
Next
From: John DeSoi
Date:
Subject: Re: column privileges