a8c3eea199
update dependencies
v1.27.0
2023-10-30 12:11:46 +01:00
46bf234809
Merge branch 'master' into 'master'
...
Add capi_linux_ppc64le.go to fix ppc64le build
See merge request cznic/sqlite!62
2023-10-05 15:38:45 +00:00
e1849f3100
Add capi_linux_ppc64le.go to fix ppc64le build
2023-10-05 15:38:45 +00:00
12bc57f91e
Allow registering custom collations
...
Implements `RegisterCollationUtf8` and `MustRegisterCollationUtf8`
Fixes #163
See merge request cznic/sqlite!61
v1.26.0
2023-09-15 12:57:11 +00:00
0bbf6555cb
Allow registering custom collations
2023-09-15 12:57:10 +00:00
57c362d633
Merge branch 'marksum-master-patch-73479' into 'master'
...
Update sqlite.go's docs for Driver.Open()
See merge request cznic/sqlite!59
2023-08-23 12:20:04 +00:00
6aadf960fb
Merge branch 'marksum-master-patch-30007' into 'master'
...
Update CONTRIBUTORS as requested
See merge request cznic/sqlite!60
2023-08-23 12:18:53 +00:00
5f4dd4052c
Update CONTRIBUTORS as requested
2023-08-23 10:27:35 +00:00
f9f836d4dc
Update sqlite.go's docs for Driver.Open()
2023-08-23 07:02:33 +00:00
a16e15fbb4
release v1.25.0
v1.25.0
2023-08-03 21:22:08 +02:00
e304422553
linux/s390x: refix issue #120
2023-08-02 21:08:14 +02:00
bcf2a0e77c
all: enable SQLITE_ENABLE_DBSTAT_VTAB
2023-07-31 22:09:36 +02:00
98ebea227c
linux/amd64: try enabling SQLITE_ENABLE_DBSTAT_VTAB
2023-07-31 09:11:07 +02:00
15f9fdc72a
release v1.24.0
v1.24.0
2023-07-11 11:44:14 +02:00
f9fec76eb8
A+C: add Dan Kortschak
2023-07-08 16:57:49 +09:30
134c4cb6b7
Fix ScanType returned for BLOB
...
Previously ColumnTypeScanType returned the reflect.Type of [][]byte
for BLOB columns, resulting in a failure to scan when the type was
constructed dynamically based on this return.
2023-07-08 16:53:02 +09:30
7b81804e09
add reproducer, closes #153
...
test binary compiled for linux/amd64
=== RUN TestIssue153
=== RUN TestIssue153/SELECT_1_WHERE_false
=== RUN TestIssue153/--_just_a_comment
=== RUN TestIssue153/#00
--- PASS: TestIssue153 (0.00s)
--- PASS: TestIssue153/SELECT_1_WHERE_false (0.00s)
--- PASS: TestIssue153/--_just_a_comment (0.00s)
--- PASS: TestIssue153/#00 (0.00s)
PASS
ok modernc.org/sqlite 0.029s
From the issue:
> This issue might be related to this one: #152 (closed)
Confirmed.
2023-07-06 12:12:11 +02:00
d2e2403abb
(*stmt).query(): do not return (nil, nil), fixes #152
2023-07-05 12:18:51 +02:00
cd98b8c912
update godocs
2023-07-05 11:54:34 +02:00
d80a58a814
add reproducer, updates #152
...
=== RUN TestIssue152
=== RUN TestIssue152/SELECT_1_WHERE_false
=== RUN TestIssue152/--_just_a_comment
all_test.go:3019: sql: no Rows available
--- FAIL: TestIssue152 (0.00s)
--- PASS: TestIssue152/SELECT_1_WHERE_false (0.00s)
--- FAIL: TestIssue152/--_just_a_comment (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5b5c69]
goroutine 9 [running]:
testing.tRunner.func1.2({0xaeff40, 0x13d9870})
/usr/local/go/src/testing/testing.go:1526 +0x24e
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1529 +0x39f
panic({0xaeff40, 0x13d9870})
/usr/local/go/src/runtime/panic.go:884 +0x213
database/sql.(*Rows).close.func1()
/usr/local/go/src/database/sql/sql.go:3287 +0x29
database/sql.withLock({0xf82190, 0xc0001be990}, 0xc0001fbca0)
/usr/local/go/src/database/sql/sql.go:3405 +0x8c
database/sql.(*Rows).close(0xc000133480, {0x0, 0x0})
/usr/local/go/src/database/sql/sql.go:3286 +0x16d
database/sql.(*Rows).Close(0x4f12c6?)
/usr/local/go/src/database/sql/sql.go:3270 +0x1d
runtime.Goexit()
/usr/local/go/src/runtime/panic.go:522 +0x177
testing.(*common).FailNow(0xc000135040)
/usr/local/go/src/testing/testing.go:980 +0x4c
testing.(*common).Fatal(0xc000135040, {0xc0001fbf18?, 0xc00001a0f0?, 0xb34fee?})
/usr/local/go/src/testing/testing.go:1057 +0x58
modernc.org/sqlite.testIssue152(0xc000135040, {0xb34fee, 0x11})
/home/jnml/src/modernc.org/sqlite/all_test.go:3019 +0x1d0
modernc.org/sqlite.TestIssue152.func1(0x0?)
/home/jnml/src/modernc.org/sqlite/all_test.go:2998 +0x25
testing.tRunner(0xc000135040, 0xc0000638a0)
/usr/local/go/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1629 +0x3ea
exit status 2
FAIL modernc.org/sqlite 0.008s
2023-07-05 11:38:16 +02:00
0eadfdd49f
Merge branch 'master' into 'master'
...
Add API to sqlite3_serialize/deserialize and sqlite3_backup_*
See merge request cznic/sqlite!56
2023-07-04 10:53:56 +00:00
ae41c4a62d
Add API to online backup API (sqlite3_backup_*)
2023-07-04 09:17:46 +02:00
84fc97a4b2
Add API to sqlite3_serialize/deserialize
2023-07-04 09:17:46 +02:00
b82b94e968
revert tip to v1.23.1, updates #154
2023-07-01 16:17:25 +02:00
2a8ff5d5e8
SQLite 3.42, 28 errors out of 839686 tests on linux/amd64
2023-06-10 23:01:20 +02:00
91c2fe3015
expose sqlite3_limit, updates #149
v1.23.1
2023-06-08 17:01:32 +02:00
d185950947
Merge branch 'fix-data-race' into 'master'
...
Fix a data race in `lib/mutex.go`
Closes #148
See merge request cznic/sqlite!55
v1.23.0
2023-06-02 13:32:56 +00:00
129378c6d1
Fix a data race in lib/mutex.go
...
Closes #148 .
2023-06-02 14:29:30 +04:00
d7a10c89b0
document v1.23.0 release.2
2023-06-01 11:18:23 +02:00
42cd8f9246
document v1.23.0 release
2023-06-01 11:15:39 +02:00
1a90dd084e
remove tests for closed #142
2023-06-01 11:14:59 +02:00
ab37853542
Merge branch 'support-aggregate-functions' into 'master'
...
Allow registering aggregate functions
See merge request cznic/sqlite!54
2023-05-31 10:15:15 +00:00
b5a7962754
Use static callbacks for user-defined functions
...
This ensures that they cannot be GCed.
See https://gitlab.com/cznic/sqlite/-/merge_requests/54#note_1396299066
for more details.
2023-05-30 21:01:32 +01:00
4a676e6e9d
Allow registering aggregate and window functions
...
This allows registering custom aggregate and window functions (which
provide Step, Inverse, Value, and Final callbacks). It uses basically
the same interface as the zombiezen.com/go/sqlite package, which already
handles some trickier cases around multiple or concurrent invocations of
the same function.
2023-05-30 20:58:07 +01:00
dc681c2e0d
documentation: add speedtest1 Go/C comparative results
2023-05-09 12:14:33 +02:00
8cf45a57be
tweak constants, updates #142
2023-05-08 20:02:28 +02:00
e01fa04a2b
Use FunctionImpl to represent user-defined functions
...
This is basically the same as the one from zombiezen.com/go/sqlite, but
only supports scalar functions for now.
2023-05-07 17:57:35 +01:00
f068b0c07b
revert 701ac1e
, enlarge retry delay
2023-05-07 12:11:05 +02:00
701ac1e1a8
TestIssue142: add pragma busy timeout
2023-05-06 21:32:48 +02:00
86167f4955
TestIssue142: add SQLITE_BUSY recovery, updates #142
2023-05-05 13:30:14 +02:00
5cbe418de3
add reproduction code, updates #142
...
Does not fail for 1000 cases without -race, does fail with -race.
jnml@3900x:~/src/modernc.org/sqlite$ go test -v -timeout 24h -run TestIssue142 -race |& tee log-test-issue142
test binary compiled for linux/amd64
=== RUN TestIssue142
all_test.go:3406: 0
all_test.go:3406: 1
all_test.go:3406: 2
all_test.go:3406: 3
all_test.go:3406: 4
all_test.go:3521: database is locked (5) (SQLITE_BUSY)
--- FAIL: TestIssue142 (0.10s)
FAIL
exit status 1
FAIL modernc.org/sqlite 0.110s
jnml@3900x:~/src/modernc.org/sqlite$
2023-05-02 11:50:22 +02:00
0099444126
add debug facitlity, updates #142
2023-04-30 14:34:58 +02:00
4cc2925331
update dependencies, updates #141
v1.22.1
2023-04-24 17:07:53 +02:00
2a7e293371
support linux/s390x
v1.22.0
2023-04-21 18:28:35 +02:00
e027e08b76
update dependencies
v1.21.2
2023-04-17 14:34:20 +02:00
45b352810d
doc.go: add example how to use tags=libc.dmesg
2023-04-06 11:37:46 +02:00
df33b8d151
upgrade to SQLite 3.41.2
v1.21.1
2023-03-27 16:18:28 +02:00
afd4eec699
upgrade to SQLite 3.41.0
v1.21.0
2023-02-23 14:46:00 +01:00
13895386cf
Merge branch '134-export-index' into 'master'
...
Export Sqlite3_index* structs
Closes #134
See merge request cznic/sqlite!53
2023-02-20 17:08:56 +00:00
94010ac01f
Export Sqlite3_index* structs
2023-02-20 08:11:14 -08:00