Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi, in the company where I work we use "home-made" drivers to access databases. (similar to ADO, but for windows and Linux).

Now we are creating the driver for oracle. The driver internally uses OCCI (the C++ api to access Oracle). Almost everything is working. We can already execute insert/update/deletes using parameters, we can do any select and, for the select we can easily get the column data-types.

But, for the bind variables (parameters) we simple can't get the data-type. When copying data from another table or doing "fixed" selects that's easy to solve, as we know the data type, but for dynamic selects we have problems by that.

Is there any easy way to discover the parameter datatype in OCCI?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900