IGNITE-3868: ODBC: Fixed connection string parsing. This closes #1051.

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

Branch: refs/heads/ignite-ssl-hotfix
Commit: a12298c0baf19407f3110ba3c4f0aab88b67946d
Parents: a4c63ae
Author: Igor Sapego <isap...@gridgain.com>
Authored: Fri Sep 30 11:00:51 2016 +0300
Committer: vozerov-gridgain <voze...@gridgain.com>
Committed: Fri Sep 30 11:00:51 2016 +0300

----------------------------------------------------------------------
 modules/platforms/cpp/odbc/src/odbc.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/a12298c0/modules/platforms/cpp/odbc/src/odbc.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/odbc/src/odbc.cpp 
b/modules/platforms/cpp/odbc/src/odbc.cpp
index 9df64d3..7416ad2 100644
--- a/modules/platforms/cpp/odbc/src/odbc.cpp
+++ b/modules/platforms/cpp/odbc/src/odbc.cpp
@@ -289,9 +289,7 @@ namespace ignite
         if (!diag.IsSuccessful())
             return diag.GetReturnCode();
 
-        std::string outConnectStr = 
connection->GetConfiguration().ToConnectString();
-
-        size_t reslen = CopyStringToBuffer(outConnectStr,
+        size_t reslen = CopyStringToBuffer(connectStr,
             reinterpret_cast<char*>(outConnectionString),
             static_cast<size_t>(outConnectionStringBufferLen));
 
@@ -753,7 +751,7 @@ namespace ignite
         LOG_MSG("columnSizeRes: %lld\n", columnSizeRes);
         LOG_MSG("decimalDigitsRes: %lld\n", decimalDigitsRes);
         LOG_MSG("nullableRes: %lld\n", nullableRes);
-        LOG_MSG("columnNameBuf: %s\n", columnNameBuf ? columnNameBuf : 
"<null>");
+        LOG_MSG("columnNameBuf: %s\n", columnNameBuf ? (const 
char*)columnNameBuf : "<null>");
         LOG_MSG("columnNameLen: %d\n", columnNameLen ? *columnNameLen : -1);
 
         if (dataType)

Reply via email to