提交 0e57e872 编写于 作者: B Benguang Zhao

fix: Nonemptiness checking of names of columns and tags

上级 efd2d768
......@@ -8011,7 +8011,9 @@ int32_t validateColumnName(char* name) {
return validateColumnName(token.z);
} else if (token.type == TK_ID) {
stringProcess(name, token.n);
return TSDB_CODE_SUCCESS;
if (strlen(name) == 0) {
return TSDB_CODE_TSC_INVALID_OPERATION;
}
} else {
if (isNumber(&token)) {
return TSDB_CODE_TSC_INVALID_OPERATION;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册