Cloverleaf 5.6.2 Data Direct Connect5.2 Drivers AIX platform.
I am invoking a Stored Procedure and an INPUT Parameter is defined in the Stored Procedure as VARCHAR2(32767).
In my sqlbindparameter I am specifying SQL_VARCHAR and have adjusted the rest of the arguments (buffer length, etc.) for virtually every combination.
No matter what I have done I get this error:
[DataDirect] [ODBC Oracle Wire Protocol driver]Invalid precision value. Error in parameter 2.
parameter 2 is the parameter in question.
I only get this error when I have data for that parameter which is larger than 4000 bytes (the default max for VARCHAR2 when no precision is specified). Any data less than 4001 – no issue.
I have searched the internet and it appears that somehow the sizes above 4000 I place in the slqbindparameter command are not being taken or I do not have something in the sqlbindparameter set up correctly.
I am reaching out to see if anyone has invoked an Oracle Stored Procedure with an INPUT parameter defined as VARCHAR2(32767) (or larger than 4000) successfully.
If so, can you share your sqlbindparameter statement so I can see where I have gone astray?
Also if there was some connect string (or odbc.ini) setting you need to specify to get that to work.
Or if there was anything special you recall outside of the sqlbindparameter settings that is needed.
Thanks
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.