Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D410A9FB646 for ; Fri, 6 Apr 2007 10:50:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54740-10 for ; Fri, 6 Apr 2007 10:49:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id 2BC579FB63A for ; Fri, 6 Apr 2007 10:49:55 -0300 (ADT) Received: (qmail invoked by alias); 06 Apr 2007 13:49:53 -0000 Received: from i3ED6DAEE.versanet.de (EHLO [192.168.0.112]) [62.214.218.238] by mail.gmx.net (mp058) with SMTP; 06 Apr 2007 15:49:53 +0200 X-Authenticated: #14269776 X-Provags-ID: V01U2FsdGVkX18IFGdalHQIKMYLfoGt0LgNwDrMCgMVmhtVI7YWjT JqrKusLf3laBMm Message-ID: <46165001.9070608@gmx.net> Date: Fri, 06 Apr 2007 15:49:53 +0200 From: Andreas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org CC: Doug Thom Subject: Re: Brio returning data through stored procedures. References: <4615915B.2000305@yucaipaco.com> In-Reply-To: <4615915B.2000305@yucaipaco.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/35 X-Sequence-Number: 8851 Hi Doug I dont know Brio either but keep in mind that tables and views are allready defined types which you could use here. So if your procedure just selects a few rows from a view or table but should return all collumns from the source you don't have to define a return type. David Gardner schrieb: > Never worked with Brio, but have you defined a data-type in pgsql that > your function would be returning? Something like: > > CREATE TYPE "myType" AS > ("name" text, > "start" timestamp without time zone, > "end" timestamp without time zone, > error text); > ALTER TYPE "myType" OWNER TO "me"; > > then the function definition would start off like: > CREATE OR REPLACE FUNCTION "getData"() > RETURNS SETOF "myType" AS > .....