DescribParam - Mailing list pgsql-odbc

From Glenn B. Lawler
Subject DescribParam
Date
Msg-id 01C68A3B.381631C0.gblawler@incodesystems.com
Whole thread Raw
Responses Re: DescribParam  (Ludek Finstrle <luf@pzkagis.cz>)
Re: DescribParam  (Hiroshi Inoue <inoue@tpf.co.jp>)
List pgsql-odbc
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


pgsql-odbc by date:

Previous
From: Ludek Finstrle
Date:
Subject: Patch for snprintf problem (bug #1000650)
Next
From: Ludek Finstrle
Date:
Subject: Re: DescribParam