Software / code / prosody
Comparison
plugins/mod_storage_sql.lua @ 8292:2fc8b83dd736
mod_storage_sql: Remove return values from purge method
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Oct 2017 17:22:42 +0200 |
| parent | 8138:cb605fb60e32 |
| child | 8293:34814a908557 |
comparison
equal
deleted
inserted
replaced
| 8291:fba1ea67f5c0 | 8292:2fc8b83dd736 |
|---|---|
| 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; | |
| 420 end); | 419 end); |
| 421 end | 420 end |
| 422 | 421 |
| 423 --- Initialization | 422 --- Initialization |
| 424 | 423 |