Repository: trafodion
Updated Branches:
  refs/heads/master 7ee5b250b -> d38d11b42


initialize session name in connection string


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/54913470
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/54913470
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/54913470

Branch: refs/heads/master
Commit: 54913470e5c07efdeaff993eca5b3f4df74fca1c
Parents: 82bfb1a
Author: Weixin-Xu <weixin...@esgyn.cn>
Authored: Fri Jun 29 10:41:35 2018 +0800
Committer: Weixin-Xu <weixin...@esgyn.cn>
Committed: Fri Jun 29 10:41:35 2018 +0800

----------------------------------------------------------------------
 core/conn/unixodbc/odbc/odbcclient/unixcli/cli/cconnect.cpp | 1 +
 win-odbc64/odbcclient/drvr35/cconnect.cpp                   | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/54913470/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/cconnect.cpp
----------------------------------------------------------------------
diff --git a/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/cconnect.cpp 
b/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/cconnect.cpp
index 9ded3e6..9db3fae 100644
--- a/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/cconnect.cpp
+++ b/core/conn/unixodbc/odbc/odbcclient/unixcli/cli/cconnect.cpp
@@ -815,6 +815,7 @@ SQLRETURN CConnect::Connect(SQLCHAR *ServerName,
        // populate the inContext
        inContext.location[0] = '\0';
        inContext.userRole[0] = '\0';
+    inContext.sessionName[0] = '\0';
 
        // we need to keep the following in UTF8 internally
        // m_DSValue.m_DSSchema, m_DSValue.m_DSServerDSName, m_DSValue.m_DSName

http://git-wip-us.apache.org/repos/asf/trafodion/blob/54913470/win-odbc64/odbcclient/drvr35/cconnect.cpp
----------------------------------------------------------------------
diff --git a/win-odbc64/odbcclient/drvr35/cconnect.cpp 
b/win-odbc64/odbcclient/drvr35/cconnect.cpp
index 32102c9..b061872 100644
--- a/win-odbc64/odbcclient/drvr35/cconnect.cpp
+++ b/win-odbc64/odbcclient/drvr35/cconnect.cpp
@@ -611,6 +611,7 @@ SQLRETURN CConnect::Connect(SQLCHAR *ServerName,
        // populate the inContext
        inContext.location[0] = '\0';
        inContext.userRole[0] = '\0';
+    inContext.sessionName[0] = '\0';
 
        if (m_DSValue.m_DSServerDSName[0] != 0)
                strcpy(inContext.datasource, m_DSValue.m_DSServerDSName);

Reply via email to