From 60c1fc935c4b72bcd6ec4f11e62661b77ad0d1c1 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 19 Apr 2019 01:11:58 +0300 Subject: [PATCH] Fix web page database statistics. GitOrigin-RevId: e0ab106d981d871a9d2f14563cea613253435563 --- td/telegram/TdDb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/TdDb.cpp b/td/telegram/TdDb.cpp index a65edeba1..68f198188 100644 --- a/td/telegram/TdDb.cpp +++ b/td/telegram/TdDb.cpp @@ -509,7 +509,7 @@ Result TdDb::get_stats() { TRY_STATUS(run_query("SELECT 0, SUM(length(data)), COUNT(*) FROM dialogs WHERE 1", "dialogs")); TRY_STATUS(run_kv_query("%", "common")); TRY_STATUS(run_kv_query("%", "files")); - TRY_STATUS(run_kv_query("%wp")); + TRY_STATUS(run_kv_query("wp%")); TRY_STATUS(run_kv_query("wpurl%")); TRY_STATUS(run_kv_query("wpiv%")); TRY_STATUS(run_kv_query("us%"));