DB2 - Problembeschreibung
Problem IC76485 | Status: Geschlossen |
DB2 DOESN'T RECOGNISE A NEW BEGIN-END BLOCK IMMEDIATELY AFTER A LABEL DECLARATION WHEN INTERPRETING PL/SQL | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
When a BEGIN-END block follows immediately after a label declaration in a PL/SQL statement, e.g. ------- CREATE OR REPLACE PROCEDURE PROC_TEST ( ... ) IS ... BEGIN ... GOTO LABEL; ... << LABEL >> BEGIN ... END; END; ------- db2 gives the following error: DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0104N An unexpected token "BEGIN" was found following "BEGIN ". Expected tokens may include: "SELECT". LINE NUMBER=XX. SQLSTATE=42601 | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * Interpreting PL/SQL in DB2 * **************************************************************** * PROBLEM DESCRIPTION: * * When interpreting PL/SQL, DB2 does not recognise a BEGIN-END * * block that immediately follows a label. * * * * User will see a message like: * * DB21034E The command was processed as an SQL statement * * because it was n * * valid Command Line Processor command. During SQL processing * * it returned * * SQL0104N An unexpected token "BEGIN" was found following " * * BEGIN". * * Expected tokens may include: "SELECT". LINE NUMBER=XXX. * * SQLSTATE=42601 * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 version 9.7 FP5 * **************************************************************** | |
Local-Fix: | |
Insert a NULL statement between the label and the BEGIN; e.g. << LABEL >> NULL; BEGIN | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows | |
Lösung | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 18.05.2011 07.12.2011 07.12.2011 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP5 | |
Problem behoben lt. FixList in der Version | |
9.7.0.5 |