DB2 - Problem description
Problem IC76259 | Status: Closed |
SQL0104N RETURNED DUE TO SINGLE OR DOUBLE QUOTES INSIDE NEW STYLE COMMENT | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
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 Summary: | |
**************************************************************** * 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) | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows | |
Solution | |
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. | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 09.05.2011 19.01.2012 19.01.2012 |
Problem solved at the following versions (IBM BugInfos) | |
9.7.FP5 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.5 |