From ec04ef7b79a87e6d0a5f33ea8a3dac1fb5188e1e Mon Sep 17 00:00:00 2001 From: freemine Date: Wed, 7 Oct 2020 08:08:34 +0800 Subject: [PATCH] delay fetch --- src/connector/odbc/src/todbc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/connector/odbc/src/todbc.c b/src/connector/odbc/src/todbc.c index fc102cbcd2..fdacb2128f 100644 --- a/src/connector/odbc/src/todbc.c +++ b/src/connector/odbc/src/todbc.c @@ -201,11 +201,8 @@ SQLRETURN SQL_API SQLExecDirect(SQLHSTMT StatementHandle, sql->row = NULL; } sql->rs = taos_query(sql->conn->taos, (const char*)StatementText); - if (sql->rs) { - sql->row = taos_fetch_row(sql->rs); - } - return sql->row ? SQL_SUCCESS : SQL_NO_DATA; + return sql->rs ? SQL_SUCCESS : SQL_NO_DATA; } SQLRETURN SQL_API SQLNumResultCols(SQLHSTMT StatementHandle, -- GitLab