isapego commented on code in PR #3079:
URL: https://github.com/apache/ignite-3/pull/3079#discussion_r1462977853


##########
modules/platforms/cpp/ignite/odbc/query/data_query.cpp:
##########
@@ -454,16 +441,29 @@ sql_result data_query::process_conversion_result(
     return sql_result::AI_ERROR;
 }
 
-void data_query::set_resultset_meta(const column_meta_vector &value) {
-    m_result_meta.assign(value.begin(), value.end());
+void data_query::set_resultset_meta(column_meta_vector value) {
+    m_result_meta = std::move(value);
     m_result_meta_available = true;
 
     for (size_t i = 0; i < m_result_meta.size(); ++i) {
         column_meta &meta = m_result_meta.at(i);
-        LOG_MSG("\n[" << i << "] SchemaName:     " << meta.get_schema_name() 
<< "\n[" << i << "] TypeName:       "
-                      << meta.get_table_name() << "\n[" << i << "] ColumnName: 
    " << meta.get_column_name() << "\n["
-                      << i << "] ColumnType:     " << 
static_cast<int32_t>(meta.get_data_type()));
+        LOG_MSG("[" << i << "] SchemaName: " << meta.get_schema_name());
+        LOG_MSG("[" << i << "] TableName:  " << meta.get_table_name());
+        LOG_MSG("[" << i << "] ColumnName: " << meta.get_column_name());
+        LOG_MSG("[" << i << "] ColumnType: " << 
static_cast<int32_t>(meta.get_data_type()));

Review Comment:
   Logging in ODBC only enabled in debug builds, it's removed altogether in 
release.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to