aboutsummaryrefslogtreecommitdiffstats
path: root/util/sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-07-23 18:58:58 +0200
committerKim Alvefur <zash@zash.se>2016-07-23 18:58:58 +0200
commit6b59d7d9da7d8ebe92a5f2bf93a76ac98b057241 (patch)
tree5b3d9eec6726161611eafac7f8efdaa3b87d4dff /util/sql.lua
parent96713c8ff024e30feb1ef77b86542600e8873229 (diff)
parent2c6065e198926e5026d51a2b0effe9223dd2cd01 (diff)
downloadprosody-6b59d7d9da7d8ebe92a5f2bf93a76ac98b057241.tar.gz
prosody-6b59d7d9da7d8ebe92a5f2bf93a76ac98b057241.zip
Merge 0.10->trunk
Diffstat (limited to 'util/sql.lua')
-rw-r--r--util/sql.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 6fed1373..eb562eb2 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -49,7 +49,7 @@ end
function table_mt:__tostring()
local s = { 'name="'..self.__table__.name..'"' }
- for i,col in ipairs(self.__table__) do
+ for _, col in ipairs(self.__table__) do
s[#s+1] = tostring(col);
end
return 'Table{ '..t_concat(s, ", ")..' }'
@@ -294,7 +294,7 @@ function engine:_create_table(table)
end
local success,err = self:execute(sql);
if not success then return success,err; end
- for i,v in ipairs(table.__table__) do
+ for _, v in ipairs(table.__table__) do
if is_index(v) then
self:_create_index(v);
end