IGNITE-2495: Row fetching logic adjusted.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ce997cdd Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ce997cdd Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ce997cdd Branch: refs/heads/ignite-1786 Commit: ce997cdd8bd3cf1ddb04aba3c867a9dc6fc8a973 Parents: cc0c079 Author: isapego <[email protected]> Authored: Fri Jan 29 17:27:47 2016 +0300 Committer: isapego <[email protected]> Committed: Fri Jan 29 17:27:47 2016 +0300 ---------------------------------------------------------------------- modules/platforms/cpp/odbc/src/query/data_query.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/ce997cdd/modules/platforms/cpp/odbc/src/query/data_query.cpp ---------------------------------------------------------------------- diff --git a/modules/platforms/cpp/odbc/src/query/data_query.cpp b/modules/platforms/cpp/odbc/src/query/data_query.cpp index ecc59e2..d2a5b5d 100644 --- a/modules/platforms/cpp/odbc/src/query/data_query.cpp +++ b/modules/platforms/cpp/odbc/src/query/data_query.cpp @@ -70,6 +70,8 @@ namespace ignite if (!cursor->HasData()) return SQL_RESULT_NO_DATA; + cursor->Increment(); + if (cursor->NeedDataUpdate()) { SqlResult result = MakeRequestFetch(); @@ -77,8 +79,6 @@ namespace ignite if (result != SQL_RESULT_SUCCESS) return result; } - else - cursor->Increment(); if (!cursor->HasData()) return SQL_RESULT_NO_DATA;
