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

DESCRIBE SHOULD RETURN CHARACTER LENGTH INSTEAD OF BYTE LENGTH

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
The DESCRIBE command should return length in number of
characters instead of the actual number of bytes used by the
character.  With example below each character uses 4 Bytes, thus
length shows up as 80 instead of the expected 20 characters.

create table c1(lnkey varchar(20));
create table c32(lnkey varchar(20 codeunits32));

db2 "describe table c1"
                                Data type
Column
Column name                     schema    Data type name
Length     Scale Nulls
------------------------------- --------- -------------------
---------- ----- ------
LNKEY                           SYSIBM    VARCHAR
20     0 Yes


db2 "describe table c32"
                                Data type
Column
Column name                     schema    Data type name
Length     Scale Nulls
------------------------------- --------- -------------------
---------- ----- ------
LNKEY                           SYSIBM    VARCHAR
80     0 Yes
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* This is currently a limitation                               *
****************************************************************
Local Fix:
Solution
Workaround
See LOCAL FIX.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
31.08.2016
08.05.2017
08.05.2017
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)