You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2018/05/10 19:10:14 UTC
[2/3] trafodion git commit: ODBC support match W and A functions
ODBC support match W and A functions
Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/f1ea9568
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/f1ea9568
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/f1ea9568
Branch: refs/heads/master
Commit: f1ea9568b60316bfba73fd5d7ff1f18baff2157e
Parents: 7ae578b
Author: Weixin-Xu <xw...@weixin-1.novalocal>
Authored: Tue May 8 15:03:52 2018 +0800
Committer: Weixin-Xu <xw...@weixin-1.novalocal>
Committed: Tue May 8 15:03:52 2018 +0800
----------------------------------------------------------------------
core/conn/unixodbc/odbc/odbcclient/unixcli/cli/chandle.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafodion/blob/f1ea9568/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/chandle.cpp
----------------------------------------------------------------------
diff --git a/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/chandle.cpp b/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/chandle.cpp
index 4513648..904e979 100644
--- a/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/chandle.cpp
+++ b/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/chandle.cpp
@@ -313,10 +313,11 @@ void CHandle::structExceptionHandling(long exceptionCode)
bool CHandle::setAppType(int value)
{
bool rc = true;
- if(m_ICUConv->m_AppType == APP_TYPE_NONE) //First time
+/* if(m_ICUConv->m_AppType == APP_TYPE_NONE) //First time
m_ICUConv->m_AppType = value;
else if(value != m_ICUConv->m_AppType) //throw an error! We can not mix and match W and A functions!!!
- rc = false;
+ rc = false;*/
+ m_ICUConv->m_AppType = value; // support match W and A functions
return rc;
}