Commit Graph

27 Commits

Author SHA1 Message Date
mattn
fadf4a7574 Merge pull request #1434 from mattn/fix-vtable-nil-checks
Reject nil module and nil BestIndex result
2026-07-29 04:46:28 +00:00
mattn
273021256a Merge pull request #1433 from mattn/fix-vtable-bestindex-usable
Ignore Used for constraints SQLite marked not usable
2026-07-29 04:34:45 +00:00
mattn
eba871f121 Merge pull request #1432 from mattn/fix-vtable-update-rowid
Identify updated row by argv 0 in goVUpdate
2026-07-29 04:24:56 +00:00
Yasuhiro Matsumoto
726af39fbd Reject rowid-changing updates on virtual tables 2026-07-29 13:14:19 +09:00
mattn
a39da35854 Merge pull request #1431 from mattn/fix-vtable-filter-null
Translate SQL NULL filter arguments to nil like goVUpdate
2026-07-29 03:14:58 +00:00
mattn
b3302528c6 Merge pull request #1430 from mattn/fix-vtable-estimated-cost
Do not clobber SQLite's default cost estimates in BestIndex
2026-07-29 02:19:31 +00:00
Yasuhiro Matsumoto
2897b83d18 Clamp fractional row estimates to at least 1 2026-07-29 11:10:45 +09:00
Yasuhiro Matsumoto
cad8b71943 Reject nil module and nil BestIndex result 2026-07-29 09:04:45 +09:00
Yasuhiro Matsumoto
518016c844 Ignore Used for constraints SQLite marked not usable 2026-07-29 09:02:34 +09:00
Yasuhiro Matsumoto
1a1bc9e778 Identify updated row by argv 0 in goVUpdate 2026-07-29 09:01:10 +09:00
Yasuhiro Matsumoto
c2ecdac1df Translate SQL NULL filter arguments to nil like goVUpdate 2026-07-29 08:59:49 +09:00
Yasuhiro Matsumoto
1f0b756378 Do not clobber SQLite's default cost estimates in BestIndex 2026-07-29 08:57:25 +09:00
Yasuhiro Matsumoto
7d534a0306 Release vtable and cursor handles when SQLite destroys them 2026-07-29 01:58:50 +09:00
Yasuhiro Matsumoto
5ce75d7cbd Return error from vtable cursor open instead of ignoring it 2026-07-13 10:15:49 +09:00
Jakob Borg
fed9970582 modernise reflect.SliceHeader to unsafe.Slice
Signed-off-by: Jakob Borg <jakob@kastelo.net>
2026-05-19 13:57:13 +02:00
theimpostor
84bdc43851 add missing index constraint op types 2026-03-18 17:40:17 -05:00
Yasuhiro Matsumoto
1f0dc0a0ef go fmt ./... 2024-01-25 22:55:22 +09:00
Yasuhiro Matsumoto
c91bca4fb4 update go version to 1.19 2024-01-25 22:55:22 +09:00
Hanzhen Yi
2b131e01c1 change angle bracket import to quotes (#868) 2021-10-26 00:23:19 +09:00
Patrick DeVivo
2b780b4a7f fix idxStr freeing issue (#898)
uses snippet suggested by @rittneje https://github.com/mattn/go-sqlite3/issues/897#issuecomment-752162125
2021-10-26 00:13:24 +09:00
Patrick DeVivo
92d23714a8 add support for defining an "eponymous only" virtual table (#885)
* add support for defining an "eponymous only" virtual table

As suggested here: https://github.com/mattn/go-sqlite3/issues/846#issuecomment-736206222

* add an example of an eponymous only vtab module

* add a test case for an eponymous only vtab module
2020-12-26 23:11:17 +09:00
mattn
6a8b30186d Use go-pointer instead of uintptr hacks. (#814)
* Use go-pointer instead of uintptr hacks.

Fixes #791

* Do same of go-pointer

* Drop older verion of Go

* Fix build

* Fix build
2020-08-26 09:36:43 +09:00
rittneje
59d4145b7f treat vtable C arrays as Go slices rather than giant Go arrays (#840) 2020-08-26 03:22:54 +09:00
Yasuhiro Matsumoto
fc06e55305 Add build constraints for non cgo 2019-11-18 18:03:31 +09:00
Gert-Jan Timmer
420bfbcac8 fmt update
Fix: Placed all +build tags in the same location
Fix: Split CFLAGS, LDFLAGS into seperate lines for readability and lookup
Fix: Placed empty line between copyright comments and build tags for readability
Fix: Placed OS specfic cgo flags at the end if the cgo sections contains multiple lines.
2018-05-27 00:05:45 +02:00
Gert-Jan Timmer
765f6e93d2 Update prefix of build tags to sqlite_
* Keep current build tags backwards compliant
* Added alias for `sqlite_json1` => `sqlite_json`
2018-05-24 11:55:02 +02:00
Gert-Jan Timmer
ba97a23a7f Rename
Renamed files containing current features.
2018-05-23 22:20:06 +02:00