IBM Support

IC99319: SQL STATEMENT WITH ORDERED COLUMN GROUP OR PREDICATES MIGHT RETURN INCORRECT RESULT SET WHEN JUMP SCAN USED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An SQL statement that includes one or more ordered column group
    OR predicates might return an incorrect result set if the DB2
    optimizer chooses a jump scan index access that applies the OR
    predicate as index range delimiting predicates for more
    efficient access.
    
    For example, the following predicate has an ordered column group
    OR predicate that defines a column group (a1, a2, a3) and an
    inclusive condition on the key values (1, 2, 3).
    
    (a1>1) or (a1=1 and a2>2) or (a1=1 and a2=2 and a3>=3)
    
    If there is an index (a1 asc, a2 asc, a3 asc), then the
    optimizer can apply the composite inclusive key for better
    filtering and minimal data read from the index.
    

Local fix

  • You can avoid the problem by disabling jump scan using the
    JUMPSCAN option of the DB2_REDUCED_OPTIMIZATION variable:
    DB2_REDUCED_OPTIMIZATION="JUMPSCAN OFF".
    
    You can also use the REGISTRY optimization guideline element to
    set this at the application or statement level.
    

Problem summary

  • Users affected: All users
    Problem Description: see error description
    

Problem conclusion

  • The problem is first fixed in DB2 UDB
    version 10.1 fix pack 4
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC99319

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    YesHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-02-12

  • Closed date

    2014-07-18

  • Last modified date

    2014-07-18

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

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

    IT01088

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"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":"10.1"}]

Document Information

Modified date:
23 September 2021