Merge branch 'fix/ly_res_main' of https://github.com/taosdata/TDengine into fix/ly_res_main

This commit is contained in:
54liuyao 2024-10-27 15:51:22 +08:00
commit 658503f169
1 changed files with 1 additions and 2 deletions

View File

@ -2032,8 +2032,7 @@ static EDealRes getDBNameFromConditionWalker(SNode* pNode, void* pContext) {
SValueNode* node = (SValueNode*)pNode;
char* dbName = nodesGetValueFromNode(node);
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName));
*((char*)pContext + varDataLen(dbName)) = 0;
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName) + 1);
return DEAL_RES_END; // stop walk
}
default: