DB2 - Problem description
Problem IT18705 | Status: Closed |
JCC RETURNS STALE DATA CALLING AN ARRAY STORED PROCEDURE AGAINSTDB2 Z/OS | |
product: | |
DB2 JDBC SQLJ D / DB2DSDRVR / B10 - DB2 | |
Problem description: | |
An SQL stored procedure is defined in DB2 for Z/OS which returns an array of integers.The procedure is called multiple times from a Java program that connect to the DB2 instance via the JCC JDBC driver. The program uses a callableStatement object. Before a new execution , clearParameters() is called as in the following code snippet: while (need_looping) { inData = conn.createArrayOf("INTEGER", contents); cstmt.setArray(1, inData); cstmt.registerOutParameter (2, java.sql.Types.ARRAY); cstmt.executeUpdate(); Array outData = cstmt.getArray(2); Integer [] outNums = (Integer [])outData.getArray(); //data here will be stale on 2nd and subsequent calls cstmt.clearParameters(); } While the first call will returns correct results, subsequent calls will keep returning the same result retrieved from the initial call. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Users using driver below 11.1FP1 * **************************************************************** * PROBLEM DESCRIPTION: * * JCC RETURNS STALE DATA CALLING AN ARRAY STORED PROCEDURE * * AGAINSTDB2 Z/OS * **************************************************************** * RECOMMENDATION: * * Upgrade tp 11.1FP1 * **************************************************************** | |
Local Fix: | |
available fix packs: | |
Db2 Version 11.1 Mod2 Fix Pack2 iFix001 for Linux, UNIX, and Windows | |
Solution | |
Upgrade tp 11.1FP1 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 09.01.2017 09.01.2017 09.01.2017 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |