home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC76259 Status: Geschlossen

SQL0104N RETURNED DUE TO SINGLE OR DOUBLE QUOTES INSIDE NEW STYLE COMMENT

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Another symptom is that users executing ALTER PROCEDURE will 
have the Line Feed (0xA) character removed before the DDL is 
sent to the server.  Thus when the DDL is retrieved the entire 
CREATE PROCEDURE statement will be one long line with no new 
line or carriage returns. 
 
Example: 
alter procedure db2inst1.sp1 replace version v1 () 
    DISABLE DEBUG MODE 
    ISOLATION LEVEL CS  /* if there is a ' or " in this comment 
no LF is sent*/ 
    LANGUAGE SQL 
    P1: BEGIN 
    -- Test Insert 
    INSERT INTO T1 VALUES( 
            11, -- here ' or " has no problem. 
            55) --Parm2 
    ; 
    -- end of procedure 
END P1@ 
 
select * from /* it is new 'style comment */ 
 -- normal comment 
 T1@ 
 
The problem is with /* ... */ style of comment only.
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See ERROR DESCRIPTION.                                       * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to v9.7 Fixpack 5.                                   * 
****************************************************************
Local-Fix:
Do not use single quotes (') or double quotes (") inside a new 
style comment.  Another alternative is to use the old style 
comments instead (e.g. -- Line 1)
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
Problem was first fixed in DB2 v9.7 Fixpack 5.  At minimum the 
fix should be applied to where the SQL statements are executed. 
This may be a remote client or the local DB2 server.
Workaround
SEE LOCAL FIX.
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
09.05.2011
19.01.2012
19.01.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP5
Problem behoben lt. FixList in der Version
9.7.0.5 FixList