IBM Support

IT23243: TRAP WHEN IN/EXISTS SUBQUERY IN SELECT LIST AND ACCESS CONTROL ACTIVATED

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Db2 query may abend if the following conditions are met:
    1. There is an IN/EXISTS subquery in the select list
    2. There is an access control mask set set on a column of a
    table
    3. There is a subselect on the table having access control
    4. The masked columm is referenced multiple times in the
    subselect and in the select.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Db2 query may abend if the following conditions are met:     *
    * 1. There is an IN/EXISTS subquery in the select list         *
    * 2. There is an access control mask set set on a column of a  *
    * table                                                        *
    * 3. There is a subselect on the table having access control   *
    * 4. The masked columm is referenced multiple times in the     *
    * subselect and in the select.                                 *
    *                                                              *
    * Example:                                                     *
    * create table t1(c1 int);                                     *
    * create table t2(c1 int, c2 int,c3 int);                      *
    * create table t3(c1 int, c11 int,c2 int);                     *
    *                                                              *
    *                                                              *
    * alter table t2 activate column access control;               *
    * CREATE MASK xx ON t2                                         *
    *     FOR COLUMN c2 RETURN CASE                                *
    * WHEN(VERIFY_GROUP_FOR_USER(SESSION_USER,'FLTACCT')=1) THEN   *
    * c2 ELSE 'RESTRICTED' END                                     *
    *     ENABLE;                                                  *
    *                                                              *
    * insert into t3  select c2, c2,case when exists(select c1     *
    * from t1 where t1.c1=t2.c1) then 1 else 2 end from t2 where   *
    * c3=1;                                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 10.5 Fix Pack 10                      *
    ****************************************************************
    

Problem conclusion

  • Upgrade to DB2 Version 10.5 Fix Pack 10
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT23243

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A50

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-11-21

  • Closed date

    2018-07-12

  • Last modified date

    2018-07-12

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IT23245

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.5","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 July 2018