Diff

plugins/mod_storage_sql.lua @ 8294:90576b60f2d0

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Thu, 05 Oct 2017 18:06:04 +0200
parent 8146:5c91fb62338e
parent 8293:34814a908557
child 8395:fbb9a1c2120e
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Wed Oct 04 12:10:55 2017 +0200
+++ b/plugins/mod_storage_sql.lua	Thu Oct 05 18:06:04 2017 +0200
@@ -415,8 +415,8 @@
 
 function driver:purge(username)
 	return engine:transaction(function()
-		local stmt,err = engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username);
-		return true, err;
+		engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username);
+		engine:delete("DELETE FROM \"prosodyarchive\" WHERE \"host\"=? AND \"user\"=?", host, username);
 	end);
 end