From 02abefa7115d0cad51cb61ec75b34a203b1f6f01 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 11 Jul 2022 17:12:18 +0800 Subject: [PATCH] fix: test.lua (#14765) --- examples/lua/test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/lua/test.lua b/examples/lua/test.lua index a858dbb6ad..5572132877 100644 --- a/examples/lua/test.lua +++ b/examples/lua/test.lua @@ -147,14 +147,14 @@ else end end -res = driver.query(conn,"select count(*) count, avg(degree) as av, max(degree), min(degree) from thermometer where location='beijing' or location='tianjin' group by location, type") +res = driver.query(conn,"select count(*) as cnt, avg(degree) as av, max(degree), min(degree) from thermometer where location='beijing' or location='tianjin' group by location, type") if res.code ~=0 then print("select from super table--- failed:"..res.error) return else print("select from super table--- pass") for i = 1, #(res.item) do - print("res:"..res.item[i].count) + print("res:"..res.item[i].cnt) end end -- GitLab