Skip to content

Commit 6a1973f

Browse files
committed
SQLite 3.46.1.
1 parent bd141fe commit 6a1973f

File tree

12 files changed

+59
-26
lines changed

12 files changed

+59
-26
lines changed

.github/workflows/cross.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
with: { go-version: stable }
1414

1515
- name: Build
16-
run: .github/workflows/cross.sh
16+
run: .github/workflows/cross.sh

.github/workflows/repro.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ util/vtabutil/parse/download.sh
3131
util/vtabutil/parse/build.sh
3232

3333
# Check diffs
34-
git diff --exit-code
34+
git diff --exit-code

embed/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Embeddable Wasm build of SQLite
22

3-
This folder includes an embeddable Wasm build of SQLite 3.46.0 for use with
3+
This folder includes an embeddable Wasm build of SQLite 3.46.1 for use with
44
[`github.com/ncruces/go-sqlite3`](https://pkg.go.dev/github.com/ncruces/go-sqlite3).
55

66
The following optional features are compiled in:

embed/bcw2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Embeddable Wasm build of SQLite
22

3-
This folder includes an embeddable Wasm build of SQLite 3.46.0, including the experimental
3+
This folder includes an embeddable Wasm build of SQLite 3.46.1, including the experimental
44
[`BEGIN CONCURRENT`](https://sqlite.org/src/doc/begin-concurrent/doc/begin_concurrent.md) and
55
[Wal2](https://www.sqlite.org/cgi/src/doc/wal2/doc/wal2.md) patches.
66

embed/bcw2/bcw2.wasm

377 Bytes
Binary file not shown.

embed/bcw2/bcw2_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
package bcw2_test
1+
package bcw2
22

33
import (
44
"path/filepath"
55
"testing"
66

77
"github.com/ncruces/go-sqlite3/driver"
8-
_ "github.com/ncruces/go-sqlite3/embed/bcw2"
98
"github.com/ncruces/go-sqlite3/vfs"
109
)
1110

@@ -37,4 +36,13 @@ func Test_bcw2(t *testing.T) {
3736
if err != nil {
3837
t.Fatal(err)
3938
}
39+
40+
var version string
41+
err = db.QueryRow(`SELECT sqlite_version()`).Scan(&version)
42+
if err != nil {
43+
t.Fatal(err)
44+
}
45+
if version != "3.46.1" {
46+
t.Error(version)
47+
}
4048
}

embed/init_test.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package embed
2+
3+
import (
4+
"testing"
5+
6+
"github.com/ncruces/go-sqlite3/driver"
7+
_ "github.com/ncruces/go-sqlite3/vfs/memdb"
8+
)
9+
10+
func Test_init(t *testing.T) {
11+
db, err := driver.Open("file:/test.db?vfs=memdb")
12+
if err != nil {
13+
t.Fatal(err)
14+
}
15+
defer db.Close()
16+
17+
var version string
18+
err = db.QueryRow(`SELECT sqlite_version()`).Scan(&version)
19+
if err != nil {
20+
t.Fatal(err)
21+
}
22+
if version != "3.46.1" {
23+
t.Error(version)
24+
}
25+
}

embed/sqlite3.wasm

400 Bytes
Binary file not shown.

sqlite3/column.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ static_assert(offsetof(union sqlite3_data, i) == 0, "Unexpected offset");
4848
static_assert(offsetof(union sqlite3_data, d) == 0, "Unexpected offset");
4949
static_assert(offsetof(union sqlite3_data, ptr) == 0, "Unexpected offset");
5050
static_assert(offsetof(union sqlite3_data, len) == 4, "Unexpected offset");
51-
static_assert(sizeof(union sqlite3_data) == 8, "Unexpected size");
51+
static_assert(sizeof(union sqlite3_data) == 8, "Unexpected size");

sqlite3/download.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
cd -P -- "$(dirname -- "$0")"
55

6-
curl -#OL "https://sqlite.org/2024/sqlite-amalgamation-3460000.zip"
6+
curl -#OL "https://sqlite.org/2024/sqlite-amalgamation-3460100.zip"
77
unzip -d . sqlite-amalgamation-*.zip
88
mv sqlite-amalgamation-*/sqlite3* .
99
rm -rf sqlite-amalgamation-*
@@ -12,24 +12,24 @@ cat *.patch | patch --no-backup-if-mismatch
1212

1313
mkdir -p ext/
1414
cd ext/
15-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/anycollseq.c"
16-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/base64.c"
17-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/decimal.c"
18-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/ieee754.c"
19-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/regexp.c"
20-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/series.c"
21-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/ext/misc/uint.c"
15+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/anycollseq.c"
16+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/base64.c"
17+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/decimal.c"
18+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/ieee754.c"
19+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/regexp.c"
20+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/series.c"
21+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/ext/misc/uint.c"
2222
cd ~-
2323

2424
cd ../vfs/tests/mptest/testdata/
25-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/mptest.c"
26-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/config01.test"
27-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/config02.test"
28-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/crash01.test"
29-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/crash02.subtest"
30-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/mptest/multiwrite01.test"
25+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/mptest.c"
26+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/config01.test"
27+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/config02.test"
28+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/crash01.test"
29+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/crash02.subtest"
30+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/mptest/multiwrite01.test"
3131
cd ~-
3232

3333
cd ../vfs/tests/speedtest1/testdata/
34-
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.0/test/speedtest1.c"
34+
curl -#OL "https://github.com/sqlite/sqlite/raw/version-3.46.1/test/speedtest1.c"
3535
cd ~-

0 commit comments

Comments
 (0)