pInfo->q=calloc(1,pSchema->bytes+TSDB_NCHAR_SIZE);// to make sure tonchar does not cause invalid write, since the '\0' needs at least sizeof(wchar_t) space.
uint32_tsize=pCond->nLen*TSDB_NCHAR_SIZE;
if(size<(uint32_t)pSchema->bytes){
size=pSchema->bytes;
}
pInfo->q=calloc(1,size+TSDB_NCHAR_SIZE);// to make sure tonchar does not cause invalid write, since the '\0' needs at least sizeof(wchar_t) space.