[
https://issues.apache.org/jira/browse/IGNITE-16359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17483787#comment-17483787
]
Ivan Daschinsky commented on IGNITE-16359:
------------------------------------------
Yep, bug was introduced in IGNITE-12125, fix is straightforward
{code}
Index: modules/platforms/cpp/odbc/src/query/streaming_query.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/modules/platforms/cpp/odbc/src/query/streaming_query.cpp
b/modules/platforms/cpp/odbc/src/query/streaming_query.cpp
--- a/modules/platforms/cpp/odbc/src/query/streaming_query.cpp (revision
7c7ea9bfe4c678a6fde5754bf6ce4c6443cd8104)
+++ b/modules/platforms/cpp/odbc/src/query/streaming_query.cpp (date
1643377511759)
@@ -51,7 +51,9 @@
const meta::ColumnMetaVector* StreamingQuery::GetMeta()
{
- return 0;
+ static meta::ColumnMetaVector empty;
+
+ return ∅
}
SqlResult::Type
StreamingQuery::FetchNextRow(app::ColumnBindingMap&)
{code}
> SET STREAMING ON/OFF not working
> ---------------------------------
>
> Key: IGNITE-16359
> URL: https://issues.apache.org/jira/browse/IGNITE-16359
> Project: Ignite
> Issue Type: Bug
> Components: odbc
> Affects Versions: 2.10, 2.11, 2.12, 2.11.1
> Reporter: Abhay
> Assignee: Ivan Daschinsky
> Priority: Major
> Attachments: check_odbc.py
>
>
> In ODBC set steaming was working till 2.9.1 . In the newer version if we run
> the command we get error
> SQL> set streaming on
> [ISQL]ERROR: Could not SQLNumResultCols
> [ODBC][24581][1643012198.417732][SQLPrepare.c][196]
> Entry:
> Statement = 0x555c08ebc6a0
> SQL = [set streaming on][length = 16]
> [ODBC][24581][1643012198.417825][SQLPrepare.c][377]
> Exit:[SQL_SUCCESS]
> [ODBC][24581][1643012198.417852][SQLExecute.c][187]
> Entry:
> Statement = 0x555c08ebc6a0
> [ODBC][24581][1643012198.418666][SQLExecute.c][357]
> Exit:[SQL_SUCCESS]
> [ODBC][24581][1643012198.418709][SQLNumResultCols.c][156]
> Entry:
> Statement = 0x555c08ebc6a0
> Column Count = 0x7fffedb35566
> [ODBC][24581][1643012198.418743][SQLNumResultCols.c][251]
> Exit:[SQL_ERROR]
> [ODBC][24581][1643012198.418772][SQLError.c][424]
> Entry:
> Statement = 0x555c08ebc6a0
> SQLState = 0x7fffedb35306
> Native = 0x7fffedb35300
> Message Text = 0x7fffedb35310
> Buffer Length = 500
> Text Len Ptr = 0x7fffedb352fe
> [ODBC][24581][1643012198.418801][SQLError.c][474]
> Exit:[SQL_NO_DATA]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)