Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: SQL 关键字使用大小

Liang Ding23c4d2ab61ed
diff --git a/kernel/sql/stat.go b/kernel/sql/stat.go
index 05bedad7da..8e0f2f45e6 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