DB2 - Problem description
Problem IT20851 | 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 / A50 - 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 10.5 Fix Pack 9 or higher * **************************************************************** | |
Local Fix: | |
Using optimizer guidelines change the plan to push the work into rowstore , which will return correct blank. | |
Solution | |
First fixed in Db2 10.5 Fix Pack 9 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 02.06.2017 29.09.2017 29.09.2017 |
Problem solved at the following versions (IBM BugInfos) | |
9.0. | |
Problem solved according to the fixlist(s) of the following version(s) |