home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
14.10.xC11 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IC61720 Status: Closed

DRDA: WRONG DECIMAL VALUE INSERTED WHEN HOST VARIABLE IS USED AND
STATEMENT CACHE IS ON

product:
IBM IDS ENTRP E / 5724L2304 / B15 - IDS 11.50
Problem description:
A prepared statement inserting a DECIMAL value omits the digits 
after the decimal point when statement cache is on and the 
statement is executed the second time. 
 
This reproduces for DRDA clients only (Data Server Driver for 
JDBC or .NET). 
 
Example using Data Server Driver for JDBC 
 
PreparedStatement pstmt2=conn.prepareStatement("insert into 
instab1 values(?,?)"); 
 
int vid = 1; 
BigDecimal vc1 = new BigDecimal(88.88); 
 
pstmt2.setInt(1,vid); 
pstmt2.setBigDecimal(2,vc1); 
pstmt2.executeUpdate(); 
 
With STMT_CACHE_HITS 0 
 
After first execution; 
 
Select from instab 
id = 1 c1 = 88.88 
 
After subsequent executions: 
 
Select from instab 
id = 1 c1 = 88.00
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DRDA clients with decimal data types                         * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* A prepared statement inserting a DECIMAL value omits the     * 
* digits after the decimal point when statement cache is on    * 
* and the statement is executed the second time.               * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to IDS 11.50.xC5 and above.                          * 
****************************************************************
Local Fix:
Solution
Problem first fixed in IDS 11.50.xC5.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.06.2009
22.01.2010
22.01.2010
Problem solved at the following versions (IBM BugInfos)
11.50.xC5
Problem solved according to the fixlist(s) of the following version(s)
11.50.xC5 FixList