IBM Support

IZ59120: INSTANCE MAY ABEND DURING COMPILATION OF A QUERY CONTAINING IMPL ICITLY EQUIVALENT COLUMNS AND A PREDICATE WITH AN EMPTY STRING

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A query being compiled that has a local predicate (LOCPRD) with
    an empty string literal, i.e., '', may cause the instance to
    abend if the following conditions are satisfied:
    
    1) The column (COMPCOL) in LOCPRD is equivalent to another
    column (OTHCOL), e.g., via a join
    2) OTHCOL is also involved in a local predicate (OTHLOCPRD)
    3) LOCPRD is either an equi-join or non-equi-join predicate
    4) OTHLOCPRD is an equi-join predicate
    5) OTHCOL and COMPCOL are both string-type columns
    
    The stack trace from such an abend will look something like:
    
    sqlrxcp1
    sqlnr_seldel_test
    sqlnr_upddelpd_cond
    sqlnr_seq
    sqlnr_rcc
    sqlnr_magic_detail_action
    ...
    

Local fix

  • Manually rewrite the query by adjusting the empty strings in
    the2 predicates involved to have the same length as the columns
     they are being compared against using spaces, e.g.,
    VARCHAR_4_COL = ''
    can be safely adjusted to:
    VARCHAR_4_COL = '    '
    

Problem summary

  • A query being compiled that has a local predicate (LOCPRD) with
    
    an empty string literal, i.e., '', may cause the instance to
    abend if the following conditions are satisfied:
    
    1) The column (COMPCOL) in LOCPRD is equivalent to another
    column (OTHCOL), e.g., via a join
    2) OTHCOL is also involved in a local predicate (OTHLOCPRD)
    3) LOCPRD is either an equi-join or non-equi-join predicate
    4) OTHLOCPRD is an equi-join predicate
    5) OTHCOL and COMPCOL are both string-type columns
    
    The stack trace from such an abend will look something like:
    
    sqlrxcp1
    sqlnr_seldel_test
    sqlnr_upddelpd_cond
    sqlnr_seq
    sqlnr_rcc
    sqlnr_magic_detail_action
    ...
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.1 FixPak 9.
    

Temporary fix

  • Manually rewrite the query by adjusting the empty strings in
    the2 predicates involved to have the same length as the columns
     they are being compared against using spaces, e.g.,
    VARCHAR_4_COL = ''
    can be safely adjusted to:
    VARCHAR_4_COL = '    '
    

Comments

APAR Information

  • APAR number

    IZ59120

  • 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

    2009-08-20

  • Closed date

    2010-04-13

  • Last modified date

    2010-04-13

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

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

    IC62780 IC62781 IC71236

Fix information

  • Fixed component name

    DB2 UDB ESE SOL

  • Fixed component ID

    5765F4102

Applicable component levels

  • R910 PSY

       UP

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

Document Information

Modified date:
03 October 2021