提交 7f4be804 编写于 作者: G Ganlin Zhao

[TD-10965]<fix>:schemaless: some record can't write into TDengine by schemaless

上级 01bfeb05
......@@ -6071,7 +6071,8 @@ int32_t setAlterTableInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
bool dbIncluded = false;
SStrToken tmpToken = pAlterSQL->name;
char tmpTokenBuf[pAlterSQL->name.n];
const int32_t bufLen = pAlterSQL->name.n;
char tmpTokenBuf[bufLen];
tmpToken.z = tmpTokenBuf;
memcpy(tmpTokenBuf, pAlterSQL->name.z, pAlterSQL->name.n);
if (tscValidateName(&tmpToken, true, &dbIncluded) != TSDB_CODE_SUCCESS) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册