From dd1ffcb5b7f4f0c5035340e0f7b0e6f1a5becf28 Mon Sep 17 00:00:00 2001 From: hongyunyan <649330952@qq.com> Date: Thu, 23 Jun 2022 19:32:29 +0800 Subject: [PATCH] fix clang tidy --- dbms/src/Debug/dbgTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Debug/dbgTools.cpp b/dbms/src/Debug/dbgTools.cpp index 89e912cde18..4fdcb045785 100644 --- a/dbms/src/Debug/dbgTools.cpp +++ b/dbms/src/Debug/dbgTools.cpp @@ -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(); }