From 2af577380ef2e40bcad0044ba90dd1b17fa1e604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 5 Oct 2023 21:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=A5=E8=AF=A2=E7=BC=93?= =?UTF-8?q?=E5=AD=98Hash=E5=88=97=E8=A1=A8SQL=E5=8F=82=E6=95=B0=E5=8D=A0?= =?UTF-8?q?=E4=BD=8D=E7=AC=A6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/caches/list_file_db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/caches/list_file_db.go b/internal/caches/list_file_db.go index c2a599c..4bca4b7 100644 --- a/internal/caches/list_file_db.go +++ b/internal/caches/list_file_db.go @@ -161,7 +161,7 @@ func (this *FileListDB) Init() error { return err } - this.selectHashListStmt, err = this.readDB.Prepare(`SELECT "id", "hash" FROM "` + this.itemsTableName + `" WHERE id>:id ORDER BY id ASC LIMIT 2000`) + this.selectHashListStmt, err = this.readDB.Prepare(`SELECT "id", "hash" FROM "` + this.itemsTableName + `" WHERE id>? ORDER BY id ASC LIMIT 2000`) if err != nil { return err }