IBM Support

IC75317: SCALAR FUNCTION "DECFLOAT" FAILED WITH SQL0420N DUE TO INVALID INTERNAL CASTING.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Scalar function DECFLOAT Failed with SQL0420N due to query
    re-write causing invalid cast.
    
    Problem could occur in this scenario:
    ---------------------
      Input varchar(100) ;
    
      SubInput    varchar(10) ;
    BEGIN
    ...
      if length(Input) <> 4
      then
          SubInput := to_number(substr(Input, 2, 3)) || ',' ||
    to_number(substr(Input, 9)) ;
      end if ;
    --------------------
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The Scalar function DECFLOAT fails with a SQL0420N error due *
    * to an invalid cast during query re-write.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7 Fix Pack 5                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7 Fix Pack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC75317

  • 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

    2011-03-28

  • Closed date

    2011-12-12

  • Last modified date

    2011-12-12

  • 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

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC75317

Modified date: 12 December 2011