drh
fd5e4186e1
Improved output when errors occur during ".dump" in the CLI.
...
FossilOrigin-Name: c49c3890bb4c993057186fa5294cd8c551f47d27cc4b4e73c96118a30462bb16
2026-09-22 19:39:43 +00:00
drh
5c5c986e92
Fix goofy condition in the previous check-in
...
FossilOrigin-Name: 03e14c500214f182d1bf37127aa0e0eea417115cd76d641c855f4156952da9d5
2026-09-22 19:11:49 +00:00
drh
c907770214
Improved capture and reporting of errors by the CLI.
...
[bugs:/info/2026-09-21T02:55:55Z|Bug 2026-09-21T02:55:55Z]
FossilOrigin-Name: 6698a7e18727b08748eb875c08c93a23afa391d3642e7610a87e86f7528a04bc
2026-09-22 17:12:56 +00:00
dan
6c6d1c71eb
Fix calculation of the virtual table dbstat.pgoffset field for overflow pages. Report [bugs:/info/2026-09-22T01:43:42Z | 2026-09-22T01:43:42Z].
...
FossilOrigin-Name: 4f4ca57309c82d9e2e090cf3accb83d4ee2868de2a7626d7afc30ff4c8351695
2026-09-22 10:30:05 +00:00
stephan
fde3a84ddd
Latest preprocessor for various cleanups and fixes. Duplicate the tester1 concurrency warning in the worker-based copy.
...
FossilOrigin-Name: c9b4695ffae5a3388a49643d6819355851a0fda362cdaf140c59fc934759dcac
2026-09-21 20:18:51 +00:00
dan
5636f0f4a4
Fix potential buffer overreads in demo program ext/fts3/tool/fts3view.c. Bug [bugs:/info/2026-09-21T13:50:52Z | 2026-09-21T13:50:52Z].
...
FossilOrigin-Name: 90891e96c488ce0eca12e00d01231cd011587236d349f09d4fa979f781ccdafe
2026-09-21 17:12:55 +00:00
dan
9fe7e4dd31
Update sessionChangesetFindTable() so that it honors the contract defined in its header comment and always returns non-zero if the table is not found.
...
FossilOrigin-Name: e6fc087f5a302906a79fd111420d2df310c2db88401231349c0ea11987a380af
2026-09-21 15:52:34 +00:00
stephan
3a81fb9829
Teach 'make libtcl' to honor the --disable-rpath configure flag. Addresses [forum:2026-09-21T10:24:56Z|forum post 2026-09-21T10:24:56Z].
...
FossilOrigin-Name: e911d84b391bbb4859098f265ea5e507eb6fe21e55bc509ee23b66015dfc00db
2026-09-21 13:08:59 +00:00
dan
5f8b6a782d
Fix truncation of 64-bit integer values passed to the fts3 snippet() function. Report [bugs:/info/2026-09-21T02:41:49Z | 2026-09-21T02:41:49Z].
...
FossilOrigin-Name: b0919c9687f01240c89171e1607816b603450e5bed37c468860298b2ccc11a81
2026-09-21 11:14:14 +00:00
stephan
c908175cbe
Add new test cases for the sqlite3.oo1.Stmt.get() overloads which take both a client-specified type ID and an array or object target.
...
FossilOrigin-Name: 24bddf2aff01962a35c42422e322c12582ea77e2c7ddd5f8754d12c454ce8a1d
2026-09-21 07:29:41 +00:00
drh
93d6a90fe9
Adjustments to the substr() function so that it can accommodate
...
ridiculous values for the second argument.
[bugs:/info/2026-09-20T18:42:27Z|Bug 2026-09-20T18:42:27Z]
FossilOrigin-Name: aadf42e021fc55d457836c7cda68f3d22dcaae72a7bbc105c3c727b3eb5c4657
2026-09-20 20:17:58 +00:00
dan
5bd0f37f60
Add test cases to sessionchange2.test.
...
FossilOrigin-Name: e90a05f56f594da0af9c8af7aea91492fae5c66f3b16f5a12ca8db13eada5824
2026-09-19 17:20:43 +00:00
drh
9e0959ca03
Fix test cases due to improved error messages from this branch.
...
FossilOrigin-Name: 3a2f7fc4c6f37eb374166db1d352e12dacb694a52fd8aa0cdac61838700b4b6e
2026-09-19 13:35:57 +00:00
drh
b52b635a19
Merge test cases fixes from trunk
...
FossilOrigin-Name: 02b47eb9b7109837d3e60b54943d46c9069da3b9f4cbf0ae272ff1de497fe200
2026-09-19 11:10:12 +00:00
drh
30fbf300af
Fix test cases added by [f847298c8d424071] so that they work on
...
all configurations.
FossilOrigin-Name: 977e0faac735409fd06d61851a30686b471bcfc3f1dcfba2debe2b4a3d42b5e8
2026-09-19 11:07:26 +00:00
drh
ac2685b071
Fix new test cases added by [c77ff6089de242d8] so that they work
...
on all configurations.
FossilOrigin-Name: 78d3370d36fb8872de1ed853f3a479273b54d2cff9fdfe83db963f4da9c7f999
2026-09-19 10:58:12 +00:00
drh
30bc31907d
Update sessionChangesetFindTable() so that it honors the contract defined
...
in its header comment and always returns non-zero if the table is not
found.
FossilOrigin-Name: 72005af24ddebbee80a7bc5f802b2d745f8a99a2cc29a2ea3a37428162626b8f
2026-09-19 09:52:20 +00:00
drh
b8c29c92a5
Ensure that the comments generated by the ".schema" command in the CLI
...
are not terminated early by rogue SQL.
FossilOrigin-Name: e6eef2cb8fff278cfef2b8898e12d641df22c435d70800d0f031ae740cc88b7e
2026-09-19 09:24:10 +00:00
stephan
f20c1cc5c0
When binding blobs in tclsqlite3, use sqlite3_bind_blob64() because Tcl 9 allows byte arrays larger than 32-bits and the size argument being passed there is of type Tcl_Size. Discrepancy caught and patched by Jan Nijtmans.
...
FossilOrigin-Name: edb5545003c95e3e388cc8a708e151dcc140765211ef207fe733c95c2a515048
2026-09-19 08:28:15 +00:00
stephan
ae9c436852
User new, more compare JS syntax in a couple of places. No functional changes.
...
FossilOrigin-Name: 0d747adadf56a0aa3bd5666954a9f7c75c394254dbb938f28ddcd987ffff01b2
2026-09-19 08:13:27 +00:00
drh
c5b1623ec7
Simplification to the 32-bit float rounding routines from the previous
...
check-in. Also fix a test case from that check-in.
FossilOrigin-Name: 78871391d5ea914a02771e9902202bcc4caee344fe67702a7dc3b6ca9b281364
2026-09-19 07:59:20 +00:00
drh
af32e544ea
Fix 32-bit floating point (float) rounding in rtree so that it works
...
correctly for subnormal values and for values near infinity.
[bugs:/info/2026-09-19T00:36:32Z|Bug 2026-09-19T00:36:32Z].
FossilOrigin-Name: 3d5e1013245e1280b1f74fe09f9407f18313270847da5385a2e36c2b8eb56d74
2026-09-19 01:54:07 +00:00
drh
fd6f5492c4
Fix issues in support for STDCALL on 32-bit Windows builds.
...
[bugs:/info/2026-09-15T09:23:20Z|Bug 2026-09-15T09:23:20Z] and
[bugs:/info/2026-09-15T09:24:06Z|Bug 2026-09-15T09:24:06Z].
FossilOrigin-Name: 7e09ee42afab9868540875b4701cfbd55a591f8346358eebc3f54580fc2ec49d
2026-09-18 16:50:49 +00:00
drh
943e6b1ed1
When constructing sqlite3.h from sqlite.h.in using the -useapicall option,
...
make sure to tag all callback arguments with SQLITE_CALLBACK. Also omit
the SQLITE_CALLBACK macro in comments.
FossilOrigin-Name: 5f8621d2f64344f4f0111f1d64cca5a71731cb037bfeea6e2e6f0368166085d1
2026-09-18 16:30:04 +00:00
drh
ea49210a16
In the sqlite3ext.h file, the MSVC compiler is unable to figure out
...
for itself that a varargs function must be CDECL, so we have to give
it a hint.
FossilOrigin-Name: 19f963a3b1f73ce9586895be6f4bb416eac99d31e8054bb5a12ee9251a43952c
2026-09-18 15:52:53 +00:00
drh
cd4e52fe73
Improved support for stdcall on 32-bit windows, for legacy.
...
FossilOrigin-Name: e638307a519c929271682b9d9093e6dbdc90ca9a07d45ca9fc9ee114d6fd02c7
2026-09-18 15:38:29 +00:00
stephan
46c7da50b3
Minor internal API doc update.
...
FossilOrigin-Name: 346c56e02c39858b4364e4c8b8e4c88237e64470066ebb2687ae06d2b0e978b8
2026-09-18 08:00:34 +00:00
stephan
d457639847
Performance improvements in some of the JS sqlite3.oo1 APIs, based on analysis and suggestions from Jure Rotar.
...
FossilOrigin-Name: 8c6c586c3e42dd1d0af4f374b01a660bfc6afb47fd3b34cd7ef16c198ec66d0a
2026-09-18 07:56:22 +00:00
stephan
5a04cfc091
Add a note to ext/wasm/tester1 about running tests in concurrent tabs.
...
FossilOrigin-Name: 8ce64bed3bac4038b2fd96758d4bd92cb26ac515ec50cbfc94ef296e5c6fe558
2026-09-18 07:55:02 +00:00
stephan
619447707a
Portability improvements for Cygwin contributed by Jan Nijtmans.
...
FossilOrigin-Name: 8dc536e845fa59131052db2909f010b4de7d4bd6bf47abfe6653e83acb4b503c
2026-09-17 13:30:54 +00:00
dan
b0d5cbda9c
Fix a problem causing fts5 auxiliary function API methods xRowCount() and xColumnTotalSize() to return inaccurate values after rows had been deleted from a contentless_delete=1 table. Forum post [forum:/info/5e6f15753a | 5e6f15753a].
...
FossilOrigin-Name: 39ca0ac36596d37fd62316beb7c6341812624e6d3efea90d68ae0393f742163b
2026-09-16 13:58:43 +00:00
stephan
6f5c0659c2
Typo fix in JS test code.
...
FossilOrigin-Name: 4630ee80dcb69588ec1c88d049e313b53258e7e23fc0209ac505c92b3bc85c63
2026-09-16 08:31:09 +00:00
stephan
4ebc78674d
Add a JavaScript switch/case break which does not actually change any behavior but has the potential to (A) confuse someone into thinking it's broken or (B) become broken via future code changes. Spotted in [ https://github.com/sqlite/sqlite/pull/37 |a PR in the sqlite github repository].
...
FossilOrigin-Name: a6351d0413572cf92f9d5eaf01e8777001646961cc77dd5823ca26f7a84a60f3
2026-09-15 18:11:22 +00:00
stephan
80bf95ec05
Resolve a 'Tcl_SetIntObj called with shared object' crash in the tcl db copy binding. Reported in the bugs forum on 2026-09-15 but the post was rejected, apparently by the OP, before it was published.
...
FossilOrigin-Name: bcce90fdc1694b6d04bfb8c2bc58af33a0b68b6d4ebb9f993e2168df134d760e
2026-09-15 10:52:46 +00:00
stephan
9073f828a3
Cygwin portability fixes contributed by Jan Nijtmans, including the un-exporting of some non-public-APIs which need to be reviewed closely. One test (delete_db.test) is failing but that specific failure has been a recurring theme in this environment.
...
FossilOrigin-Name: fe484c8dbc4829508616a1db1bd38a8e451409bddcc20b593fbf51a6ab1a1b00
2026-09-15 08:37:47 +00:00
drh
7936c5107f
When looking up a text key in a temporary index, use the fast memcmp-based
...
comparison if the index uses the built-in BINARY collation.
Indexes in the schema already got this fast path because they record BINARY
as a NULL collation pointer.
FossilOrigin-Name: f065790f590f6e46de06cf72ac8613d69cf953146b520443ae1cf01848b3f32c
2026-09-12 11:12:38 +00:00
jeffchen
9173c2f1b6
When looking up a text key in a temporary index, use the fast memcmp-based comparison if the index uses the built-in BINARY collation. Indexes in the schema already got this fast path because they record BINARY as a NULL collation pointer.
...
FossilOrigin-Name: ebb4534bc8c19ba2b960112eadc328b937c11acf5b846bf9e3df53846c6e375b
2026-09-11 22:11:09 +00:00
drh
1eca07ed73
Do not discard INDEXED BY or NOT INDEXED from a parenthesized term
...
of the FROM clause.
[bugs:/info/2026-09-10T20:38:13Z|Bug 2026-09-10T20:38:13Z].
FossilOrigin-Name: e308b0fce47e184860564f0535174017eb7d5d7efc4f86dd1eb8d234f75e4d08
2026-09-10 23:54:06 +00:00
drh
134f69359c
In PRAGMA integrity_check, double the space available for checking that
...
every byte of a page is used only once as a safety margin to deal with
unforeseen kinds of database corruption.
FossilOrigin-Name: 0c173d54b1bab44748f0010ec7aa5bd79891aa9aaea91d2996c6f0d3f859d1a8
2026-09-10 20:04:18 +00:00
drh
6013371a43
The value returned by json_each.root should be SQLITE_TRANSIENT, not
...
SQLITE_STATIC.
FossilOrigin-Name: 1d9bd6c8a2fa81883bf5fce767135645e480c32d78c325c5eb0da07cdd2ec076
2026-09-10 10:20:32 +00:00
drh
220b580fc7
Fix minor issues with the delta_parse() table-valued function in the
...
fossildelta.c extension. Add test cases for the fossildelta.c extension.
[bugs:/info/2026-09-09T10:29:35Z|Bug 2026-09-09T10:29:35Z] and
[bugs:/info/2026-09-09T10:55:54Z|Bug 2026-09-09T10:55:54Z].
FossilOrigin-Name: 737ab94632c7745d3fd1f82894a1c8174db59350a33329660681398dd604c4d0
2026-09-09 13:49:42 +00:00
drh
f3b9f74d81
For "make test" on Windows, the --stop-on-error option is used for
...
testrunner.tcl, which causes processing to do an orderly shutdown if
any individual test module fails.
FossilOrigin-Name: 4021369bc9558fbfcfa83ee4cd6b986734b8c41b6d72bd97064e566ca8189ea8
2026-09-04 14:20:44 +00:00
drh
e137e97af6
Improved orderly-shutdown in testrunner. Windows lets running jobs complete.
...
Unix just invokes exit and lets the OS deal with cleaning up the mess.
FossilOrigin-Name: ce822e8dc137128a6c495600205c6659a9cd2ba6ba188d86567ed97c04b7aeea
2026-09-04 14:02:05 +00:00
drh
55f0206dca
Remove an intentional error used for testing that was accidently left in
...
the previous check-in.
FossilOrigin-Name: 87f9d70d9e3fae2eda2650d9f58fd587c5f7b9cf7f7d13d47ebd11053ce63a25
2026-09-04 13:43:43 +00:00
drh
b5e3cf0655
The testrunner.tcl script is enhanced so that --stop-on-error does not
...
exit immediately, but instead marks all pending tasks as "halt" so
that no new tasks are scheduled, but allows "running" tasks to continue
on to completion, as an immediate halt can cause hung processes on Windows.
Also, in Makefile.msc, the "test" target now includes --stop-on-error.
FossilOrigin-Name: 0fba9b52b41a5fade0d162c947712669653c4619c89a79800017703e978d8a24
2026-09-04 13:37:51 +00:00
drh
b03315b7db
Fix the GetDiskTypeW() call in the previous check-in so that it works
...
on x32.
FossilOrigin-Name: ae1650228de3b5a6f02527a17d5398f12528ad56ffc5f551f19078b34ef5eda9
2026-09-04 12:39:04 +00:00
drh
28fe562328
On Windows, use the GetDriveTypeW() interface to detect network filesystems
...
and always use a single shared file handle for the -shm files on such
filesystems.
FossilOrigin-Name: 52ed3b490a4d03ef5445ed473ebab543720a7176841f9c5baf09668b956be72d
2026-09-03 19:56:36 +00:00
drh
7740d55183
Enhance the WAL checkpoint algorithm to run faster and use less memory
...
if the WAL file is larger than the database file.
FossilOrigin-Name: 630ab4b6bd4497d4d09e3910f8a95908d19b0a0ab0da4bfe9c3f22e613411523
2026-09-03 18:37:25 +00:00
drh
dd986a5c51
Improve the documentation of the WalIterator object and the new pagemap
...
algorithm. Remove one unnecessary conditional.
FossilOrigin-Name: f690f5b1487083fde158a9dcd1f61c67821ed163726e07f1f42585e979b0462d
2026-09-03 18:26:53 +00:00
dan
42c45bd235
Fix a bug in fts5 test code function fts5TestUtf8(). Report [bugs:/info/2026-09-03T14:51:50Z | 2026-09-03T14:51:50Z].
...
FossilOrigin-Name: ac094ec69b9b726985d2fdb82062f098e77c427539cdf5b07ee15dd8427cba66
2026-09-03 16:37:55 +00:00