database iter_from fix
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user