# HG changeset patch # User Kim Alvefur # Date 1383841100 -3600 # Node ID 0e0aab930e10451f2a937ec36cb5b235082357a5 # Parent 019130907a07cd72f6fec0813810d4ce3006fae2 mod_storage_sql2: Fix backwards comparison of timestamp diff -r 019130907a07 -r 0e0aab930e10 plugins/mod_storage_sql2.lua --- a/plugins/mod_storage_sql2.lua Thu Oct 31 20:47:57 2013 +0100 +++ b/plugins/mod_storage_sql2.lua Thu Nov 07 17:18:20 2013 +0100 @@ -239,7 +239,7 @@ if query.start then where[#where] = "`when` BETWEEN ? AND ?" -- is this inclusive? else - where[#where+1] = "`when` >= ?" + where[#where+1] = "`when` <= ?" end end