DB2 - Problem description
Problem IT20720 | Status: Closed |
TRUNCATING CAST TO (VAR)CHAR AGAINST A COLUMNAR ORGANIZED TABLECOULD RETURN DANGLING BYTE INSTEAD OF A BLANK CHARACTER. | |
product: | |
DB2 FOR LUW / DB2FORLUW / B10 - DB2 | |
Problem description: | |
example: create table t1(a graphic(64)) organize by column insert into t1 values (X'e0b885e0b886e0b887e0b885e0b886e0b885e0b886e0b885e0b886e0b885e 0b886e0b885e0b886e0b885e0b886') SELECT hex(CAST(a AS CHAR(10))) FROM t1 returns xE0B885E0B886E0B887E0 where last byte, xE0 is partial and not a valid character. we should have returned xE0B885E0B886E0B88720 WHERE last x20 is a blank and it replaced partial xE0 | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 11.1 Mod 2 Fix Pack 2 iFix001 or higher * **************************************************************** | |
Local Fix: | |
Using optimizer guidelines change the plan to push the work into rowstore , which will return correct blank. | |
available fix packs: | |
Db2 Version 11.1 Mod2 Fix Pack2 iFix001 for Linux, UNIX, and Windows | |
Solution | |
First fixed in Db2 11.1 Mod 2 Fix Pack 2 iFix001 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 23.05.2017 11.10.2017 12.10.2017 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |