Merge pull request #13597 from taosdata/feature/TD-13041
fix:return false in is ture operator if result is null
This commit is contained in:
commit
098be04ab6
|
@ -1131,6 +1131,7 @@ int32_t colInfoDataEnsureCapacity(SColumnInfoData* pColumn, size_t existRows, ui
|
|||
|
||||
if (IS_VAR_DATA_TYPE(pColumn->info.type)) {
|
||||
char* tmp = taosMemoryRealloc(pColumn->varmeta.offset, sizeof(int32_t) * numOfRows);
|
||||
|
||||
if (tmp == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
@ -1156,6 +1157,7 @@ int32_t colInfoDataEnsureCapacity(SColumnInfoData* pColumn, size_t existRows, ui
|
|||
if (tmp == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
memset(tmp + pColumn->info.bytes * existRows, 0, pColumn->info.bytes * (numOfRows - existRows));
|
||||
|
||||
pColumn->pData = tmp;
|
||||
}
|
||||
|
|
|
@ -633,7 +633,8 @@ int32_t vectorConvertImpl(const SScalarParam* pIn, SScalarParam* pOut) {
|
|||
if (IS_VAR_DATA_TYPE(inType)) {
|
||||
return vectorConvertFromVarData(pIn, pOut, inType, outType);
|
||||
}
|
||||
|
||||
|
||||
pOut->numOfRows = pIn->numOfRows;
|
||||
switch (outType) {
|
||||
case TSDB_DATA_TYPE_BOOL: {
|
||||
for (int32_t i = 0; i < pIn->numOfRows; ++i) {
|
||||
|
|
Loading…
Reference in New Issue