Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OCINumberFromText - invalid input string [5] ( OCI-22062)

97240Mar 21 2005 — edited Mar 23 2005
Hi,
I don't know why following code doesn't work?!
Could you give me some hint, please!

OCINumber number;

std::string value("5");

char * fmt = "TM";

if ( OCINumberFromText(
err_hndl,
reinterpret_cast< text * >(
const_cast< char * >( value.c_str() ) ),
static_cast< ub4 >( value.size() ),
reinterpret_cast< text * >( fmt),
static_cast< ub4 >( 2),
0,
0,
& number) != OCI_SUCCESS)
throw sql_exception( err_hndl, "init OCINumber from string");
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2005
Added on Mar 21 2005
1 comment
2,029 views