diff options
author | Kim Alvefur <zash@zash.se> | 2013-11-07 17:18:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-11-07 17:18:20 +0100 |
commit | 999ec7ca77c56260f21908372e4dd1a29815c471 (patch) | |
tree | 04e032d6b6201ed4a99dc3fad6eaff65f80ea25f | |
parent | 8c121fdf945b9bcee916f5e3c14ae6e64b28d7eb (diff) | |
download | prosody-999ec7ca77c56260f21908372e4dd1a29815c471.tar.gz prosody-999ec7ca77c56260f21908372e4dd1a29815c471.zip |
mod_storage_sql2: Fix backwards comparison of timestamp
-rw-r--r-- | plugins/mod_storage_sql2.lua | 2 |
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 |