You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "XuWeixin (JIRA)" <ji...@apache.org> on 2018/04/28 07:41:00 UTC
[jira] [Created] (TRAFODION-3049) Inaccurate conditions of judgment
cause low efficiency
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)