diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-02 17:30:06 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-07-02 17:30:06 +0200 |
commit | 2ec8fbe7e5f571727a14205a7389f6528112a133 (patch) | |
tree | b2c9472576d5d01e294f0c2a89b0a03db20bbdbb | |
parent | 49a9a1e76a34d67cfa2be24cbb2e2a9db545f969 (diff) | |
download | prosody-2ec8fbe7e5f571727a14205a7389f6528112a133.tar.gz prosody-2ec8fbe7e5f571727a14205a7389f6528112a133.zip |
mod_storage_sql: Remove Lua 5.1 compatibility hack
Part of #1600
-rw-r--r-- | plugins/mod_storage_sql.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 3bfe1739..8749bcc4 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -382,8 +382,7 @@ local function archive_where(query, args, where) -- Set of ids if query.ids then local nids, nargs = #query.ids, #args; - -- COMPAT Lua 5.1: No separator argument to string.rep - where[#where + 1] = "\"key\" IN (" .. string.rep("?,", nids):sub(1,-2) .. ")"; + where[#where + 1] = "\"key\" IN (" .. string.rep("?", nids, ",") .. ")"; for i, id in ipairs(query.ids) do args[nargs+i] = id; end |