DB2 - Problembeschreibung
Problem IC85877 | Status: Geschlossen |
SQL COMPATIBILITY : EXIT COMMAND DOES NOT RETURN PROPER RETURN CODE FOR BIND VARIABLES WITH NUMBER DATATYPE | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
This issue is critical in terms of customer's migrating from oracle to DB2 will need to modify their scripts, if they have bind variables of type NUMBER and used with EXIT command. CLPPlus EXIT command returns always 0 when used with Bind Variable of type NUMBER. for example: variable exit_value number; declare v_dummy integer; begin :exit_value:=9; select col01 into v_dummy from (select 1 col01 from dual); end; / exit :exit_value | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * Customers migrating from Oracle to DB2 will encounter this * * issue if their SQL scripts have EXIT command with NUMBER * * bind variable type * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * upgrade to v97 FP7 or later releases. * **************************************************************** | |
Local-Fix: | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows | |
Lösung | |
v97 FP7 fixes this issue. User will be able to use bind variables of type NUMBER with EXIT command. | |
Workaround | |
Use integer bind variable instead | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC88638 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 14.08.2012 20.10.2012 20.10.2012 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP7 | |
Problem behoben lt. FixList in der Version | |
9.7.0.7 |