A fix is available
APAR status
Closed as program error.
Error description
The LIKE predicate may produce incorrect results. The following conditions must be met for the problem to occur: . 1) The LIKE pattern expression must contain at least three percent signs (%). . 2) The underscore character (_) must be contained in one of the secondary subpatterns that end with the percent sign. . Examples: ========= %subpattern1%subpattern2% -- if subpattern2 has "_" -> possibility of problems . %subpattern1%subpattern2%subpattern3% -- if subpattern2 or subpattern3 have "_" -> possibility of problems . Steps to reproduce: =================== * create table LIKETEST (datafield varchar(20)); * insert into LIKETEST (datafield) values ('mod-500188'); * insert into LIKETEST (datafield) values ('mod-500188'); * select datafield from LIKETEST where datafield like '%mod%01_8%'; . The actual output: . 0 record(s) selected. . The expected output would be: . mod-500188 mod-500188 . 2 record(s) selected.
Local fix
Rewrite the LIKE pattern expression if possible.
Problem summary
Users affected: see APAR text Problem description: see APAR text Problem summary: see APAR text
Problem conclusion
First fixed in DB2 UDB Version 8.1, FixPak 14
Temporary fix
see APAR text
Comments
APAR Information
APAR number
JR24773
Reported component name
DB2 UDB PE WIND
Reported component ID
5724B5501
Reported release
810
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2006-09-08
Closed date
2006-12-01
Last modified date
2006-12-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ENGN_SQV
Fix information
Fixed component name
DB2 UDB PE WIND
Fixed component ID
5724B5501
Applicable component levels
R810 PSN
UP
R820 PSN
UP
[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"810"}]
Document Information
Modified date:
06 October 2021