mirror of
https://github.com/etlegacy/etlegacy-lua-scripts.git
synced 2024-11-22 12:31:20 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue