test: use Database in sqlite virtual table test

The sqlite classes were renamed from DatabaseSync to Database.
The file now imports only `Database`, but the "closes the iterator when
a filter is reapplied to the cursor" test landed with a leftover
`new DatabaseSync()` call, which throws a ReferenceError.

Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/66307
Refs: https://github.com/nodejs/node/pull/65988
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
Trivikram Kamat authored and Antoine du Hamel committed 2026-09-29 00:25:10 +02:00
1 parent 0bb98027e5
commit 1d8f9a2bfb
1 file changed
+1 -1
+1 -1
View File
@@ -561,7 +561,7 @@ suite('DatabaseSync.prototype.createModule()', () => {
test('closes the iterator when a filter is reapplied to the cursor', () => {
// A correlated subquery re-invokes xFilter on the same cursor per outer
// row, abandoning the previous iterator; its `finally` must still run.
const db = new DatabaseSync(':memory:');
const db = new Database(':memory:');
const cleanedUp = [];
db.createModule('refilter_cleanup', {