Diff

plugins/mod_storage_sql2.lua @ 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
parent 5894:9e47ece9457c
child 5913:6865eecaf5a5
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