X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D65985E3F15 for ; Fri, 27 Aug 2004 12:04:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40499-03 for ; Fri, 27 Aug 2004 15:04:12 +0000 (GMT) Received: from web40910.mail.yahoo.com (web40910.mail.yahoo.com [66.218.78.207]) by svr1.postgresql.org (Postfix) with SMTP id B57375E3631 for ; Fri, 27 Aug 2004 12:04:03 -0300 (ADT) Message-ID: <20040827150409.37863.qmail@web40910.mail.yahoo.com> Received: from [131.137.219.2] by web40910.mail.yahoo.com via HTTP; Fri, 27 Aug 2004 11:04:09 EDT Date: Fri, 27 Aug 2004 11:04:09 -0400 (EDT) From: Daniel Daoust Subject: Returning back a resultset from a stored function To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.2 tagged_above=0.0 required=5.0 tests=THE_FOLLOWING_FORM X-Spam-Level: * X-Archive-Number: 200408/51 X-Sequence-Number: 4360 Hi, I am looking at ways to return a resultset from a stored function through ODBC. My background is in Oracle and I have to implement a new VB6 system using PostgreSQL. I have found that "psqlodbc" does not support the refcursor type. I also investigated the following form: " select * from somefunc(); ", but realized that this worked only inside "PL/pgSQL", therefore could not be used directly from SQL. First: Are my assumptions correct? Second: Does anyone know a way to accomplish what I am trying to do? I would appreciate any thoughts on the subject. Thank you, Daniel ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca