sqlite: re-filtering a virtual-table cursor skips generator cleanup
維護者通常 1 天內回覆
@trivikr 已經在處理了。
開始於 2026年9月22日。
評估
這個 Issue 還沒有評估資料。
描述
Version
main
Platform
N/A
Subsystem
sqlite
What steps will reproduce the bug?
import { DatabaseSync } from 'node:sqlite';
const db = new DatabaseSync(':memory:');
let cleaned = 0;
db.createModule('m', {
columns: [{ name: 'input', type: 'INTEGER', hidden: true }],
*rows(input) {
try { yield [input]; } finally { cleaned++; }
},
});
db.exec('CREATE TABLE t(a); INSERT INTO t VALUES (1), (2)');
db.prepare('SELECT a FROM t WHERE EXISTS(SELECT 1 FROM m(t.a))').all();
console.log(cleaned); // 1, expected 2
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Both rows() calls (for t.a = 1 and t.a = 2) run their finally, so cleaned is 2.
What do you see instead?
cleaned is 1; the first generator is suspended and discarded by the re-filter and its finally never runs.
Additional information
No response
- 主要語言
- JavaScript
- 星號
- 122k
- 分支
- 39k
- 平均合併
- 3 天 21 小時
- 30 天內合併 PR
- 234
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodejs/node 的其他 Issue
-
node:internal/inspector/network_http: `TypeError: Missing dataLength` in event when response uses `setEncoding()`可能已有人在做 @lazerg 於 5 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
[Docs] `process.loadEnvFile()` does not document behaviour when variables already exist可能已有人在做 @Sepandard 於 15 天前認領。 未關閉doc
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
Stream.prototype.forEach will block in first promise in queue before read more chunk可能已有人在做 @mmustafasenoglu 於 16 天前認領。 未關閉doc
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
nodejs 26.8.2 fails to build with clang/LLVM可能已有人在做 @btyagi18 於 2 天前認領。 未關閉build
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
`TextEncoder.encodeInto()` underfills the destination for some non-ASCII text可能已有人在做 @XadillaX 於 29 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
nodejs/node#65994 · 2 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
相似的 Issue
-
Harden bayesian-waves-bg.js: add prefers-reduced-motion, pointer-events guard, and hidden-tab pause未關閉
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 1/5 1 小時以內 新手友好度 90/100
njitacm/njit-acm-website#109 ·
-
type: bug
難度 2/5 1-3 小時 新手友好度 76/100
blamechris/chroxy#8579 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 66/100
modusensus/dsh-mneme#411 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆