fix issue
This commit is contained in:
parent
f5626d45bc
commit
417938d2b2
|
@ -2032,8 +2032,7 @@ static EDealRes getDBNameFromConditionWalker(SNode* pNode, void* pContext) {
|
||||||
|
|
||||||
SValueNode* node = (SValueNode*)pNode;
|
SValueNode* node = (SValueNode*)pNode;
|
||||||
char* dbName = nodesGetValueFromNode(node);
|
char* dbName = nodesGetValueFromNode(node);
|
||||||
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName));
|
tstrncpy((char*)pContext, varDataVal(dbName), varDataLen(dbName) + 1);
|
||||||
*((char*)pContext + varDataLen(dbName)) = 0;
|
|
||||||
return DEAL_RES_END; // stop walk
|
return DEAL_RES_END; // stop walk
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue