DB2 - Problem description
Problem IC65641 | Status: Closed |
AMBIGUOUS CURSOR IS DELETABLE BUT NOT UPDATABLE | |
product: | |
DB2 FOR LUW / DB2FORLUW / 950 - DB2 | |
Problem description: | |
Description: DECLARE CURSOR results in an ambiguous cursor if each of the following are true: - the select-statement is dynamically prepared - the select-statement does not include either the FOR READ ONLYclause or the FOR UPDATE clause - the LANGLEVEL bind option is SAA1 - the cursor otherwise satisfies the conditions of a deletable cursor If the static package is bound with BLOCKING UNAMBIG or BLOCKING NO, the cursor should be updatable but it is not, it is only marked as deletable. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * DECLARE CURSOR results in an ambiguous cursor * * if each of the following are true: * * * * - the select-statement is dynamically prepared * * - the select-statement does not include either the FOR READ * * ONLY clause or the FOR UPDATE clause * * - the LANGLEVEL bind option is SAA1 * * - the cursor otherwise satisfies the conditions of a * * deletable cursor * * * * If the static package is bound with BLOCKING UNAMBIG or * * BLOCKING NO, the cursor should be updatable but it is not, * * it is only marked as deletable. * **************************************************************** * RECOMMENDATION: * * If the cursor needs to be updatable, either add a FOR UPDATE * * clause to the query or change the LANGLEVEL bind option to * * MIA or SQL92E. * **************************************************************** | |
Local Fix: | |
If the cursor needs to be updatable, either add a FOR UPDATE clause to the query or change the LANGLEVEL bind option to MIA or SQL92E. | |
available fix packs: | |
DB2 Version 9.5 Fix Pack 8 for Linux, UNIX, and Windows | |
Solution | |
Permanent restriction | |
Workaround | |
not known / see Local fix | |
Comment | |
This will be a permanent Restriction and not fixed. | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 18.01.2010 26.05.2010 26.05.2010 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |