home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
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
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC99235 Status: Closed

DB2CAEM FAILS IF THE SQL INPUT CONTAINS A COMMENT "--" WHICH IS
NOT AT THE START OF A LINE

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
db2caem fails if the SQL input contains a comment "--" which is 
not at the start of a line 
 
For example: 
 
Sample SQL statement: "select  -- test * -- test1 from t1" 
 
DBT7028E  "db2caem": The db2caem command failed because the DB2 
database manager encountered an error while processing the 
specified input parameters and the specified SQL statement. 
Handle type: "3". Return code: "-1:1945". 
           CLIInfo: SQLstate: "42601" 
                    Return code: "-104" 
                    Diagnostic message: "[IBM][CLI 
Driver][DB2/LINUXX8664] SQL0104N  An unexpected token 
"END-OF-STATEMENT" was found following " ".  Expected tokens may 
include:  "JOIN <joined_table>".  SQLSTATE=42601 
" 
DBT7033E  "db2caem": The db2caem utility encountered an error 
while processing the specified SQL statement. SQL statement: 
"select  -- test * -- test1 from t1". Return code: "-1:4008".
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* N/A                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to V105FP4                                           * 
****************************************************************
Local Fix:
Modify the input SQL so it doesn't have a comment "--" which is 
not at the start of a line
available fix packs:
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows
DB2 Version 10.5 Fix Pack 9 for Linux, UNIX, and Windows

Solution
V105FP4 contains the fix.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
07.02.2014
08.09.2014
08.09.2014
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.5.0.4 FixList