util.sql: remove unused one-letter loop variables [luacheck]

This commit is contained in:
Anton Shestakov 2016-07-23 18:22:05 +08:00
parent 5585dc288f
commit 8e2e80c3f3

View file

@ -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