Update luasql_test.lua

result print fixed
This commit is contained in:
IR4T4 2016-08-27 14:38:04 +02:00 committed by GitHub
parent 23f3787c48
commit 7d031eac96

View file

@ -31,7 +31,7 @@ cur = assert (con:execute"SELECT name, email from people")
-- print all rows, the rows will be indexed by field names
row = cur:fetch ({}, "a")
while row do
print(string.format("Name: %s, E-mail: %s", row.name, row.email))
et.G_Print("Name:" .. row.name .. ", E-mail: " .. row.email .."\n")
-- reusing the table of results
row = cur:fetch (row, "a")
end