col/add value/bind2: remove assert

This commit is contained in:
Minglei Jin 2024-08-23 14:49:28 +08:00
parent eef3d8fa5e
commit f602bd36c6
1 changed files with 3 additions and 1 deletions

View File

@ -3130,7 +3130,9 @@ int32_t tColDataAddValueByBind2(SColData *pColData, TAOS_STMT2_BIND *pBind, int3
int32_t code = 0;
if (!(pBind->num == 1 && pBind->is_null && *pBind->is_null)) {
ASSERT(pColData->type == pBind->buffer_type);
if (!(pColData->type == pBind->buffer_type)) {
return TSDB_CODE_INVALID_PARA;
}
}
if (IS_VAR_DATA_TYPE(pColData->type)) { // var-length data type