From: Tom Lane <tgl@sss.pgh.pa.us>
To: Riccardo G. Facchini <abief_ag_-postgresql@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: function with a composite type calling another function - Mission Impossible?
Date: Wed, 02 Jun 2004 11:43:59 -0400
Message-ID: <24964.1086191039@sss.pgh.pa.us> (raw)
In-Reply-To: <20040602145254.44625.qmail@web13906.mail.yahoo.com>
References: <20040602145254.44625.qmail@web13906.mail.yahoo.com>
"Riccardo G. Facchini" <abief_ag_-postgresql@yahoo.com> writes:
> declare my_new_complex complex_number;
> select * from complex_to_complex(my_new_complex) into my_result;
> ERROR: column "my_new_complex" does not exist
plpgsql doesn't presently cope with passing whole-row variables into SQL
expressions, which is essentially what you've got here. There's some
chance it will work in time for 7.5.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, abief_ag_-postgresql@yahoo.com
Subject: Re: function with a composite type calling another function - Mission Impossible?
In-Reply-To: <24964.1086191039@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox