X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 836A311F6006 for ; Tue, 25 Apr 2006 13:38:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 47239-05 for ; Tue, 25 Apr 2006 13:38:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 4514011F6089 for ; Tue, 25 Apr 2006 13:38:00 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k3PGbqXZ026521; Tue, 25 Apr 2006 18:37:52 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k3PGbqua026520; Tue, 25 Apr 2006 18:37:52 +0200 Date: Tue, 25 Apr 2006 18:37:52 +0200 From: Ludek Finstrle To: Philippe Lang Cc: pgsql-odbc@postgresql.org Subject: Re: PG 8 INOUT parameters & ADO Message-ID: <20060425163752.GF25305@soptik.pzkagis.cz> References: <6C0CF58A187DA5479245E0830AF84F421D0C18@poweredge.attiksystem.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6C0CF58A187DA5479245E0830AF84F421D0C18@poweredge.attiksystem.ch> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.1/1425/Tue Apr 25 14:09:41 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/94 X-Sequence-Number: 7621 > I have a PG 8.1.3 server with the following PL/PERL procedure: > > ------------ > > CREATE FUNCTION perl_test(a inout integer, b inout integer, r1 out integer, > r2 out integer) AS ... > ------------ > > I'm trying to call this procedure with ADO (latest version under XP), > through the ODBC driver version 8.01.02.00, like this: > > ------------ > > It fails, with error -2147217887 each time. > > Is it possible to query stored procedures like this with the PG ODBC driver? The psqlodbc 08.01.0200 doesn't support out parameters. Please try enhanced experimental branch (07.03.026X) from pgfoundry.org. This development branch is now CVS tip and it is the base for next stable release (IMHO it is more stable then 08.01.0200). Regards, Luf