Diff

util/sql.lua @ 7516:f74ff35a4b03

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 23 Jul 2016 18:58:58 +0200
parent 7513:8a6c7c4b15fb
child 8073:7361412a9664
line wrap: on
line diff
--- a/util/sql.lua	Thu Jul 21 12:24:18 2016 +0100
+++ b/util/sql.lua	Sat Jul 23 18:58:58 2016 +0200
@@ -49,7 +49,7 @@
 
 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 @@
 	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