Skip to content

Commit

Permalink
fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Dec 12, 2023
1 parent c0b6215 commit 35cfbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdk/sql_cluster_router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,7 @@ std::shared_ptr<hybridse::sdk::ResultSet> SQLClusterRouter::ExecuteSQL(
auto is_local = options_parser.IsLocalMode();
if (is_local.ok()) {
*status = {StatusCode::kCmdError, is_local.status().ToString()};
return;
return {};
}
if (!cluster_sdk_->IsClusterMode() || is_local.value()) {
if (cluster_sdk_->IsClusterMode() && !IsOnlineMode()) {
Expand Down

0 comments on commit 35cfbaa

Please sign in to comment.