database iter_from fix

This commit is contained in:
Jonathan de Jong
2021-07-12 00:07:10 +02:00
parent caa0cbfe1d
commit 735d7a0815
+2 -2
View File
@@ -334,8 +334,8 @@ impl Tree for SqliteTable {
if backwards { if backwards {
iter_from_thread!( iter_from_thread!(
self, self,
format!( // TODO change to <= on rebase format!(
"SELECT key, value FROM {} WHERE key < ? ORDER BY key DESC", "SELECT key, value FROM {} WHERE key <= ? ORDER BY key DESC",
name name
) )
.as_str(), .as_str(),