提交 b65685df 编写于 作者: G groot

fix typo

上级 50c4f98d
...@@ -1163,7 +1163,7 @@ MySQLMetaImpl::CreatePartition(const std::string& table_id, const std::string& p ...@@ -1163,7 +1163,7 @@ MySQLMetaImpl::CreatePartition(const std::string& table_id, const std::string& p
// not allow create partition under partition // not allow create partition under partition
if (!table_schema.owner_table_.empty()) { if (!table_schema.owner_table_.empty()) {
return Status(DB_ERROR, "Nested partition is not allow"); return Status(DB_ERROR, "Nested partition is not allowed");
} }
// trim side-blank of tag, only compare valid characters // trim side-blank of tag, only compare valid characters
...@@ -1175,7 +1175,7 @@ MySQLMetaImpl::CreatePartition(const std::string& table_id, const std::string& p ...@@ -1175,7 +1175,7 @@ MySQLMetaImpl::CreatePartition(const std::string& table_id, const std::string& p
std::string exist_partition; std::string exist_partition;
GetPartitionName(table_id, valid_tag, exist_partition); GetPartitionName(table_id, valid_tag, exist_partition);
if (!exist_partition.empty()) { if (!exist_partition.empty()) {
return Status(DB_ERROR, "Duplicated partition is not allow"); return Status(DB_ERROR, "Duplicate partition is not allowed");
} }
if (partition_name == "") { if (partition_name == "") {
......
...@@ -758,7 +758,7 @@ SqliteMetaImpl::CreatePartition(const std::string& table_id, const std::string& ...@@ -758,7 +758,7 @@ SqliteMetaImpl::CreatePartition(const std::string& table_id, const std::string&
// not allow create partition under partition // not allow create partition under partition
if(!table_schema.owner_table_.empty()) { if(!table_schema.owner_table_.empty()) {
return Status(DB_ERROR, "Nested partition is not allow"); return Status(DB_ERROR, "Nested partition is not allowed");
} }
// trim side-blank of tag, only compare valid characters // trim side-blank of tag, only compare valid characters
...@@ -770,7 +770,7 @@ SqliteMetaImpl::CreatePartition(const std::string& table_id, const std::string& ...@@ -770,7 +770,7 @@ SqliteMetaImpl::CreatePartition(const std::string& table_id, const std::string&
std::string exist_partition; std::string exist_partition;
GetPartitionName(table_id, valid_tag, exist_partition); GetPartitionName(table_id, valid_tag, exist_partition);
if(!exist_partition.empty()) { if(!exist_partition.empty()) {
return Status(DB_ERROR, "Duplicated partition is not allow"); return Status(DB_ERROR, "Duplicate partition is not allowed");
} }
if (partition_name == "") { if (partition_name == "") {
......
...@@ -409,7 +409,7 @@ TEST_F(RpcHandlerTest, PARTITION_TEST) { ...@@ -409,7 +409,7 @@ TEST_F(RpcHandlerTest, PARTITION_TEST) {
partition_parm.set_partition_name(partition_name); partition_parm.set_partition_name(partition_name);
handler->DropPartition(&context, &partition_parm, &response); handler->DropPartition(&context, &partition_parm, &response);
ASSERT_EQ(response.error_code(), ::grpc::Status::OK.error_code()); ASSERT_NE(response.error_code(), ::grpc::Status::OK.error_code());
} }
TEST_F(RpcHandlerTest, CMD_TEST) { TEST_F(RpcHandlerTest, CMD_TEST) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册