IBM Support

LI71379: 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 UDB Version 8.1, FixPak 16. (s080111)
    

Temporary fix

  • Please use Universal JDBC Driver (jcc).
    

Comments

APAR Information

  • APAR number

    LI71379

  • Reported component name

    DB2 UDE ESE LIN

  • Reported component ID

    5765F4104

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-05-07

  • Closed date

    2008-02-06

  • Last modified date

    2008-02-06

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

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

    LI71380 LI72477

Modules/Macros

  • ENG_JDBC
    

Fix information

  • Fixed component name

    DB2 UDE ESE LIN

  • Fixed component ID

    5765F4104

Applicable component levels

  • R810 PSN

       UP

  • R820 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":"810","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 October 2021