ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [08/50] [abbrv] ignite git commit: IGNITE-6099: ODBC: Implemented SQLGetInfo for all info types. This closes #2689.
Date Tue, 26 Sep 2017 10:48:21 GMT
IGNITE-6099: ODBC: Implemented SQLGetInfo for all info types. This closes #2689.


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

Branch: refs/heads/ignite-gg-12822
Commit: 718e365f47bb5c91bc910854a7626b1933c83e59
Parents: be60c08
Author: Igor Sapego <igorsapg@gmail.com>
Authored: Tue Sep 19 16:23:54 2017 +0300
Committer: devozerov <vozerov@gridgain.com>
Committed: Tue Sep 19 16:25:51 2017 +0300

----------------------------------------------------------------------
 .../cpp/odbc-test/src/connection_info_test.cpp  |    3 +-
 .../ignite/odbc/config/connection_info.h        |    8 +-
 .../cpp/odbc/include/ignite/odbc/connection.h   |    3 +
 .../cpp/odbc/src/config/connection_info.cpp     | 2235 ++++++++++++++++--
 modules/platforms/cpp/odbc/src/connection.cpp   |    6 +-
 5 files changed, 1997 insertions(+), 258 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/718e365f/modules/platforms/cpp/odbc-test/src/connection_info_test.cpp
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/odbc-test/src/connection_info_test.cpp b/modules/platforms/cpp/odbc-test/src/connection_info_test.cpp
index c2fe4f8..2119c09 100644
--- a/modules/platforms/cpp/odbc-test/src/connection_info_test.cpp
+++ b/modules/platforms/cpp/odbc-test/src/connection_info_test.cpp
@@ -36,7 +36,8 @@ BOOST_AUTO_TEST_CASE(TestConnectionInfoSupportedInfo)
     char buffer[4096];
     short reslen = 0;
 
-    ConnectionInfo info;
+    Configuration cfg;
+    ConnectionInfo info(cfg);
 
     SqlResult::Type result;
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/718e365f/modules/platforms/cpp/odbc/include/ignite/odbc/config/connection_info.h
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/odbc/include/ignite/odbc/config/connection_info.h b/modules/platforms/cpp/odbc/include/ignite/odbc/config/connection_info.h
index c17d5ec..fb6351a 100644
--- a/modules/platforms/cpp/odbc/include/ignite/odbc/config/connection_info.h
+++ b/modules/platforms/cpp/odbc/include/ignite/odbc/config/connection_info.h
@@ -24,6 +24,7 @@
 
 #include <ignite/common/common.h>
 #include <ignite/odbc/common_types.h>
+#include <ignite/odbc/config/configuration.h>
 
 namespace ignite
 {
@@ -50,8 +51,10 @@ namespace ignite
 
                 /**
                  * Constructor.
+                 *
+                 * @param config Configuration.
                  */
-                ConnectionInfo();
+                ConnectionInfo(const Configuration& config);
 
                 /**
                  * Destructor.
@@ -88,6 +91,9 @@ namespace ignite
 
                 /** Short parameters. */
                 UshortInfoMap shortParams;
+
+                /** Configuration. */
+                const Configuration& config;
             };
         }
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/718e365f/modules/platforms/cpp/odbc/include/ignite/odbc/connection.h
----------------------------------------------------------------------
diff --git a/modules/platforms/cpp/odbc/include/ignite/odbc/connection.h b/modules/platforms/cpp/odbc/include/ignite/odbc/connection.h
index fa80a01..34fed5f 100644
--- a/modules/platforms/cpp/odbc/include/ignite/odbc/connection.h
+++ b/modules/platforms/cpp/odbc/include/ignite/odbc/connection.h
@@ -316,6 +316,9 @@ namespace ignite
 
             /** Configuration. */
             config::Configuration config;
+
+            /** Connection info. */
+            config::ConnectionInfo info;
         };
     }
 }


Mime
View raw message