martinzink commented on code in PR #1968:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1968#discussion_r2245460936


##########
extensions/sql/processors/ExecuteSQL.cpp:
##########
@@ -56,7 +56,8 @@ void ExecuteSQL::processOnTrigger(core::ProcessContext& 
context, core::ProcessSe
                       "No incoming FlowFile and the \"" + 
std::string{SQLSelectQuery.name} + "\" processor property is not specified");  
// NOLINT(whitespace/braces)
     }
     logger_->log_debug("Using the contents of the flow file as the SQL 
statement");
-    query = to_string(session.readBuffer(input_flow_file));
+    std::string buffer_str = to_string(session.readBuffer(input_flow_file));
+    query = buffer_str;

Review Comment:
   This was a false positive maybe uninitiziled warning on gcc



-- 
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