aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/datacache/plugin_datacache_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index e5ee3e5a8..6f2165433 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -660,10 +660,10 @@ libgnunet_plugin_datacache_sqlite_init (void *cls)
660 "UNION " 660 "UNION "
661 "SELECT * FROM (" 661 "SELECT * FROM ("
662 " SELECT value,expire,path,type,key FROM ds091 " 662 " SELECT value,expire,path,type,key FROM ds091 "
663 " WHERE key>=?1 " 663 " WHERE key<=?1 "
664 " AND expire >= ?2" 664 " AND expire >= ?2"
665 " AND ( (type=?3) or (0 == ?3) )" 665 " AND ( (type=?3) or (0 == ?3) )"
666 " ORDER BY KEY ASC LIMIT ?4)", 666 " ORDER BY KEY DESC LIMIT ?4)",
667 &plugin->get_closest_stmt))) 667 &plugin->get_closest_stmt)))
668 { 668 {
669 LOG_SQLITE (plugin->dbh, 669 LOG_SQLITE (plugin->dbh,