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 07D979FA3AD for ; Wed, 7 Jun 2006 16:10:47 -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 65396-01 for ; Wed, 7 Jun 2006 16:10:39 -0300 (ADT) X-Greylist: delayed 00:06:39.854911 by SQLgrey- Received: from carmel.tgice.com (ns1.tgice.com [65.43.58.90]) by postgresql.org (Postfix) with ESMTP id 9BCA19FA2E6 for ; Wed, 7 Jun 2006 16:10:39 -0300 (ADT) Received: (qmail 8018 invoked from network); 7 Jun 2006 14:03:57 -0500 Received: from unknown (HELO incode1) (10.79.20.198) by ns1.tgice.com with SMTP; 7 Jun 2006 14:03:57 -0500 Received: by localhost with Microsoft MAPI; Wed, 7 Jun 2006 14:03:57 -0500 Message-ID: <01C68A3B.381631C0.gblawler@incodesystems.com> From: "Glenn B. Lawler" To: 'PostgreSQL ODBC List' Subject: DescribParam Date: Wed, 7 Jun 2006 14:03:56 -0500 Organization: Incode Systems, Inc. X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/22 X-Sequence-Number: 7770 When I call SQLDescribeParam using PostgreSQL ODBC Driver psqlodbc-08_02_0002 SQL_ERROR is the return code. What I am trying to do with this call is determine the buffer size needed to allocate a buffer so I can call SQLBindParameter with a big enough buffer. I have tried defaulting this to a number > 255, but this causes some other drivers, like MS Access to choke. MS SQL Server and others return the correct parameter size. My only thought was to provide an override for this in my library to force the parameter size when the driver does not return it. Does anyone have a better workaround for this? Glenn Lawler www.incodesystems.com