fix escaped tsma name

This commit is contained in:
wangjiaming0909 2024-04-03 09:32:50 +08:00
parent de1c28d623
commit 9cc33b1296
2 changed files with 3 additions and 2 deletions

View File

@ -246,7 +246,8 @@ static bool checkComment(SAstCreateContext* pCxt, const SToken* pCommentToken, b
return TSDB_CODE_SUCCESS == pCxt->errCode;
}
static bool checkTsmaName(SAstCreateContext* pCxt, const SToken* pTsmaToken) {
static bool checkTsmaName(SAstCreateContext* pCxt, SToken* pTsmaToken) {
trimEscape(pTsmaToken);
if (NULL == pTsmaToken) {
pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR;
} else if (pTsmaToken->n >= TSDB_TABLE_NAME_LEN - strlen(TSMA_RES_STB_POSTFIX)) {

View File

@ -9,7 +9,7 @@ from util.dnodes import *
from util.common import *
# from tmqCommon import *
ROUND = 2000
ROUND = 1000
class TSMA:
def __init__(self):