Software /
code /
prosody
Changeset
8296:e23328adca25
mod_pubsub: Remove workaround for SQL issue (fixed in becb593ed86d)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Oct 2017 01:23:43 +0200 |
parents | 8295:8e82aa858ed2 |
children | 8297:ac5c90230c2c |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Sun Oct 08 00:35:09 2017 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sun Oct 08 01:23:43 2017 +0200 @@ -356,11 +356,7 @@ module:log("error", "Unable to get item: %s", err); return nil, err; end - -- Workaround for buggy SQL drivers which require iterating until we get a nil. - local id, payload, when, publisher; - for a, b, c, d in data do - id, payload, when, publisher = a, b, c, d; - end + local id, payload, when, publisher = data(); module:log("debug", "Get item %s (published at %s by %s) from store %s", id, when, publisher, store); if id == nil then return nil;