Skip to content

Commit

Permalink
Update resolve_stage.cpp
Browse files Browse the repository at this point in the history
remove unused variable
  • Loading branch information
hnwyllmm committed Jul 13, 2022
1 parent ee5b3eb commit 3a211af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/observer/sql/parser/resolve_stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ See the Mulan PSL v2 for more details. */
#include "event/session_event.h"
#include "session/session.h"
#include "sql/stmt/stmt.h"
#include "storage/default/default_handler.h"

using namespace common;

Expand Down Expand Up @@ -96,7 +95,6 @@ void ResolveStage::handle_event(StageEvent *event)

SessionEvent *session_event = sql_event->session_event();

DefaultHandler &handler = DefaultHandler::get_default();
Db *db = session_event->session()->get_current_db();
if (nullptr == db) {
LOG_ERROR("cannot current db");
Expand Down

0 comments on commit 3a211af

Please sign in to comment.