IBM Support

JR27772: SYSIBM.SQLTABLES failed to return synonym

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Customer tried to call the stored procedure directly against
    database on the server (table T1 and SYNONYM T1N91 on the db),
    and got following result.
    
    If calling this way:  call SYSIBM.SQLTABLES(null,'%ERIC','%',
    null,'DATATYPE="JDBC";DYNAMIC=0;REPORTPUBLICPRIVILEGES=1;'),
    which maps to jdbc calling getTables(null, "%ERIC", "%", null),
    T1 and T1N91 will be returned as following format:
    TABLE_NAME
    TABLE_SCHEMTABLE_TYPE
    
     T1N91  ERIC   SYNONYM
     T1     ERIC   TABLE
    
    But if calling this way: call
    SYSIBM.SQLTABLES(null,'%ERIC','%','SYNONYM','DATATYPE="JDBC";DYN
    AMIC=0;REPORTPUBLICPRIVILEGES=1;'),
    which maps to jdbc calling getTables(null, "%ERIC", "SYNONYM",
    null), T1N91 will not be returned.
    TABLE_NAME
    TABLE_SCHEMTABLE_TYPE
    
     T1  ERIC        TABLE
    

Local fix

  • N/A
    

Problem summary

  • User's affected: All that rely on the CLI layer
    Problem description:  SQLTables() API does not return synonims
    

Problem conclusion

  • First fixed in v9fp5 - introduced in v9fp3
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR27772

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-11-06

  • Closed date

    2008-06-05

  • Last modified date

    2008-06-05

  • 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 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R910 PSY

       UP

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

Document Information

Modified date:
07 October 2021