changeset 10929 | 73e95ecec733 |
parent 10797 | 9ce67da45e54 |
child 10997 | b5e7f4d533e2 |
--- a/plugins/mod_storage_sql.lua Thu Jun 11 22:02:54 2020 +0200 +++ b/plugins/mod_storage_sql.lua Fri Jun 12 16:54:38 2020 +0100 @@ -391,7 +391,7 @@ end if query.before then local before_id = nil; - for row in engine:select(id_lookup_sql, query.after, args[1], args[2], args[3]) do + for row in engine:select(id_lookup_sql, query.before, args[1], args[2], args[3]) do before_id = row[1]; end if not before_id then