A fix is available
APAR status
Closed as program error.
Error description
AN EMPTY RESULTSET MAY BE RETURNED FROM SQLPRIMARYKEYS IF THE TABLE OR SCHEMA PARM PASSED IN IS NULL
Local fix
Change the invocation of sqlprimarykeys to include a schema and table name instead of null values
Problem summary
**************************************************************** * USERS AFFECTED: All Users of IBM Data Server Driver for * * JDBC and SQLJ that connect to DB2 10 for * * z/OS or DB2 11 for z/OS * **************************************************************** * PROBLEM DESCRIPTION: An empty result set is returned from * * JDBC getPrimaryKeys() if the input * * schema name is NULL and the input * * table name contains UNDERSCORE * * character '_'. * **************************************************************** * RECOMMENDATION: * **************************************************************** Database Metadata store procedure, SYSIBM.SQLPRIMARYKEYS, is invoked when a JDBC application calls getPrimaryKeys(). When getPrimaryKeys()'s input schema name is NULL and its input table name contains UNDERSCORE('_') character, Procedure SQLPRIMARYKEYS() adds an ESCAPE character before each UNDERSCORE character. DB2 doesn't find the searched table object, an empty result set is returned.
Problem conclusion
Extra ESCAPE character is removed before sending the table object to DB2, the correct result set is returned.
Temporary fix
Comments
APAR Information
APAR number
PI39672
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-04-22
Closed date
2015-06-03
Last modified date
2015-07-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI28175 UI28176
Modules/Macros
DSN@PRKU DSNAPRKU
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
01 July 2015