Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 9537:5fe1b08e6353
mod_storage_sql: Handle Lua 5.3 move of unpack function
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 21 Oct 2018 21:12:38 +0200 |
parent | 9501:8715961bfa13 |
child | 9628:2fcf517b811e |
comparison
equal
deleted
inserted
replaced
9536:4803ab9a5983 | 9537:5fe1b08e6353 |
---|---|
9 | 9 |
10 local is_stanza = require"util.stanza".is_stanza; | 10 local is_stanza = require"util.stanza".is_stanza; |
11 local t_concat = table.concat; | 11 local t_concat = table.concat; |
12 | 12 |
13 local noop = function() end | 13 local noop = function() end |
14 local unpack = unpack | 14 local unpack = table.unpack or unpack; |
15 local function iterator(result) | 15 local function iterator(result) |
16 return function(result_) | 16 return function(result_) |
17 local row = result_(); | 17 local row = result_(); |
18 if row ~= nil then | 18 if row ~= nil then |
19 return unpack(row); | 19 return unpack(row); |