mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-11-22 20:41:12 +00:00
Update luasql_test.lua
result print fixed
This commit is contained in:
parent
23f3787c48
commit
7d031eac96
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ cur = assert (con:execute"SELECT name, email from people")
|
||||||
-- print all rows, the rows will be indexed by field names
|
-- print all rows, the rows will be indexed by field names
|
||||||
row = cur:fetch ({}, "a")
|
row = cur:fetch ({}, "a")
|
||||||
while row do
|
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
|
-- reusing the table of results
|
||||||
row = cur:fetch (row, "a")
|
row = cur:fetch (row, "a")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue