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

Inaccurate conditions of judgment cause low efficiency

    XMLWordPrintableJSON

Details

    Description

      In ctosqlconv.cpp, the code below :

      if( !(((SQLDataType == SQLTYPECODE_NUMERIC) && (targetPrecision > 18)) ||
      ((SQLDataType == SQLTYPECODE_NUMERIC_UNSIGNED) && (targetPrecision > 9))))

       

      Only when the column is NUMERIC(19+,n), the code will skip.

      It is only used for numeirc but now the other data type such as char will do the same process.

      Attachments

        Activity

          People

            XuWeixin XuWeixin
            XuWeixin XuWeixin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: