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 IT00814 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 / 970 - 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 V9.7 FP8 or earlier Fix Packs, we will not get SQL0206N, 
but the query sent to the server might be invalid.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Version 9.7 Fix Pack 10                           * 
****************************************************************
Local Fix:
Set the "environment variable substitution" off by: 
 
set envvarsubst off;
Solution
Problem was first fixed in DB2 UDB Version 9.7 Fix Pack 10
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
04.04.2014
17.11.2014
17.11.2014
Problem solved at the following versions (IBM BugInfos)
9.7.FP10
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.10 FixList