IBM Support

IC72933: DB2CI using SQLT_FLT in OCIBindByName/OCIBindByPos calls on NUMBER columns get truncated values instead of being rounded

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The following example shows a table that has a value of 5.6
    inserted into a NUMBER column
    create table test(a number(10)) ;
    insert into temp values (5.6) ;
    
    When using DB2CI with SQLT_FLT in OCIBindByName/OCIBindByPos
    calls, the number will be returned as 5 instead of 5.6 as the
    number was truncated instead of rounded to 6 as seen from
    CLPPLUS.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 LUW v9.7                                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * DB2CI using SQLT_FLT in OCIBindByName/OCIBindByPos calls on  *
    * NUMBER columns get truncated values instead of being rounded *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 LUW v9.7 Fixapack 4                           *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 LUW v9.7 Fixapack 4
    

Temporary fix

Comments

  • Requirement
    

APAR Information

  • APAR number

    IC72933

  • 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

    2010-12-01

  • Closed date

    2011-08-17

  • Last modified date

    2011-08-17

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

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

    IC73007

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 #: IC72933

Modified date: 17 August 2011