IBM Support

JR44950: INCORRECT OUTPUT OF DATETIME AND DATETIME2 IN SQL SERVER

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • There are 2 issues failed for round-up issue when fetch data
    from SQL SERVER datetime/datetime2 column in v97fp7.
    
    Issue 1: Select from nickname where the query condition is a
    timestamp column from local table, the output is incorrect.
    SELECT * FROM t83131
    C1
    --------------------------
    2010-05-06-00.00.00.000000
    
      1 record(s) selected.
    
    SELECT max(c1) FROm t83131_db2
    C1
    --------------------------
    2010-05-05 23:59:59.999000
    
    -- With DB2 9.7 FP5
    SELECT * FROM t83131 where c1=(SELECT max(c1) FROm t83131_db2)
    
    C1
    --------------------------
    2010-05-06-00.00.00.000000
    
      1 record(s) selected.
    
    -- With DB2 9.7 FP7
    SELECT * FROM t83131 where c1=(SELECT max(c1) FROm t83131_db2)
    
    C1
    --------------------------
    -
    
      0 record(s) selected.
    
    
    Issue 2: Select from nickname where the query condition is a
    timestamp constant string, the output is incorrect.
    SELECT * FROM t83131
    C1
    --------------------------
    2010-05-06-00.00.00.000000
    
      1 record(s) selected.
    
    SELECT max(c1) FROm t83131_db2
    C1
    --------------------------
    2010-05-05 23:59:59.999000
    
    -- With DB2 9.7 FP5
    SELECT * FROM t83131 where c1= '2010-05-05 23:59:59.999'
    
    C1
    --------------------------
    2010-05-06-00.00.00.000000
    
      1 record(s) selected.
    
    -- With DB2 9.7 FP7
    SELECT * FROM t83131 where c1= '2010-05-05 23:59:59.999'
    
    C1
    --------------------------
    -
    
      0 record(s) selected.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Federation Server failed to fetch correct                    *
    * datatime/datetime2 outputs from SQL SERVER                   *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to InfoSphere Federation Server v97fp8 or later.     *
    ****************************************************************
    

Problem conclusion

  • The problem is first fixed at v97fp8.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR44950

  • Reported component name

    MSSQL WRAPPER

  • Reported component ID

    5724N9705

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-29

  • Closed date

    2013-04-01

  • Last modified date

    2013-04-01

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

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

    IC91286 IC91768 IC91773

Fix information

  • Fixed component name

    MSSQL WRAPPER

  • Fixed component ID

    5724N9705

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: InfoSphere Federation Server
Data Sources and Wrappers - Microsoft SQL Server

Software version: 970

Reference #: JR44950

Modified date: 01 April 2013