修复查询缓存Hash列表SQL参数占位符错误

This commit is contained in:
刘祥超
2023-10-05 21:23:47 +08:00
parent 89bfdc478f
commit 2af577380e

View File

@@ -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
}