From 77355bc935b956f173dc290273f6eda0a1f69360 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 7 Nov 2013 17:18:20 +0100 Subject: mod_storage_sql2: Fix backwards comparison of timestamp --- plugins/mod_storage_sql2.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3