T2 server return trunctated column size to T2 client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
High
|
Weiqing Xu |
Bug Description
Defect Description:
There is a table that columns charset as iso88591, when expect to return 20K column size, in fact it returns the length as 3392.
Test Environment:
sqws139.
Test Steps:
Step 1. Create a table as below,
sql = "create table tblcolumnsize20
iRet = stmt.executeUpd
Step 2. Insert 20K column size into the above table.
Step 3. Execute query as below,
sql = "select left(rtrim(t.c1), 200000) as o1 from tblcolumnsize20
rs = stmt.executeQue
Step 4. Compare the first column o1 size returned from ResultSet object.
assertEquals(
At the Step 4, it will throw an exception like 'Exception in thread "main" java.lang.
Changed in trafodion: | |
assignee: | nobody → Yu Bo (byu) |
assignee: | Yu Bo (byu) → nobody |
Changed in trafodion: | |
assignee: | nobody → xiu-zhu.zhang (xiu-zhu-zhang) |
Changed in trafodion: | |
importance: | Undecided → High |
Changed in trafodion: | |
milestone: | none → r2.0 |
Changed in trafodion: | |
status: | New → In Progress |
Changed in trafodion: | |
status: | In Progress → New |
Changed in trafodion: | |
status: | New → In Progress |
Changed in trafodion: | |
assignee: | xiu-zhu.zhang (xiu-zhu-zhang) → Weiqing Xu (wei-qing-xu) |
Please try with multiple columns and also multiple rows.
These are the various tables qa tested with:
create table t1(c1 char(30000));
create table t2(c1 varchar(30000));
create table t3(c1 char(40000));
create table t4(c1 varchar(40000));
create table t5(c1 char(30000) not null);
create table t6(c1 varchar(30000) not null);
create table t7(c1 char(40000) not null);
create table t8(c1 varchar(40000)not null);
create table t9(c1 varchar(200000));
create table t10(c1 varchar(200000) not null);
create table t11(c1 char(40000), c2 varchar(40000));
create table t12(c1 char(40000) not null, c2 varchar(40000) not null);
create table t13(c1 char(200000), c2 varchar(200000));
create table t14(c1 char(200000) not null, c2 varchar(200000) not null);
create table t15(c1 char(200000) not null, c2 varchar(200000));
create table t16(c1 char(200000), c2 varchar(200000) not null);
create table t17(c1 char (30000), c2 varchar(30000));
create table t18(c1 char (30000) not null, c2 varchar(30000) not null);
The junit test file is attached.