mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(chord): keep the workerd runCounted probe row outside the bulk range
This commit is contained in:
parent
8025c414d1
commit
973b74c55f
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,8 @@ describe("Durable Object SQLite driver in workerd", () => {
|
|||
await database.exec("CREATE INDEX probe_path ON probe (path, id)");
|
||||
await database.exec("CREATE INDEX probe_n ON probe (n, id)");
|
||||
for (let i = 0; i < 10; i++) await database.run("INSERT INTO probe VALUES (?, ?, ?)", `k${i}`, `a/${i}`, i);
|
||||
expect(await database.runCounted("INSERT INTO probe VALUES (?, ?, ?)", "x", "a/x", 99)).toBe(1);
|
||||
// Outside the bulk statements' range below.
|
||||
expect(await database.runCounted("INSERT INTO probe VALUES (?, ?, ?)", "x", "b/x", 99)).toBe(1);
|
||||
expect(await database.runCounted("UPDATE probe SET n = 0 WHERE id = ?", "absent")).toBe(0);
|
||||
expect(
|
||||
await database.runCounted("UPDATE probe SET path = 'c/' || substr(path, 3) WHERE path >= 'a/' AND path < 'a0'"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue