IBM Support

LI71380: THE GETCOLUMNDISPLAYSIZE FOR GRAPHIC TYPE RETURNS NUMBER OF BYTES INSTEAD OF NUMBER OF CHARACTERS ON LEGACY JDBC DRIVER.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The Java specification defines
    ResultSetMetaData#getColumnDisplaySize method returns the number
    of characters for given column. However getColumnDisplaySize for
    GRAPHIC type returns number of bytes instead of number of
    characters on Legacy JDBC driver.
    

Local fix

  • Please use Universal JDBC Driver (Jcc). The
    getColumnDisplaySize(graphic type) returns number of characters
    on Jcc.
    

Problem summary

  • Users affected:
    Users who use CLI-based Legacy JDBC driver.
    .
    Problem Description:
    If this APAR is not applied,
    ResultSetMetaData#getColumnDisplaySize method for GRAPHIC
    columns returns number of bytes instead of number of characters.
    Problem Summary:
    Legacy driver did not take into account that GRAPHIC columns
    contain only double-byte string.
    

Problem conclusion

  • First fixed in DB2 Version 9.1, FixPack 5 (s080512)
    

Temporary fix

  • Please use DB2 Driver for JDBC and SQLJ (jcc)
    

Comments

APAR Information

  • APAR number

    LI71380

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-05-07

  • Closed date

    2008-06-24

  • Last modified date

    2008-06-24

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

    LI71379

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

Modules/Macros

  • ENG_JDBC
    

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R910 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 October 2021