IBM Support

PH45568: SELECT WITH ORDER BY AND LIMIT AND OFFSET SQL QUERY RETURN INCORRECT ROWS

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

  • A SELECT function with ORDER BY, LIMIT and OFFSET parameter is
    returning additional 1 row.
    If OFFSET value is set to ZERO, number of rows returned is
    correct (equal to LIMIT parameter).
    if OFFSET value is more than ZERO, additional 1 row is returned
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: ALL USERS                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: PH45568                                 *
    *                      Issue with SELECT with ORDER BY         *
    *                      and LIMIT and OFFSET SQL query          *
    ****************************************************************
    * RECOMMENDATION: APPLY PTF                                    *
    ****************************************************************
    PH45568
    Issue with SELECT with ORDER BY and LIMIT and OFFSET SQL query
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH45568

  • Reported component name

    DATA VIRT MGR Z

  • Reported component ID

    5698DVM00

  • Reported release

    110

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-04-08

  • Closed date

    2022-05-23

  • Last modified date

    2022-06-01

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

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

Modules/Macros

  • AVZCDBIF AVZO319D AVZO319N AVZO31AD AVZO31AN AVZO31BD AVZO31BN
    AVZO31CD AVZO31CN AVZO31DD AVZO31DN AVZO649D AVZO649N AVZO64AD
    AVZO64AN AVZO64BD AVZO64BN AVZO64CD AVZO64CN AVZO64DD AVZO64DN
    AVZPRIMP AVZSQ29D AVZSQ29N AVZSQ2BN AVZSQ2CN AVZSQ2DN AVZSQL9D
    AVZSQL9N AVZSQLBN AVZSQLCN AVZSQLDN
    

Fix information

  • Fixed component name

    DATA VIRT MGR Z

  • Fixed component ID

    5698DVM00

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"110"}]

Document Information

Modified date:
06 July 2022