IBM Support

IC69773: SUM OF SQL DATA TYPE INTERVAL IN A SUBQUERY RETURNS ERROR 1268

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

  • Running a select statement with a subquery having a sum
    aggregate dealing with interval sql data type will return error
    1268 as an interval qualifier would have not been correctly
    used. This error is not normal behavior and should not be
    returned by IDS.
    Not using the subquery will workaround the problem.
    
    Error as it is returned:
    
    
      1268: Invalid datetime or interval qualifier.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * 11.50XCX customers                                           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * In certain cases where the projection clause of the Select   *
    * has a subquery and the subquery do the aggregation of the    *
    * interval type, then users can get 1268 error.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to the latest 11.50XCX server.                       *
    ****************************************************************
    

Problem conclusion

  • The latest 11.50XCX server addresses this issue of not getting
    1268 when doing aggregation on interval type in the subquery and
    that subquery belong to the projection list of the main query.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC69773

  • Reported component name

    IBM IDS ENTRP E

  • Reported component ID

    5724L2304

  • Reported release

    B15

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-07-08

  • Closed date

    2011-01-20

  • Last modified date

    2011-01-20

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

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

Fix information

  • Fixed component name

    IBM IDS ENTRP E

  • Fixed component ID

    5724L2304

Applicable component levels

  • RB15 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B15","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
20 January 2011