Skip to content

Commit

Permalink
Merge pull request #12 from hongyunyan/hongyunyan_fix_5.4
Browse files Browse the repository at this point in the history
fix clang tidy
  • Loading branch information
hongyunyan authored Jun 23, 2022
2 parents f619310 + dd1ffcb commit c3d4fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Debug/dbgTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ TableID getTableID(Context & context, const std::string & database_name, const s
TablePtr table = MockTiDB::instance().getTableByName(database_name, table_name);

if (table->isPartitionTable())
return std::atoi(partition_id.c_str());
return std::strtol(partition_id.c_str(), nullptr, 0);

return table->id();
}
Expand Down

0 comments on commit c3d4fe9

Please sign in to comment.