提交 43233b97 编写于 作者: L Liu Jicong

refactor

上级 271822eb
......@@ -694,8 +694,8 @@ int32_t tqRetrieveDataBlock2(SSDataBlock* pBlock, STqReader* pReader) {
goto FAIL;
}
#endif
char val[65535 + 2];
if (IS_STR_DATA_TYPE(colVal.type)) {
char val[65535 + 2];
memcpy(varDataVal(val), colVal.value.pData, colVal.value.nData);
varDataSetLen(val, colVal.value.nData);
if (colDataAppend(pColData, i, val, !COL_VAL_IS_VALUE(&colVal)) < 0) {
......@@ -733,8 +733,8 @@ int32_t tqRetrieveDataBlock2(SSDataBlock* pBlock, STqReader* pReader) {
sourceIdx++;
continue;
} else if (colVal.cid == pColData->info.colId) {
char val[65535 + 2];
if (IS_STR_DATA_TYPE(colVal.type)) {
char val[65535 + 2];
memcpy(varDataVal(val), colVal.value.pData, colVal.value.nData);
varDataSetLen(val, colVal.value.nData);
if (colDataAppend(pColData, i, val, !COL_VAL_IS_VALUE(&colVal)) < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册