comparison mod_storage_gdbm/mod_storage_gdbm.lua @ 1604:53052a610c67

mod_storage_gdbm: Fix comparison of 'end'
author Kim Alvefur <zash@zash.se>
date Sun, 08 Feb 2015 17:05:21 +0100
parents 1fbec16996f5
children 5e4b37b9cde1
comparison
equal deleted inserted replaced
1603:1fbec16996f5 1604:53052a610c67
93 local item, value; 93 local item, value;
94 for i = s, e, d do 94 for i = s, e, d do
95 item = meta[i]; 95 item = meta[i];
96 if (not query.with or item.with == query.with) 96 if (not query.with or item.with == query.with)
97 and (not query.start or item.when >= query.start) 97 and (not query.start or item.when >= query.start)
98 and (not query["end"] or item.when >= query["end"]) then 98 and (not query["end"] or item.when <= query["end"]) then
99 s = i + d; c = c + 1; 99 s = i + d; c = c + 1;
100 value = self:get(item.key); 100 value = self:get(item.key);
101 return item.key, (deserialize[item.type] or id)(value), item.when, item.with; 101 return item.key, (deserialize[item.type] or id)(value), item.when, item.with;
102 end 102 end
103 end 103 end