IGNITE-1786: Fix for the PrimaryKeysQuery.

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

Branch: refs/heads/ignite-1786
Commit: 1add4f1a5eabccbade182a75b47e205bf1a41849
Parents: fe5b560
Author: isapego <[email protected]>
Authored: Wed Dec 30 17:21:50 2015 +0300
Committer: isapego <[email protected]>
Committed: Wed Dec 30 17:21:50 2015 +0300

----------------------------------------------------------------------
 .../cpp/odbc/odbc-driver/src/query/primary_keys_query.cpp      | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/1add4f1a/modules/platforms/cpp/odbc/odbc-driver/src/query/primary_keys_query.cpp
----------------------------------------------------------------------
diff --git 
a/modules/platforms/cpp/odbc/odbc-driver/src/query/primary_keys_query.cpp 
b/modules/platforms/cpp/odbc/odbc-driver/src/query/primary_keys_query.cpp
index b352e33..0b9b523 100644
--- a/modules/platforms/cpp/odbc/odbc-driver/src/query/primary_keys_query.cpp
+++ b/modules/platforms/cpp/odbc/odbc-driver/src/query/primary_keys_query.cpp
@@ -96,6 +96,8 @@ namespace ignite
 
                 executed = true;
 
+                cursor = meta.begin();
+
                 return SQL_RESULT_SUCCESS;
             }
 
@@ -113,9 +115,13 @@ namespace ignite
                     return SQL_RESULT_ERROR;
                 }
 
+                LOG_MSG("1\n");
+
                 if (cursor == meta.end())
                     return SQL_RESULT_NO_DATA;
 
+                LOG_MSG("2\n");
+
                 app::ColumnBindingMap::iterator it;
 
                 for (it = columnBindings.begin(); it != columnBindings.end(); 
++it)

Reply via email to