[
https://issues.apache.org/jira/browse/TRAFODION-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16539662#comment-16539662
]
ASF GitHub Bot commented on TRAFODION-3049:
-------------------------------------------
Github user Weixin-Xu closed the pull request at:
https://github.com/apache/trafodion/pull/1631
> 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
> Priority: Major
> 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)