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

Inaccurate conditions of judgment cause low efficiency

Add voteStop watching
    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

            Dates

              Created:
              Updated:

              Slack

                Issue deployment