DB2 - Problem description
Problem IT01827 | Status: Closed |
INSERT FROM A CLI APPLICATION FAILS WITH CLI0112E WHEN DOUBLE DATA TYPE COLUMN IS BOUND AS VARCHAR | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
While inserting a row that has double column, insert may fail with CLI0112E: Error in assignment, if in CLI application double column was bound as Varchar, even though the inserted value is within the double range. Steps to reproduce the error: create table abcd ( col1 int, col2 int, col3 double precision); --- opt echo on opt callerror on sqlallocenv 1 sqlallocconnect 1 1 sqldriverconnect 1 0 "DSN=sample;uid=xxx;pwd=****;" -3 200 SQL_DRIVER_NOPROMPT sqlallocstmt 1 1 getmem 1 1 SQL_C_LONG getmem 1 2 SQL_C_LONG getmem 1 3 SQL_C_CHAR 500 updatemem 1 SQL_C_LONG value 23 updatemem 2 SQL_C_LONG value 45 updatemem 3 SQL_C_CHAR value 307 "-0.000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000440935284694" sqlprepare 1 "insert into abcd values (?,?,?)" -3 sqlbindparameter 1 1 SQL_PARAM_INPUT SQL_C_LONG SQL_INTEGER 0 0 1 sqlbindparameter 1 2 SQL_PARAM_INPUT SQL_C_LONG SQL_INTEGER 0 0 2 sqlbindparameter 1 3 SQL_PARAM_INPUT SQL_C_CHAR SQL_VARCHAR 0 0 3 sqlexecute 1 sqltransact 1 1 SQL_COMMIT killenv 1 | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * CLI application Users * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 V9.7 FP10 or higher * **************************************************************** | |
Local Fix: | |
Solution | |
First fixed in DB2 V9.7 FP10 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 15.05.2014 24.11.2014 24.11.2014 |
Problem solved at the following versions (IBM BugInfos) | |
9.7.FP10 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.10 |