IBM Support

IC77888: JDBC DATBASE METADATA FUNCTION GETFUNCTIONCOLUMNS & GETUDTS REPORT INCORRECT DATA_TYPE VALUE FOR ROW USER-DEFINED TYPES

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • CREATE TYPE Rowperson AS ROW ( ID INTEGER ,FIRSTNAME VARCHAR(20)
    ,LASTNAME VARCHAR(20)
    
    CREATE FUNCTION  funrow (ROWOUT Rowperson) RETURNS Rowperson
                            BEGIN  DECLARE P Rowperson;
                            SET P.ID = 1;
                            SET P.FIRSTNAME = 'John';
                            SET P.LASTNAME = 'Doe';
     RETURN P; END");
    
    In a jdbc application
     dbmd.getFunctionColumns(null, null, "FUNROW3", null);  for a
    function  having Row Type as parameters.
    
    o/p
    
    procParmName->FUNROW3
    TYPE_NAME->ROWPERSON
    DATA_TYPE->0
    
    DATA_TYPE should be 2002 for ROW types
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of JDBC functions GETFUNCTIONCOLUMNS & GETUDTS for DB2 *
    * LUW                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 9.7 FP5 or newer                              *
    ****************************************************************
    

Problem conclusion

  • Problem fixed in DB2 Version 9.7 Fix Pack 5
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC77888

  • 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-08-03

  • Closed date

    2011-12-07

  • Last modified date

    2012-03-16

  • 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 #: IC77888

Modified date: 16 March 2012