A fix is available
APAR status
Closed as program error.
Error description
DB2 applications that use the legacy JDBC driver or CLI API may experience error SQL0104N in rare situations when preparing an SQL statement containing a double-byte character (e.g. 0x819B in ja_JP.SJIS) and the application makes repeated, successive calls to the Java method setMaxRows() or the CLI function SQLSetStmtAttr( ... SQL_ATTR_MAX_ROWS ... ). Example: : String sql = "SELECT '?' FROM SYSIBM.SYSDUMMY1"; PreparedStatement pstmt = conn.prepareStatement( sql ); pstmt.setMaxRows ( 500 ); pstmt.setMaxRows ( 500 ); ResultSet rs5 = pstmt.executeQuery(); : The SQL statement is incorrectly translated to contain double FETCH FIRST <n> ROWS ONLY clauses as in: SELECT * FROM SYSDUMMY1 FETCH FIRST 500 ROWS ONLY FETCH FIRST 500 ROWS ONLY
Local fix
Remove the duplicate call from the application that sets the maximum rows.
Problem summary
As description.
Problem conclusion
Problem was first fixed in DB2 UDB Version 8, FixPak 16
Temporary fix
Comments
APAR Information
APAR number
JR27157
Reported component name
DB2 UDB EXE WIN
Reported component ID
5724E4901
Reported release
820
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-07-27
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:
Fix information
Fixed component name
DB2 UDB EXE WIN
Fixed component ID
5724E4901
Applicable component levels
R820 PSY
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":"820","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
11 October 2021