From e3debf4315f4165ef3c9ecddc402f2060a3ab18b Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Mon, 29 Nov 2021 11:48:34 -0500 Subject: [PATCH] Count capitalization --- server/cache_sqlite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/cache_sqlite.go b/server/cache_sqlite.go index 08dcf3b..6ba4bbc 100644 --- a/server/cache_sqlite.go +++ b/server/cache_sqlite.go @@ -34,7 +34,7 @@ const ( ORDER BY time ASC ` selectMessagesCountQuery = `SELECT COUNT(*) FROM messages` - selectMessageCountForTopicQuery = `SELECT count(*) FROM messages WHERE topic = ?` + selectMessageCountForTopicQuery = `SELECT COUNT(*) FROM messages WHERE topic = ?` selectTopicsQuery = `SELECT topic, MAX(time) FROM messages GROUP BY topic` )