diff options
| -rw-r--r-- | weblog-model.lua | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/weblog-model.lua b/weblog-model.lua index a69f417..f5f339c 100644 --- a/weblog-model.lua +++ b/weblog-model.lua @@ -876,6 +876,7 @@ local function importlogfile(source, cookiesfile, file, parselog_func, importlog  					pcall(function() con:execute("ROLLBACK") end)  				else  					assert(con:execute("ROLLBACK TO before_line")) +					con:execute("COMMIT")  				end  				pcall(function() logme("Exception on line:"..line) end)  				if err2 then @@ -883,6 +884,8 @@ local function importlogfile(source, cookiesfile, file, parselog_func, importlog  				end  				if (config.stoponerror == "true") then  					assert(res2, "Import halted on exception") +				else +					con:execute("START TRANSACTION")  				end  			end  		end  | 
