Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 5896:019130907a07 | 5903:0e0aab930e10 |
|---|---|
| 237 if query["end"] then | 237 if query["end"] then |
| 238 args[#args+1] = query["end"]; | 238 args[#args+1] = query["end"]; |
| 239 if query.start then | 239 if query.start then |
| 240 where[#where] = "`when` BETWEEN ? AND ?" -- is this inclusive? | 240 where[#where] = "`when` BETWEEN ? AND ?" -- is this inclusive? |
| 241 else | 241 else |
| 242 where[#where+1] = "`when` >= ?" | 242 where[#where+1] = "`when` <= ?" |
| 243 end | 243 end |
| 244 end | 244 end |
| 245 | 245 |
| 246 -- Related name | 246 -- Related name |
| 247 if query.with then | 247 if query.with then |