home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC77650 Status: Geschlossen

DB2CLI CRASHES WHEN ODBC IS ON AND SQLGETDIAGFIELD IS CALLED FOR
UN-ALLOCATED STATEMENT HANDLE ON WINDOWS.

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
DB2CLI CRASHES WHEN ODBC IS ON AND SQLGETDIAGFIELD IS CALLED FOR 
UN-ALLOCATED STATEMENT HANDLE ON WINDOWS. 
Steps to reproduce 
 
opt callerror on 
opt callodbc on 
configdsn tttt add 
SQLAllocHandle SQL_HANDLE_ENV 0 1 
SQLAllocHandle SQL_HANDLE_DBC 1 1 
SQLDriverConnect 1 0 "DSN=tttt" -3 255 SQL_DRIVER_NOPROMPT 
sqlgetdiagfield sql_handle_stmt 1 0 SQL_DIAG_OVERRIDE_SQLSTATE 
"12345" 
 
It crashes here.  If there is a allocstmt just before the last 
statement it would not crash.
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* When ODBC is used on Windows.                                * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* DB2CLI CRASHES WHEN ODBC IS ON AND SQLGETDIAGFIELD IS CALLED * 
* FOR                                                          * 
* UN-ALLOCATED STATEMENT HANDLE ON WINDOWS.                    * 
*                                                              * 
* Steps to reproduce                                           * 
*                                                              * 
*                                                              * 
*                                                              * 
* opt callerror on                                             * 
*                                                              * 
* opt callodbc on                                              * 
*                                                              * 
* configdsn tttt add                                           * 
*                                                              * 
* SQLAllocHandle SQL_HANDLE_ENV 0 1                            * 
*                                                              * 
* SQLAllocHandle SQL_HANDLE_DBC 1 1                            * 
*                                                              * 
* SQLDriverConnect 1 0 "DSN=tttt" -3 255 SQL_DRIVER_NOPROMPT   * 
*                                                              * 
* sqlgetdiagfield sql_handle_stmt 1 0                          * 
* SQL_DIAG_OVERRIDE_SQLSTATE                                   * 
* "12345"                                                      * 
*                                                              * 
*                                                              * 
*                                                              * 
* It crashes here.  If there is a allocstmt just before the    * 
* last                                                         * 
* statement it would not crash.                                * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to db2_v97fp5 or later releases.                     * 
****************************************************************
Local-Fix:
Do not call sqlgetdiagfield  for un-allocated statement handle.
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
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

Lösung
db2_v97fp5 contains the fix of this issue. After fix, crash will 
not happen. user will get appropriate error.
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
21.07.2011
12.12.2011
12.12.2011
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
9.7.0.5 FixList