diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index 4985783c90303dedc94bde03c49ad83f32876513..9941055df2918a907178b1d05e455c4ae3c418e5 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -3298,7 +3298,8 @@ void tscRetrieveDataRes(void *param, TAOS_RES *tres, int code) { // the param may be null, since it may be done by other query threads. and the asyncOnError may enter in this // function while kill query by a user. if (param == NULL) { - assert(code != TSDB_CODE_SUCCESS); + if(code != TSDB_CODE_SUCCESS) + tscError("tscRetrieveDataRes param is NULL, error code=%d", code); return; }