Software / code / prosody
Changeset
5903:0e0aab930e10
mod_storage_sql2: Fix backwards comparison of timestamp
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 07 Nov 2013 17:18:20 +0100 |
| parents | 5896:019130907a07 |
| children | 5904:c1bc2c20a80a |
| files | plugins/mod_storage_sql2.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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