t2 - ucs2 char data is not returned correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
High
|
Zbigniew Omanski |
Bug Description
T2 driver inserts ucs2 char data correctly, but select is not ok. sqlci returns it correctly.
Output from t2 test (shows up as chinese(?) on linux):
[trafodion@n013 basict2]$ java -Dprop=t2prop testucs2
Connecting to database...
Table created
Data inserted
1, \u4d00\
1 rows selected
Done
From sqlci:
>>select * from testucs2;
C1 C2
----------- -------
1 Moe
--- 1 row(s) selected.
>>
Test code:
public class testucs2
{
public static void main(String[] args) throws SQLException, ClassNotFoundEx
{
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
String sql = "create table testucs2 (c1 int not null primary key, c2 char(12) character set ucs2 default null)";
int rowNo = 0;
try
{
conn = DriverManager.
stmt = conn.createStat
rs = stmt.executeQue
rowNo = 0;
while (rs.next())
{
rowNo++;
}
rs.close();
} catch (SQLException e)
{
return;
}
}
}
Changed in trafodion: | |
assignee: | nobody → Zbigniew Omanski (zbigniew-omanski) |
status: | New → Confirmed |
Changed in trafodion: | |
status: | Confirmed → In Progress |
Changed in trafodion: | |
status: | In Progress → Fix Committed |