提交 084cd42e 编写于 作者: J jinhai

MS-198 Add error message when creating exist table


Former-commit-id: bf7a8476646f5324a6bb81653af0a6955a36b687
上级 cbc63817
......@@ -196,7 +196,8 @@ Status DBMetaImpl::CreateTable(TableSchema &table_schema) {
if(TableSchema::TO_DELETE == std::get<0>(table[0])) {
return Status::Error("Table already exists and it is in delete state, please wait a second");
} else {
return Status::OK();//table already exists, no error
// Change from no error to already exist.
return Status::AlreadyExist("Table already exists");
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册