Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0R0tAq69074 for ; Fri, 26 Jan 2001 19:55:10 -0500 (EST) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0PNxeq35928 for ; Thu, 25 Jan 2001 18:59:40 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f0PNkNv07710 for pgsql-sql@postgresql.org; Thu, 25 Jan 2001 18:46:23 -0500 (EST) (envelope-from news) From: "Ron Sofrin" X-Newsgroups: comp.databases.postgresql.sql Subject: SQL function and composite types Date: Thu, 25 Jan 2001 15:47:47 -0800 Organization: Entercept Lines: 35 Message-ID: <94qdsf$7gr$1@news.tht.net> Reply-To: "Ron Sofrin" X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 To: pgsql-sql@postgresql.org X-Archive-Number: 200101/401 X-Sequence-Number: 1074 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?