From 6110e29cd5d1c121081b18cdb35b55f7dc64edf4 Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Tue, 8 Aug 2023 20:07:29 +0200 Subject: [PATCH] Reordering offset. --- lib/BurguillosInfo/DB/Migrations.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BurguillosInfo/DB/Migrations.pm b/lib/BurguillosInfo/DB/Migrations.pm index f2bcb66..5793432 100644 --- a/lib/BurguillosInfo/DB/Migrations.pm +++ b/lib/BurguillosInfo/DB/Migrations.pm @@ -54,8 +54,8 @@ sub _populate_locations ($dbh) { SELECT uuid, remote_address FROM requests WHERE date > NOW() - interval '2 months' -LIMIT 100 -OFSSET $page; +OFSSET $page +LIMIT 100; EOF if (!@$data) { return;