You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Alice Chen (JIRA)" <ji...@apache.org> on 2015/07/22 20:20:29 UTC

[jira] [Created] (TRAFODION-1231) LP Bug: 1452932 - Last 2 or 1 character got trucated when insert 200K or 199999 long string to a SQL table's varchar column

Alice Chen created TRAFODION-1231:
-------------------------------------

             Summary: LP Bug: 1452932 - Last 2 or 1 character got trucated when insert 200K or 199999 long string to a SQL table's varchar column
                 Key: TRAFODION-1231
                 URL: https://issues.apache.org/jira/browse/TRAFODION-1231
             Project: Apache Trafodion
          Issue Type: Bug
          Components: client-odbc-linux
            Reporter: JiepingZhang
            Assignee: Arvind Narain
            Priority: Critical
             Fix For: 2.0-incubating


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)