Activity log for bug #1451707

Date Who What changed Old value New value Message
2015-05-05 07:54:35 Yu Bo bug added bug
2015-05-05 07:57:32 xiu-zhu.zhang trafodion: assignee xiu-zhu.zhang (xiu-zhu-zhang)
2015-05-05 08:04:40 xiu-zhu.zhang trafodion: status New In Progress
2015-05-05 08:07:00 Chen-Yun Fan trafodion: importance Undecided High
2015-05-05 23:00:09 Anuradha trafodion: milestone r2.0
2015-05-14 06:14:49 Yu Bo description Defect Description: There is a table that columns charset as utf8, when expect to return 20K column size, it is failed to call ResultSet.next() function. Test Environment: sqws139.houston.hp.com, T2 driver. Test Steps: Step 1. Create a table as below, sql = "create table tblcolumnsize200kWithUTF8(c1 char(50000) character set UTF8 collate default null, c2 char(50000) character set UTF8 collate default null)"; iRet = stmt.executeUpdate(sql); Step 2. Insert 20K utf8 column size into the above table. Step 3. Execute query as below, sql = "select left(rtrim(t.c1), 50000) as o1 from tblcolumnsize200kWithUTF8 as t"; rs = stmt.executeQuery(sql); Step 4. Compare the first column o1 size returned from ResultSet object. rs.next(); assertEquals(50000, (URLDecoder.decode(rs.getObject(1).toString(), "UTF-8")).length()); At the Step 4, it will throw an exception as below, java.lang.NegativeArrayizeException at org.trafodion.jdbc.t2.SQLMXResultSet.fetchN(Native Method) at org.trafodion.jdbc.t2.SQLMXResultSet.next(SQLMXResultSet.java:2478) ... Defect Description: There is a table that columns charset as utf8, when expect to return 200K column size, it is failed to call ResultSet.next() function. Test Environment: sqws139.houston.hp.com, T2 driver. Test Steps: Step 1. Create a table as below, sql = "create table tblcolumnsize200kWithUTF8(c1 char(50000) character set UTF8 collate default null, c2 char(50000) character set UTF8 collate default null)"; iRet = stmt.executeUpdate(sql); Step 2. Insert 20K utf8 column size into the above table. Step 3. Execute query as below, sql = "select left(rtrim(t.c1), 50000) as o1 from tblcolumnsize200kWithUTF8 as t"; rs = stmt.executeQuery(sql); Step 4. Compare the first column o1 size returned from ResultSet object. rs.next(); assertEquals(50000, (URLDecoder.decode(rs.getObject(1).toString(), "UTF-8")).length()); At the Step 4, it will throw an exception as below, java.lang.NegativeArrayizeException                  at org.trafodion.jdbc.t2.SQLMXResultSet.fetchN(Native Method)                  at org.trafodion.jdbc.t2.SQLMXResultSet.next(SQLMXResultSet.java:2478)                  ...
2015-05-14 06:27:39 Yu Bo summary Call ResultSet.next() function failed when expect to select 20k utf8 column size from a table Call ResultSet.next() function failed when expect to select 200k utf8 column size from a table
2015-05-15 08:53:52 xiu-zhu.zhang trafodion: assignee xiu-zhu.zhang (xiu-zhu-zhang) Weiqing Xu (wei-qing-xu)
2015-06-11 07:09:39 Weiqing Xu trafodion: status In Progress Fix Committed