Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-1262

LP Bug: 1461677 - Insert small data into large varchar column(>32K) failed with error 8402- string overflow

    XMLWordPrintableJSON

Details

    Description

      Test scenario:

      Create table: CREATE TABLE ODBC32K.LargeColTbl ( C1 varchar (200000) NOT NULL, C2 CHAR(200000));
      insert into ODBC32K.LargeColTbl values ('SaaaaaaaaaaaaaaaaE', 'SbbbbbbbbbbbbbbbbbE');

      ODBC will return error below:
      Inserting data using SQLBindParameter, SQLPrepare, SQLExecute
      Function SQLExecute returned SQL_ERROR
      Diagnostics associated with statmement handle:

      SQL Diag 1
      Native Error: 4294958894
      SQL State: 22001
      Message: [Trafodion ODBC Driver][Trafodion Database] SQL ERROR:*** ERROR[8402] A string overflow occurred during the evaluation of a character expression. [2015-06-03 17:36:41]

      PS: If try from ODBCTest, insert will be successful, seems this only fails when done thru application.

      Attachments

        Activity

          People

            zhangxiang Zhang,Xiang
            zhangjie JiepingZhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: