author | Kim Alvefur <zash@zash.se> |
Sat, 02 Jul 2022 17:30:06 +0200 | |
changeset 12578 | 18d33668c5fa |
parent 12577 | 0f4feaf9ca64 |
child 12579 | 1f6f05a98fcd |
--- a/plugins/mod_storage_sql.lua Sat Jul 02 17:31:14 2022 +0200 +++ b/plugins/mod_storage_sql.lua Sat Jul 02 17:30:06 2022 +0200 @@ -382,8 +382,7 @@ -- 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