diff --git a/examples/lua/test.lua b/examples/lua/test.lua index a858dbb6ad7a100060715b2c3347b60b1e07a617..5572132877654e8d5692d9dbb242284add79870c 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