# HG changeset patch # User Kim Alvefur # Date 1656775806 -7200 # Node ID 18d33668c5fa3f084dd92b8f400990bc1d535339 # Parent 0f4feaf9ca648b92cbd6a231ea8673cdcbcd0bfc mod_storage_sql: Remove Lua 5.1 compatibility hack Part of #1600 diff -r 0f4feaf9ca64 -r 18d33668c5fa plugins/mod_storage_sql.lua --- 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