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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error - ORA-01438: value larger than specified precision allowed

577442May 14 2007 — edited May 15 2007
Hi
While trying to bind (for insert) with OCI, I am repeatedly hitting with above error. My table contains field with type NUMBER (5, 0) (with precision).

While binding, I am getting this error even if I try to insert a simple integer value such as a 1 or 2. This is happening for both bind by name and position OCI calls. The bind call is pasted below,

ub2 empno;

empno = 1;

OCIBindByName(stmthp, &bndp[j], errhp, (text *) ":EMPNO, strlen(":EMPNO"), (dvoid *) &empno, sizeof(short), SQLT_INT, (dvoid *) 0, (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);

Any help from anyone would be deeply appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2007
Added on May 14 2007
2 comments
2,464 views