未验证 提交 09af4a54 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #12674 from taosdata/feature/TS-1521

feat(tsdb) :delete only support enterprise 
......@@ -1055,6 +1055,12 @@ int32_t tscValidateSqlInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
char buf[TSDB_TABLE_FNAME_LEN];
SStrToken sTblToken;
sTblToken.z = buf;
// enterprise check
#ifndef TD_ENTERPRISE
const char* msg = "This feature is not supported in the community version. Please use the enterprise version.";
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg);
#endif
// check
if (validateTableName(tbName->z, tbName->n, &sTblToken, &dbIncluded) != TSDB_CODE_SUCCESS) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), STR_INVALID_TABLE_NAME);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册