Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 284F29FB3B5 for ; Thu, 5 Apr 2007 21:16:24 -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 90292-09 for ; Thu, 5 Apr 2007 21:16:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from yucaipaco.com (yucaipaco.com [82.165.181.113]) by postgresql.org (Postfix) with ESMTP id 427769FB5E5 for ; Thu, 5 Apr 2007 21:16:21 -0300 (ADT) Received: (qmail 20308 invoked by uid 210); 5 Apr 2007 17:16:51 -0700 Received: from 10.23.112.236 by yucmail (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.90/3020. f-prot: 4.6.5/3.16.13. spamassassin: 3.1.8. perlscan: 1.25st. Clear:RC:1(10.23.112.236):. Processed in 0.324833 secs); 06 Apr 2007 00:16:51 -0000 Received: from unknown (HELO ?10.23.112.236?) (yucrelay@10.23.112.236) by yucaipaco.com with ESMTPA; 5 Apr 2007 17:16:51 -0700 Message-ID: <4615915B.2000305@yucaipaco.com> Date: Thu, 05 Apr 2007 17:16:27 -0700 From: David Gardner User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Doug Thom , pgsql-odbc@postgresql.org Subject: Re: Brio returning data through stored procedures. References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/28 X-Sequence-Number: 8844 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 ..... Doug Thom wrote: > > Hello, all, > > I am wondering if anybody knows how to return data to Brio through > ODBC from a function. If you are (or were) an Oracle user you may be > familiar with defining a ref cursor type and including that as an OUT > parameter. Brio then picks it up through ODBC and collects the results. > > When I tried this in many different ways in Postgres the best I could > get returned was either “” where x increments for > the number of times I tried it or what I passed in when I used the > method that allows me to have the calling procedure name the cursor. > But no data. > > If anybody has run into this challenge I would love to hear if you > were or were not successful. I’d really like to hear you were > successful, of course, but if there is no way to do it then there’s no > point me wasting any more time with it. > > Thank you, > > -Doug >