From 2ff928db59516617a0caa91a4e1a0007aa8f0089 Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Sat, 11 Apr 2020 17:31:55 +0800 Subject: [PATCH] [td-98] fix bug in taos_fetch_block --- src/client/src/tscSql.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index 1eee5d5e7f..41cfb77c5d 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -698,6 +698,7 @@ TAOS_ROW taos_fetch_row(TAOS_RES *res) { } int taos_fetch_block(TAOS_RES *res, TAOS_ROW *rows) { +#if 0 SSqlObj *pSql = (SSqlObj *)res; SSqlCmd *pCmd = &pSql->cmd; SSqlRes *pRes = &pSql->res; @@ -737,6 +738,10 @@ int taos_fetch_block(TAOS_RES *res, TAOS_ROW *rows) { } return nRows; +#endif + + (*rows) = taos_fetch_row(res); + return ((*rows) != NULL)? 1:0; } int taos_select_db(TAOS *taos, const char *db) { -- GitLab