Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit d2df032

Browse files
committed
Fix conflicts after f7f56f0
1 parent 8040453 commit d2df032

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/network/postgres_protocol_handler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,11 @@ ProcessResult PostgresProtocolHandler::ExecQueryMessage(
259259

260260
ResultType PostgresProtocolHandler::ExecQueryExplain(
261261
const std::string &query, parser::ExplainStatement &explain_stmt) {
262-
std::string error_message;
263262
std::unique_ptr<parser::SQLStatementList> unnamed_sql_stmt_list(
264263
new parser::SQLStatementList());
265264
unnamed_sql_stmt_list->PassInStatement(std::move(explain_stmt.real_sql_stmt));
266265
auto stmt = traffic_cop_->PrepareStatement(
267-
"explain", query, std::move(unnamed_sql_stmt_list), error_message);
266+
"explain", query, std::move(unnamed_sql_stmt_list));
268267
ResultType status = ResultType::UNKNOWN;
269268
if (stmt != nullptr) {
270269
traffic_cop_->SetStatement(stmt);
@@ -277,7 +276,6 @@ ResultType PostgresProtocolHandler::ExecQueryExplain(
277276
traffic_cop_->SetResult(plan_info);
278277
status = ResultType::SUCCESS;
279278
} else {
280-
traffic_cop_->SetErrorMessage(error_message);
281279
status = ResultType::FAILURE;
282280
}
283281
return status;

0 commit comments

Comments
 (0)