Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8290:1ebe590c8849 | 8294:90576b60f2d0 |
---|---|
413 return iterator(result); | 413 return iterator(result); |
414 end | 414 end |
415 | 415 |
416 function driver:purge(username) | 416 function driver:purge(username) |
417 return engine:transaction(function() | 417 return engine:transaction(function() |
418 local stmt,err = engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username); | 418 engine:delete("DELETE FROM \"prosody\" WHERE \"host\"=? AND \"user\"=?", host, username); |
419 return true, err; | 419 engine:delete("DELETE FROM \"prosodyarchive\" WHERE \"host\"=? AND \"user\"=?", host, username); |
420 end); | 420 end); |
421 end | 421 end |
422 | 422 |
423 --- Initialization | 423 --- Initialization |
424 | 424 |