From: Ron Sofrin <rsofrin@entercept.com>
To: pgsql-sql@postgresql.org
Subject: SQL function and composite types
Date: Thu, 25 Jan 2001 15:47:47 -0800
Message-ID: <94qdsf$7gr$1@news.tht.net> (raw)
Hi all,
having this simple table:
create table foo (attribute text);
and this simple function:
create function f()
returns foo
as
'
select ' 'test' '::text
'
langauge 'sql' ;
When I execute (though psql) select f();
I get the following result
f
----------------
136411800
instead of the expected:
f
-----------------
test
Any ideas?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rsofrin@entercept.com
Subject: Re: SQL function and composite types
In-Reply-To: <94qdsf$7gr$1@news.tht.net>
References: <94qdsf$7gr$1@news.tht.net>
* 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