提交 635ae6fb 编写于 作者: G Ganlin Zhao

[TD-10700]<fix>: fixed tag/column name length 64 issue

上级 be864d57
......@@ -68,9 +68,6 @@ SSqlInfo qSqlParse(const char *pStr) {
sqlInfo.valid = false;
goto abort_parse;
}
case TK_ID:
tscRmEscapeAndTrimToken(&t0);
//fall through
default:
Parse(pParser, t0.type, t0, &sqlInfo);
if (sqlInfo.valid == false) {
......@@ -621,6 +618,9 @@ void tSetDbName(SStrToken *pCpxName, SStrToken *pDb) {
void tSetColumnInfo(TAOS_FIELD *pField, SStrToken *pName, TAOS_FIELD *pType) {
int32_t maxLen = sizeof(pField->name) / sizeof(pField->name[0]);
if (pName->type == TK_ID) {
tscRmEscapeAndTrimToken(pName);
}
// column name is too long, set the it to be invalid.
if ((int32_t) pName->n >= maxLen) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册