aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_storage_sql2.lua')
-rw-r--r--plugins/mod_storage_sql2.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua
index 9b365a1e..824ab859 100644
--- a/plugins/mod_storage_sql2.lua
+++ b/plugins/mod_storage_sql2.lua
@@ -239,7 +239,7 @@ local function archive_where(query, args, where)
if query.start then
where[#where] = "`when` BETWEEN ? AND ?" -- is this inclusive?
else
- where[#where+1] = "`when` >= ?"
+ where[#where+1] = "`when` <= ?"
end
end