IBM Support

IC77834: SQLCOLUMNS() API IS NOT RETURNING DISPLAY SIZE FOR THE COLUMN_SIZE COLUMN FOR UDTS

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When the SQLColumns() API call is used to retrieve column
    information for a User Defined Type (UDT) against a Linux, Unix
    or Windows server, the size that is being returned is the size
    derived from they SYSIBM.SYSDATATYPES system catalog table.
    This table contains the storage length for the UDT as opposed to
    the display length of the base type.
    
    By default DB2 should be returning the display length of the
    base type of a UDT unless the CLI statement attribute
    SQL_ATTR_RETURN_USER_DEFINED_TYPES is set to TRUE.
    
    The SQLColumns() API invokes a stored procedure on DB2 for
    Linux, Unix, Windows.  This APAR is to fix the stored procedure
    on the database server to ensure it returns the display length
    of the base type by default.   Therefore this is a server-side
    fix.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * see Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.7, Fixpack 5                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.7, Fixpack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC77834

  • 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

    2011-07-29

  • Closed date

    2011-12-21

  • Last modified date

    2011-12-21

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

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

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

Modified date: 21 December 2011