diff --git a/.github/workflows/repro.sh b/.github/workflows/repro.sh index bc9cfbe6..8045aeed 100755 --- a/.github/workflows/repro.sh +++ b/.github/workflows/repro.sh @@ -3,13 +3,13 @@ set -euo pipefail if [[ "$OSTYPE" == "linux"* ]]; then WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz" - BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_120_b/binaryen-version_120_b-x86_64-linux.tar.gz" + BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-x86_64-linux.tar.gz" elif [[ "$OSTYPE" == "darwin"* ]]; then WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-arm64-macos.tar.gz" - BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_120_b/binaryen-version_120_b-arm64-macos.tar.gz" + BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-arm64-macos.tar.gz" elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-windows.tar.gz" - BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_120_b/binaryen-version_120_b-x86_64-windows.tar.gz" + BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-x86_64-windows.tar.gz" fi # Download tools diff --git a/embed/bcw2/bcw2.wasm b/embed/bcw2/bcw2.wasm index e4617f6d..4673098e 100755 Binary files a/embed/bcw2/bcw2.wasm and b/embed/bcw2/bcw2.wasm differ diff --git a/embed/bcw2/bcw2_test.go b/embed/bcw2/bcw2_test.go index 1432ea6b..529cbe46 100644 --- a/embed/bcw2/bcw2_test.go +++ b/embed/bcw2/bcw2_test.go @@ -32,6 +32,11 @@ func Test_bcw2(t *testing.T) { t.Fatal(err) } + _, err = tx.Exec(`DELETE FROM test LIMIT 1`) + if err != nil { + t.Fatal(err) + } + err = tx.Commit() if err != nil { t.Fatal(err) diff --git a/embed/bcw2/build.sh b/embed/bcw2/build.sh index c7a76cd0..977ab10b 100755 --- a/embed/bcw2/build.sh +++ b/embed/bcw2/build.sh @@ -13,15 +13,14 @@ mkdir -p build/ext/ cp "$ROOT"/sqlite3/*.[ch] build/ cp "$ROOT"/sqlite3/*.patch build/ -# https://sqlite.org/src/info/08cfa7e8b3090151 -curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=08cfa7e8 | tar xz +# https://sqlite.org/src/info/ec5d7025cba9f4ac +curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=ec5d7025 | tar xz cd sqlite if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then - MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c + MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT else - sh configure - make sqlite3.c + sh configure --enable-update-limit && make sqlite3.c fi cd ~- @@ -54,6 +53,7 @@ cd ~- -Wl,--import-undefined \ -Wl,--initial-memory=327680 \ -D_HAVE_SQLITE_CONFIG_H \ + -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \ -DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \ $(awk '{print "-Wl,--export="$0}' ../exports.txt) diff --git a/embed/sqlite3.wasm b/embed/sqlite3.wasm index 05a6065f..c312aa62 100755 Binary files a/embed/sqlite3.wasm and b/embed/sqlite3.wasm differ diff --git a/util/sql3util/parse/sql3parse_table.wasm b/util/sql3util/parse/sql3parse_table.wasm index 28eab8d2..4d3357ea 100755 Binary files a/util/sql3util/parse/sql3parse_table.wasm and b/util/sql3util/parse/sql3parse_table.wasm differ diff --git a/vfs/tests/mptest/testdata/mptest.wasm.bz2 b/vfs/tests/mptest/testdata/mptest.wasm.bz2 index 15010e47..117d0939 100644 --- a/vfs/tests/mptest/testdata/mptest.wasm.bz2 +++ b/vfs/tests/mptest/testdata/mptest.wasm.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:32dfb1b76b5cf71cb7610a7cb34ec3d9b68fcea5e54d734e35ae6b649c923c7a -size 477479 +oid sha256:e20f37d94223a88d8f94b3a20177c0fbf53392df2f9c59a28cc7f1f2b5d3de81 +size 477370 diff --git a/vfs/tests/speedtest1/testdata/speedtest1.wasm.bz2 b/vfs/tests/speedtest1/testdata/speedtest1.wasm.bz2 index 691a39f9..5cde8363 100644 --- a/vfs/tests/speedtest1/testdata/speedtest1.wasm.bz2 +++ b/vfs/tests/speedtest1/testdata/speedtest1.wasm.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a0d0b42fe3120de55da71dae0b2aa6ae5b4888593d2129e651590f12555ecdf3 -size 491151 +oid sha256:eebe395695c739a24e9cded13553b97d232eb268a5bc36f10f27cc13945e78cd +size 491003