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 656719FA3AD for ; Wed, 7 Jun 2006 16:50:09 -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 68066-04 for ; Wed, 7 Jun 2006 16:50:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from carmel.tgice.com (ns1.tgice.com [65.43.58.90]) by postgresql.org (Postfix) with ESMTP id 2B4299FA2E6 for ; Wed, 7 Jun 2006 16:50:03 -0300 (ADT) Received: (qmail 8776 invoked from network); 7 Jun 2006 14:50:03 -0500 Received: from unknown (HELO incode1) (10.79.20.198) by ns1.tgice.com with SMTP; 7 Jun 2006 14:50:03 -0500 Received: by localhost with Microsoft MAPI; Wed, 7 Jun 2006 14:50:02 -0500 Message-ID: <01C68A41.A85F4100.gblawler@incodesystems.com> From: "Glenn B. Lawler" To: 'PostgreSQL ODBC List' Subject: Re: DescribParam Date: Wed, 7 Jun 2006 14:50:01 -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/25 X-Sequence-Number: 7773 Luf, So, if SQLDescribeParam is not supported, how do you know how big to make the buffers? I assume everyone must either use a standard size for all parameters or the caller must know the right size to use. I guess I'll have to add an optional call to my library to override the buffer size after the statement has been prepared. Glenn Lawler www.incodesystems.com -----Original Message----- From: Ludek Finstrle [SMTP:luf@pzkagis.cz] Sent: Wednesday, June 07, 2006 2:24 PM To: Glenn B. Lawler Cc: 'PostgreSQL ODBC List' Subject: Re: [ODBC] DescribParam > When I call SQLDescribeParam using PostgreSQL ODBC Driver > psqlodbc-08_02_0002 SQL_ERROR is the return code. This API has never been supported. Why do you use it when psqlODBC returns info that it doesn't support SQLDescribeParam? > 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. There is the problem that PgSQL backend doesn't support it before execution (I haven't found another information yet). > 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. Maybe you may depend on other information like PostgreSQL driver, ... > Does anyone have a better workaround for this? Sorry, I don't have one. Regards, Luf