IBM Support

IZ80977: DB2 MAY ABEND WHILE TRYING TO COMPILE A QUERY WITH 1 = 0 PREDICATE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DB2 might abend while compiling a query containing a 1 = 0
    predicate.
    The query might also be referencing a union all view with 12 or
    more branches.
    
    The stack trace looks similar to:
    <StackTrace>
    ------Function------
    validateOnGetBlock
    sqlofmblk
    sqlng_pop
    sqlng_build_PSR
    sqlri_ufob
    sqlng_build_UFOB_obj
    sqlng_build_U_X_op
    sqlng_process_parse_tree_node
    sqlng_process_BF_node
    sqlng_build_thread
    sqlng_build_TA_op
    sqlng_process_scan_op
    sqlng_build_thread
    sqlng_process_nljn
    sqlng_process_unique_op
    sqlng_process_mate_op
    </StackTrace>
    

Local fix

  • set opt level 3 or below
    SET CURRENT QUERY OPTIMIZATION 3
    

Problem summary

  • DB2 may abend while trying to compile a query with 1 = 0
    predicate.
    

Problem conclusion

  • DB2 might abend while compiling a query containing a 1 = 0
    predicate. The query might also be referencing a union all view
    with 12 or more branches.
    

Temporary fix

  • set opt level 3 or below
    SET CURRENT QUERY OPTIMIZATION 3
    

Comments

APAR Information

  • APAR number

    IZ80977

  • Reported component name

    DB2 UDB ESE AIX

  • Reported component ID

    5765F4100

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-07-26

  • Closed date

    2010-11-08

  • Last modified date

    2010-11-08

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

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

    IC70161 IC70356

Fix information

  • Fixed component name

    DB2 UDB ESE AIX

  • Fixed component ID

    5765F4100

Applicable component levels

  • R950 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
08 November 2010