XuWeixin created TRAFODION-3049:
-----------------------------------

             Summary: Inaccurate conditions of judgment cause low efficiency
                 Key: TRAFODION-3049
                 URL: https://issues.apache.org/jira/browse/TRAFODION-3049
             Project: Apache Trafodion
          Issue Type: Bug
          Components: client-odbc-linux, client-odbc-windows
    Affects Versions: any
            Reporter: XuWeixin
            Assignee: XuWeixin
             Fix For: 2.3


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to