Skip to content

Commit

Permalink
fix: --enable-update-limit
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr committed Apr 3, 2024
1 parent 59ed440 commit af6d39e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"]),
);
$(
Expand Down
16 changes: 16 additions & 0 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit af6d39e

Please sign in to comment.