DB2 - Problem description
Problem IC79246 | Status: Closed |
DB2CommandBuilder.DeriveParameters() may not resolve the parameters for a fully qualified stored procedure. | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
The DB2CommandBuilder.DeriveParameters() may not resolve the parameters of a stored procedure. This occurs when the following conditions are met: 1) The fully qualified name of the stored procedure must be used to resolve the stored procedure. 2) One or more of the parameters for the stored procedure are of either a REF CURSOR or ARRAY type. There might be other types which may also be used to fulfill this condition. When this problem is encountered, DB2CommandBuilder.DeriveParameters() will return a single parameter when there should be more. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Windows using the IBM DB2 ADO.NET Provider * **************************************************************** * PROBLEM DESCRIPTION: * * The DB2CommandBuilder.DeriveParameters() may not resolve the * * * * parameters of a stored procedure. This occurs when the * * * * following conditions are met: * * * * 1) The fully qualified name of the stored procedure must be * * * * used to resolve the stored procedure. * * * * 2) One or more of the parameters for the stored procedure * * are * * of either a REF CURSOR or ARRAY type. There might be other * * * * types which may also be used to fulfill this condition. * * * * * * * * When this problem is encountered, * * * * DB2CommandBuilder.DeriveParameters() will return a single * * * * parameter when there should be more. * **************************************************************** * RECOMMENDATION: * * Upgrade to version 9.7 Fix Pack 6 * **************************************************************** | |
Local Fix: | |
A potential workaround is to use CommandType=Text and CommandText="CALL db2admin.POC_REF_CURSOR.PR_GET_DATA(?,?,?)" | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
Solution | |
Problem was first fixed in Version 9.7 Fix Pack 6 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 17.10.2011 04.06.2012 04.06.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 |