Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justing-bq committed Apr 25, 2023
1 parent b53370e commit e82a1f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions driver/connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -783,8 +783,7 @@ SQLRETURN DBC::connect(DataSource *dsrc, bool failover_enabled)
"this functionlaity", 0);
}
#endif
auto errorMsg = connection_proxy->error();
set_error("HY000", errorMsg, native_error);
set_error("HY000", connection_proxy->error(), native_error);

translate_error((char*)error.sqlstate.c_str(), MYERR_S1000, native_error);

Expand Down
1 change: 0 additions & 1 deletion driver/topology_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,5 @@ std::string TOPOLOGY_SERVICE::get_host_endpoint(const char* node_name) {
if (position != std::string::npos) {
host.replace(position, 1, node_name);
}

return host;
}

0 comments on commit e82a1f6

Please sign in to comment.