diff --git a/scripts/build.ts b/scripts/build.ts index 785792a..f4137f5 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -96,6 +96,7 @@ if (Deno.build.os === "windows") { $( new URL("../sqlite/configure", import.meta.url), "--enable-releasemode", + "--enable-update-limit", ...(Deno.build.arch === ARCH ? [] : ["--disable-tcl", "--host=arm-linux"]), ); $( diff --git a/test/test.ts b/test/test.ts index 61f8b20..fe46f0f 100644 --- a/test/test.ts +++ b/test/test.ts @@ -324,6 +324,22 @@ Deno.test("sqlite", async (t) => { assertEquals(s, [""]); }); + await t.step("enable update or delete limit", () => { + db.run(` + create table test_limit ( + id integer primary key autoincrement + ) + `); + + db.run(` + delete from test_limit + order by id + limit 1 + `); + + db.run(`drop table test_limit`); + }); + await t.step("create blob table", () => { db.exec(` create table blobs (