home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC82056 Status: Closed

SQLSETSTMTATTR WITH SQL_ATTR_CHAINING_END INCORRECTLY RETURNS SUCCESS

product:
DB2 CONNECT / DB2CONNCT / 970 - DB2
Problem description:
If you have an application that is using CLI array input 
chaining and at least one statement in the chain of statements 
returned SQL_ERROR or SQL_SUCCESS_WITH INFO, SQL_SUCCESS is 
incorrectly returned when settiing SQL_ATTR_CHAINING_END 
 
 
To reproduce : 
 
quickc 1 1 sample db2inst1 db2inst1 
sqlallocstmt 1 
sqlexecdirect 1 "drop table test" -3 
sqlexecdirect 1 "create table test (c1 smallint, c2 char(2))" -3 
sqlprepare 1 "insert into test values (?, ?)" -3 
getmemarray 1 1 10 sql_c_long 
getmemarray 1 2 10 sql_c_char 3 
 
 
sqlsetstmtattr 1 SQL_ATTR_CHAINING_BEGIN 1 
 
 
sqlbindparameter 1 1 sql_param_input sql_c_long sql_integer 0 0 
1 memarray 
sqlbindparameter 1 2 sql_param_input sql_c_char sql_char 2 0 2 
memarray 
 
updateelem 1 -1 value 32761 
updateelem 2 -1 value 2 "ch" 
sqlexecute 1 
 
sqlbindparameter 1 1 sql_param_input sql_c_long sql_integer 0 0 
1 memarray 
sqlbindparameter 1 2 sql_param_input sql_c_char sql_char 2 0 2 
memarray 
 
updateelem 1 -1 value 32768 
updateelem 2 -1 value 2 "ch" 
sqlexecute 1 
 
sqlsetstmtattr 1 SQL_ATTR_CHAINING_END 1 
sqlrowcount 1
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* CLI users                                                    * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 9.7 FP6 or above                              * 
****************************************************************
Local Fix:
N/A
available fix packs:
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
The problem was first fixed in DB2 9.7 FP6
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC84568 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
15.03.2012
04.07.2012
04.07.2012
Problem solved at the following versions (IBM BugInfos)
9.7.FP6
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.6 FixList