DB2 - Problem description
Problem IC88394 | Status: Closed |
QUERY WITH NUMEROUS PARAMETER MARKERS IN AN IN LIST HANGS DURING COMPILATION | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
A query that has a very large number of parameter markers in an IN LIST may hang during query compilation. For example: select * from T where C1 in (?,?,?,...) | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 version 9.7 fix pack 8 * **************************************************************** | |
Local Fix: | |
Rewrite the IN LIST to use a subselect: select * from T where C1 in ( select cast( val as <type> ) from ( values ?,?,?,... ) inlist(val) | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 version 9.7 fix pack 8 | |
Workaround | |
not known / see Local fix | |
BUG-Tracking | |
forerunner : APAR is sysrouted TO one or more of the following: IC91690 follow-up : | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 19.11.2012 04.04.2013 04.04.2013 |
Problem solved at the following versions (IBM BugInfos) | |
9.7.FP8 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.8 |