Comparison

tools/ejabberdsql2prosody.lua @ 1647:066cd784d97b

ejabberdsql2prosody: Fix access of undefined global
author Waqas Hussain <waqas20@gmail.com>
date Sat, 08 Aug 2009 21:10:25 +0500
parent 1630:cb3d937dd1da
child 1648:b05371e6f058
comparison
equal deleted inserted replaced
1646:21bcc7b8b4d8 1647:066cd784d97b
134 if not file then error("File not found: "..filename); os.exit(0); end 134 if not file then error("File not found: "..filename); os.exit(0); end
135 local t = {}; 135 local t = {};
136 while true do 136 while true do
137 local tname, tuples = readInsert(); 137 local tname, tuples = readInsert();
138 if tname then 138 if tname then
139 if t[name] then 139 if t[tname] then
140 local t_name = t[name]; 140 local t_name = t[tname];
141 for i=1,#tuples do 141 for i=1,#tuples do
142 table.insert(t_name, tuples[i]); 142 table.insert(t_name, tuples[i]);
143 end 143 end
144 else 144 else
145 t[tname] = tuples; 145 t[tname] = tuples;