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 | |
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 |