IBM Support

IY98201: ENABLE BRANCH ELIMINATION ON UPDATE STATEMENTS ON UNION ALL VIEW

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Branch elimination doesn't fire for UPDATE statements against
    UNION ALL views.
    
    
    There are two classes of UPDATE statements:
    (a)Simple UPDATE statement against UNION ALL view such as:
    
    update <UA view> set <col> = <value>
    where <col> = <constant> and <col2> = <constant2>
    
    (b)Update statement with subquery
    
    update <UA view> set <col> = <value>
    where <col> = <constant> and EXISTS (<subquery>)
    
    The latter case (b) is not currently addressed by this APAR.
    The former case (a) is what this fix addresses.
    

Local fix

Problem summary

  • Branch elimination doesn't fire for UPDATE statements against
    UNION ALL views.
    
    
    There are two classes of UPDATE statements:
    (a)Simple UPDATE statement against UNION ALL view such as:
    
    update <UA view> set <col> = <value>
    where <col> = <constant> and <col2> = <constant2>
    
    (b)Update statement with subquery
    
    update <UA view> set <col> = <value>
    where <col> = <constant> and EXISTS (<subquery>)
    
    The latter case (b) is not currently addressed by this APAR.
    The former case (a) is what this fix addresses.
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.1, FixPak 6
    

Temporary fix

  • Rewrite query
    

Comments

APAR Information

  • APAR number

    IY98201

  • Reported component name

    DB2 UDB ESE SOL

  • Reported component ID

    5765F4102

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-05-04

  • Closed date

    2008-11-02

  • Last modified date

    2008-11-02

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

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

    IZ22947

Modules/Macros

  • ENG_SQNR
    

Fix information

  • Fixed component name

    DB2 UDB ESE SOL

  • Fixed component ID

    5765F4102

Applicable component levels

  • R810 PSN

       UP

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 November 2008