未验证 提交 cc95c763 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #10350 from taosdata/feature/query

[td-255] refactor.
......@@ -431,9 +431,8 @@ bool toAnotherTable(STscObj *pTscObj, char *superName, TAOS_FIELD *fields, int32
SArray *arr = *(SArray**)pIter;
if(arr) {
// get key as tableName
SHashNode *pNode = (SHashNode *)GET_HASH_PNODE(pIter);
char *data = (char *)GET_HASH_NODE_KEY(pNode);
uint32_t len = pNode->keyLen;
char *data = (char *)taosHashGetDataKey(tbHash, pIter);
uint32_t len = taosHashGetDataKeyLen(tbHash, pIter);
char *key = tmalloc(len + 1);
memcpy(key, data, len);
key[len] = 0; // string end '\0'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册