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 IT03984 Status: Closed

WHEN LIKE CLAUSE IS USED IN SELECT STATEMENT, AND VALUE FOR LIKE CLAUSE
APPEARS IN THE STATEMENT AGAIN, SQL0206N MIGHT OCCUR

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
When LIKE clause is used in a SELECT statement, and the value 
specified for the LIKE clause appears in the statement again, 
then CLPPlus is wrongly replacing this value with the dummy 
string, and hence the SQL fails. 
 
Example: 
 
SELECT * 
FROM   tab01 
WHERE  val1 LIKE 'AAA' AND 
       val2 = 'AAA' 
 
It will cause SQL0206N like this. 
SQL0206N  "CLPPLUS976LIKEHNDLMCN0070" is not valid in the 
context where it is used. 
 
Using V10.1 FP3 or earlier Fix Packs, we will not get SQL0206N, 
but the query sent to the server might be invalid.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users using CLPPlus                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Customer facing this issue should upgrade to DB2 10.1 FP5    * 
****************************************************************
Local Fix:
Set the "environment variable substitution" off by: 
 
set envvarsubst off;
Solution
This problem has been fixed in DB2 10.1 FP5
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
25.08.2014
17.07.2015
17.07.2015
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.5 FixList