IBM Support

JR30733: ICOLUMNSINFO AND IDBSCHEMAROWSET(DBSCHEMA_COLUMNS) RETURN DIFFERENT DATATYPES FOR DECIMAL COLUMN IN OLEDB APPLICATIONS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • This APAR is the same as IY95017 excepts covers the scenario
    where the database server is DB2 for z/OS v8
    
    An OLEDB application if issuing IColumnsInfo will return SQL_NUM
    ERIC for DECIMAL(x,y) columns however IDBSchemaRowset(DBSCHEMA_C
    OLUMNS) will return SQL_DECIMAL.   This will cause certain appli
    cations to fail like Microsoft SQL Server Linked Server, where i
    t expects the same datatype for both calls.
    .
    The OLEDB specifications indicate that SQL_NUMERIC be used for D
    ECIMAL columns.  This APAR will ensure IDBSchemaRowset(DBSCHEMA_
    COLUMNS) is changed such that it returns SQL_NUMERIC instead of
    SQL_DECIMAL.
    .
    Note:   IColumnsInfo maps to the CLI API SQLDescribeCol() and ID
    BSchemaRowset(DBSCHEMA_COLUMNS) maps to the CLI API SQLColumnsW(
    ).
    

Local fix

  • Add GenericSchemaKeywords="OLEDBNUMERIC=1" to db2cli.ini
    

Problem summary

  • This APAR is the same as IY95017 excepts covers the scenario
    where the database server is DB2 for z/OS v8
    
    An OLEDB application if issuing IColumnsInfo will return SQL_NUM
    ERIC for DECIMAL(x,y) columns however IDBSchemaRowset(DBSCHEMA_C
    OLUMNS) will return SQL_DECIMAL.   This will cause certain appli
    cations to fail like Microsoft SQL Server Linked Server, where i
    t expects the same datatype for both calls.
    .
    The OLEDB specifications indicate that SQL_NUMERIC be used for D
    ECIMAL columns.  This APAR will ensure IDBSchemaRowset(DBSCHEMA
    COLUMNS) is changed such that it returns SQL_NUMERIC instead of
    SQL_DECIMAL.
    .
    Note:   IColumnsInfo maps to the CLI API SQLDescribeCol() and ID
    BSchemaRowset(DBSCHEMA_COLUMNS) maps to the CLI API SQLColumnsW(
    ).
    

Problem conclusion

  • First fixed in DB2 UDB Version 9.5, FixPak 4
    

Temporary fix

  • Add GenericSchemaKeywords="OLEDBNUMERIC=1" to db2cli.ini
    

Comments

APAR Information

  • APAR number

    JR30733

  • Reported component name

    DB2 CEE WINDOWS

  • Reported component ID

    5765F3001

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-10-09

  • Closed date

    2009-05-29

  • Last modified date

    2009-05-29

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

    JR30732

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

Fix information

  • Fixed component name

    DB2 CEE WINDOWS

  • Fixed component ID

    5765F3001

Applicable component levels

  • R950 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 May 2009