IC87302: INCORRECT SYNTAX COMBINATION OF CAST AND DATE FUNCTIONS SUCH AS DAYS, MINUTES ETC CAN CAUSE COMPILER CRASH INSTEAD OF SQL0104

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • If incorrect syntax is used which involves the CAST operator and
    a DATE function DAYS or ( MINUTES, MONTHS, YEARS etc  ) ,
    then instead of a SQL0104 syntax error being returned a compiler
    crash
    can occur.
    Example statement :
    db2 "select cast( ( current_timestamp ) days as decimal ) from
    sysibm.sysdummy1 "
    
    will return following error:
    
    SQL0901N  The SQL statement failed because of a non-severe
    system error.
    Subsequent SQL statements can be processed.  (Reason
    "SQLNQ_CONVERTNODE 010".)
    SQLSTATE=58004
    

Local fix

  • Correct the syntax for the statement
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 9.7 Fix Pack 8                                *
    ****************************************************************
    

Problem conclusion

  • Problem first fixed in DB2 9.7 Fix Pack 8
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC87302

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-17

  • Closed date

    2013-05-21

  • Last modified date

    2013-05-21

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

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

    IC91729

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.7

Reference #:

IC87302

Modified date:

2013-05-21

Translate my page

Machine Translation

Content navigation