[unixODBC-support] Retrieval of Bound Parameter Descriptor Records Problems

Roberts, George L groberts at telcordia.com
Wed Jul 12 17:00:29 BST 2006

Yes, the higher level API for parameters (SQLDescribeParam and
SQLGetDescRec) are supposed to use multiple OCI calls to the associated

Are you saying that the invalid handle return code (-2) is a known
problem on the SQLGetDescField API?   Is the problem in unixODBC or in
the underlying RDBMS (since we will probably switch to DB2)?  

G. Lee Roberts
groberts at telcordia.com
732-933-2474 (work)
609-306-2352 (cell)
609-918-9307 (home)
GLeeRoberts3077 (AIM)
-----Original Message-----
From: unixodbc-support-bounces at easysoft.com
[mailto:unixodbc-support-bounces at easysoft.com] On Behalf Of Nick Gorham
Sent: Friday, June 30, 2006 4:27 AM
To: Support for the unixODBC project
Subject: Re: [unixODBC-support] Retrieval of Bound Parameter Descriptor
Records Problems

Roberts, George L wrote:

>Using unixODBC 2.2.11 on CentOS Linux with Oracle 10.2.1
>After SQLBindParameter and SQLPrepare, I run SQLDescribeParam and it
>seems to always return the DataTypePtr value of 12 (for SQL_VARCHAR)
>the other return values are bogus defaults of 999, 0, and 1,
>Additionally, after SQLGetStmtAttr for APD, the SQLGetDescRec and
>SQLGetDescField calls always return -2 (SQL_INVALID_HANDLE).
>Is these known problems or am I doing something wrong?  

I would guess both of those are down to the driver. I know OCI doesn't 
provide a method of describing parameters, so I expect the driver is 
just giving a safe default. As for the descriptors, I just tried with 
Easysoft driver, and the call gets through to the driver. You could 
check with the 2.2.12pre build on the ftp site, in case something has 
been fixed, but I suspect its also down to the driver.

Nick Gorham
Easysoft Limited
http://www.easysoft.com, http://www.unixODBC.org

unixODBC-support mailing list
unixODBC-support at easysoft.com

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.7/379 - Release Date: 6/29/2006

More information about the unixODBC-support mailing list