From cf95e5a7697a726b033335f5e635a7766016b44d Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Tue, 22 Mar 2022 23:33:03 +0800 Subject: [PATCH] [td-13039] update test. --- source/client/test/clientTests.cpp | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/source/client/test/clientTests.cpp b/source/client/test/clientTests.cpp index 1b2c955946..ac092c8f10 100644 --- a/source/client/test/clientTests.cpp +++ b/source/client/test/clientTests.cpp @@ -660,20 +660,12 @@ TEST(testCase, agg_query_tables) { TAOS_RES* pRes = taos_query(pConn, "use abc1"); taos_free_result(pRes); - pRes = taos_query(pConn, "select * from tu"); - -// pRes = taos_query(pConn, "create table tx using st1 tags(111111111111111)"); -// if (taos_errno(pRes) != 0) { -// printf("failed to create table, reason:%s\n", taos_errstr(pRes)); -// } -// taos_free_result(pRes); -// -// pRes = taos_query(pConn, "select count(*) from tu"); -// if (taos_errno(pRes) != 0) { -// printf("failed to select from table, reason:%s\n", taos_errstr(pRes)); -// taos_free_result(pRes); -// ASSERT_TRUE(false); -// } + pRes = taos_query(pConn, "select count(*), sum(k),min(k),max(k) from tu"); + if (taos_errno(pRes) != 0) { + printf("failed to select from table, reason:%s\n", taos_errstr(pRes)); + taos_free_result(pRes); + ASSERT_TRUE(false); + } TAOS_ROW pRow = NULL; TAOS_FIELD* pFields = taos_fetch_fields(pRes);