Last 2 or 1 character got trucated when insert 200K or 199999 long string to a SQL table's varchar column

Bug #1452932 reported by Jieping Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Released
High
Arvind Narain

Bug Description

Seems there is a bug in ODBC driver. When insert a 200K long string to the varchar column, the last 2 characters will be truncated and replaced by 2 blanks. Insert of 199999 long string to the varchar column has similar issue, the last character will be truncated and replaced by 1 blank. Insert of any string <=199998 works fine.

To reproduce:
create a table which has varchar column, eg. create table T1(c1 varchar(200000), c2 char(200000));

insert a 200K long string to column c1
select * from c1 --> you will see the last 2 characters are truncated and replaced with 2 blank character

insert a 199999 long string to column c1
select * from c1 --> you will see the last character is truncated and replaced with 1 blank character

tags: added: client-odbc-linux
Changed in trafodion:
assignee: nobody → RuoYu Zuo (ruo-yu-zuo)
Revision history for this message
Arvind Narain (arvind-narain) wrote :
Changed in trafodion:
status: New → Fix Released
assignee: RuoYu Zuo (ruo-yu-zuo) → Arvind Narain (arvind-narain)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.