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

CREATE EXTERNAL TABLE USING SAMEAS/LIKE WITH BASE TABLE HAVING HIDDEN
COLUMN IS GETTING CREATED WITH HIDDEN COLUMN

product:
DB2 FOR LUW / DB2FORLUW / B50 - DB2
Problem description:
This issue is with named ET where the external table column
definition is created based on base table.

create table base(c1 int, c2 CHAR(1 OCTETS) NOT NULL IMPLICITLY
HIDDEN WITH DEFAULT 'A')
create external table et1 sameas base using (dataobject
'/home/ngupta4k/test/data.del')
db2 describe table et1

                                Data type
Column
Column name                     schema    Data type name
Length     Scale Nulls
------------------------------- --------- -------------------
---------- ----- ------
C1                              SYSIBM    INTEGER
4     0 Yes
C2                              SYSIBM    CHARACTER
1     0 No

  2 record(s) selected.

If user wants to go back to original behaviour of INCLUDING
hidden columns in SAMEAS/LIKE syntax, then set the regvar:

db2set -im DB2_EXTBL_INCLUDE_HIDDEN_COLS=YES
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* all                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Db2 11.5.5.0 or higher                            *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
30.07.2020
20.11.2020
20.11.2020
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)