From 23c4d2ab61ed20c7ba3a363b1e0d7128692167f1 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 28 Jul 2022 01:15:13 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20SQL=20=E5=85=B3=E9=94=AE=E5=AD=97?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/sql/stat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sql/stat.go b/kernel/sql/stat.go index 05bedad7d..8e0f2f45e 100644 --- a/kernel/sql/stat.go +++ b/kernel/sql/stat.go @@ -94,7 +94,7 @@ func getStat(key string) (ret string) { } func CountAllDoc() (ret int) { - sqlStmt := "SELECT count(*) FROM blocks WHERE type = 'd'" + sqlStmt := "SELECT COUNT(*) FROM blocks WHERE type = 'd'" row := queryRow(sqlStmt) row.Scan(&ret) return