]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
2 years agoOnly build in the JNI-side metrics tracking in SQLITE_DEBUG builds.
stephan [Fri, 25 Aug 2023 04:27:17 +0000 (04:27 +0000)] 
Only build in the JNI-side metrics tracking in SQLITE_DEBUG builds.

FossilOrigin-Name: 646e7fc3b5ba81c207f013c9a06781986138379f20e787320a811ba3ed5489dc

2 years agoJavadoc and internal API cleanups.
stephan [Fri, 25 Aug 2023 04:02:33 +0000 (04:02 +0000)] 
Javadoc and internal API cleanups.

FossilOrigin-Name: 10a43cba9bb2c23b5f31b31fcac81be34acec1940cca47d0b8e5a5ccbf1aa8eb

2 years agoReplace all of the JNI XyzHook/Handler classes with snake_cased ones which follow...
stephan [Fri, 25 Aug 2023 02:57:30 +0000 (02:57 +0000)] 
Replace all of the JNI XyzHook/Handler classes with snake_cased ones which follow unified naming conventions to make them easier to apply.

FossilOrigin-Name: 76e62a381249b3b4262b22bdffe7fc2816c820115c9df266956ab8817b127aca

2 years agojavadoc additions.
stephan [Fri, 25 Aug 2023 00:27:28 +0000 (00:27 +0000)] 
javadoc additions.

FossilOrigin-Name: bedf33d403677d243a1505ce549166850ab55671700b143278db5feb84883ab3

2 years agoRe-frame the incongruous SQLite3Jni.uncacheThread() API as sqlite3_java_uncache_thread().
stephan [Thu, 24 Aug 2023 22:28:44 +0000 (22:28 +0000)] 
Re-frame the incongruous SQLite3Jni.uncacheThread() API as sqlite3_java_uncache_thread().

FossilOrigin-Name: 7232b033954fae40df3db43e489e0e5a703c03308f500a1ae36fd9d707632d7f

2 years agoUpdate some outdated JNI docs and account for a function renamed earlier this evening.
stephan [Thu, 24 Aug 2023 21:45:30 +0000 (21:45 +0000)] 
Update some outdated JNI docs and account for a function renamed earlier this evening.

FossilOrigin-Name: 3f684ef5018116f4be46a07779451c8983ac87a5db182477f71ee7bf28287a04

2 years agoDo not pre-allocate sqlite3_aggregate_context() for Java UDFs, as it unduly complicat...
stephan [Thu, 24 Aug 2023 21:31:56 +0000 (21:31 +0000)] 
Do not pre-allocate sqlite3_aggregate_context() for Java UDFs, as it unduly complicates UDF initialization.

FossilOrigin-Name: e8308f0c6ec2d8999c8a2502fb130cb3501ba326f23f71f2cd8d452debae79b5

2 years agoAdd doc/testrunner.md, for documenting the testrunner.tcl script.
dan [Thu, 24 Aug 2023 19:08:50 +0000 (19:08 +0000)] 
Add doc/testrunner.md, for documenting the testrunner.tcl script.

FossilOrigin-Name: 9c69a28401c7273823f2c2b291fd417febeb278afb9ce085a4b944505ca13d23

2 years agoMore code legibility and style improvements in the JNI pieces. Start work on a javado...
stephan [Thu, 24 Aug 2023 18:43:25 +0000 (18:43 +0000)] 
More code legibility and style improvements in the JNI pieces. Start work on a javadoc build.

FossilOrigin-Name: 62b404d62fd62f4d220838b59c9f38a71afa2d4a8c3af0a5c9495fa7020972cf

2 years agoDoc, code style, and legibility cleanups.
stephan [Thu, 24 Aug 2023 17:25:05 +0000 (17:25 +0000)] 
Doc, code style, and legibility cleanups.

FossilOrigin-Name: cf185bcd25629d882a030b8b87048179a120ab1f84aa1d68b279c499dbdf0dba

2 years agoDoc style fixes.
stephan [Thu, 24 Aug 2023 15:42:08 +0000 (15:42 +0000)] 
Doc style fixes.

FossilOrigin-Name: 862f9828e078ae138c3533658c45e4c45155975794e752b9b3a71a693842f37a

2 years agoAdd a new non-goal to the JNI README.md.
stephan [Thu, 24 Aug 2023 15:11:28 +0000 (15:11 +0000)] 
Add a new non-goal to the JNI README.md.

FossilOrigin-Name: 53000cdae9b265752f8d8616679da621a571a6590c6eaeca23cf87a0e13aa4c4

2 years agoMerge the jni-threading branch into trunk, eliminating the JNI API's prior threading...
stephan [Thu, 24 Aug 2023 14:49:29 +0000 (14:49 +0000)] 
Merge the jni-threading branch into trunk, eliminating the JNI API's prior threading limitations.

FossilOrigin-Name: 3739c8aa7080d8e1044ca51ab7b699b50da4d29620b35acfcea2745059b65bac

2 years agoMerge into trunk improvements made to the wasm APIs which were too late for 3.43.
stephan [Thu, 24 Aug 2023 14:43:30 +0000 (14:43 +0000)] 
Merge into trunk improvements made to the wasm APIs which were too late for 3.43.

FossilOrigin-Name: ac9da5c79a4f56d25202d50974e16e2a463d77c99b1907aee2605d5a3e50a565

2 years agoCorrect JNI layer's misuse of an sqlite3-internal error-reporting API (no mutex held... jni-threading
stephan [Thu, 24 Aug 2023 14:31:36 +0000 (14:31 +0000)] 
Correct JNI layer's misuse of an sqlite3-internal error-reporting API (no mutex held). Style cleanups. Eliminate lookups of per-thread state by approximately 85% across the test suite.

FossilOrigin-Name: 1f46ba8d3bc61af771c1e33d09ad25f0da4fc4f915f7a9f6223ebfd99526d81d

2 years agoEnsure that db mutex is held when using sqlite3ErrorWithMessage() to avoid a potentia... wasm-post-343
stephan [Thu, 24 Aug 2023 14:17:30 +0000 (14:17 +0000)] 
Ensure that db mutex is held when using sqlite3ErrorWithMessage() to avoid a potential assertion in debug builds.

FossilOrigin-Name: b8f6a50a4bf9478324f0272d79f2fe6992a49b753e79e39a268c6afb261bb01e

2 years agoVersion 3.43.0 version-3.43.0
drh [Thu, 24 Aug 2023 12:36:59 +0000 (12:36 +0000)] 
Version 3.43.0

FossilOrigin-Name: 0f80b798b3f4b81a7bb4233c58294edd0f1156f36b6ecf5ab8e83631d468778c

2 years agoChange a variable name in fts5FlushOneHash() to avoid shadowing another.
dan [Thu, 24 Aug 2023 12:01:30 +0000 (12:01 +0000)] 
Change a variable name in fts5FlushOneHash() to avoid shadowing another.

FossilOrigin-Name: 3f5bec9a684f6b3d88383617831862fc5595a51ad99ec12430ac6650b704ccbb

2 years agoAdd more JNI docs, tests, and a handful of Java-side overloads.
stephan [Thu, 24 Aug 2023 11:57:51 +0000 (11:57 +0000)] 
Add more JNI docs, tests, and a handful of Java-side overloads.

FossilOrigin-Name: d19a431facbde6a6b960664674753ee85d2c051a76109ce7db0b079c65fbdea0

2 years agoFix typo in the Lemon documentation.
drh [Wed, 23 Aug 2023 18:42:04 +0000 (18:42 +0000)] 
Fix typo in the Lemon documentation.

FossilOrigin-Name: 5daeb318c0472e8c004109caacd8bc977145a2c1bfa6f5bdcf87ab89ea51c30b

2 years agoMore changes to documents for GitHub-style markdown.
drh [Wed, 23 Aug 2023 18:29:41 +0000 (18:29 +0000)] 
More changes to documents for GitHub-style markdown.

FossilOrigin-Name: f20f84ef717cea11f92d6a1ab3b4e0fec5752b7ec98ad5b59e06745e7e25b6ee

2 years agoFix the Markdown in the compile-for-windows.md document so that it works
drh [Wed, 23 Aug 2023 18:26:00 +0000 (18:26 +0000)] 
Fix the Markdown in the compile-for-windows.md document so that it works
on GitHub.  Improved header text in README.md.

FossilOrigin-Name: a25360c020275064711d0aa3eb3cec3d764b5266b86f9728243e501d082306ec

2 years agoJNI cleanups regarding building with certain features disabled.
stephan [Wed, 23 Aug 2023 17:52:51 +0000 (17:52 +0000)] 
JNI cleanups regarding building with certain features disabled.

FossilOrigin-Name: a9e6d5158b8a4a6b8554a5f8f0a35785ee450d42ea877275dc27085e89716c18

2 years agoRemove unnecessary jclass-type struct members.
stephan [Wed, 23 Aug 2023 17:15:48 +0000 (17:15 +0000)] 
Remove unnecessary jclass-type struct members.

FossilOrigin-Name: d67255f7251cc5d1d27d77d4c84ff216e2da71202db989718189a6b4beff1cd0

2 years agoAdd a note to the JNI README explaining why the Java API has callback names like...
stephan [Wed, 23 Aug 2023 13:36:27 +0000 (13:36 +0000)] 
Add a note to the JNI README explaining why the Java API has callback names like xFunc() and xPreUpdate().

FossilOrigin-Name: 415447a310f6a7d06b4aa9ef51f110cf8e2ef9545c69cb5983c367c50fe641d2

2 years agoBind sqlite3_preupdate_hook() and friends to JNI.
stephan [Wed, 23 Aug 2023 13:17:37 +0000 (13:17 +0000)] 
Bind sqlite3_preupdate_hook() and friends to JNI.

FossilOrigin-Name: d0c425b5c1d3aac5ead18a501a3760b4506d68d373cb3be484247042cf2fa8d4

2 years agoMinor adjustments to the wording about pull requests in the README.md file.
drh [Wed, 23 Aug 2023 12:53:35 +0000 (12:53 +0000)] 
Minor adjustments to the wording about pull requests in the README.md file.

FossilOrigin-Name: 6b2d68afd8ecdfe8eb04e3f6c13bea4ba42f7c2f16e6fc4263ffefa29c55c527

2 years agoBind a subset of sqlite3_config() to JNI: threading modes and sqllog.
stephan [Wed, 23 Aug 2023 10:36:12 +0000 (10:36 +0000)] 
Bind a subset of sqlite3_config() to JNI: threading modes and sqllog.

FossilOrigin-Name: fce8ecaf7f2e69a168978e6993e58c452c45f76c39da33f2869c9d947c16cab1

2 years agoThe pageOnDirtyList() assertion is too slow even for debugging builds, for
drh [Wed, 23 Aug 2023 10:20:39 +0000 (10:20 +0000)] 
The pageOnDirtyList() assertion is too slow even for debugging builds, for
some corner cases.  It makes the query appear to hang.  So make it an
EXPENSIVE_ASSERT instead.

FossilOrigin-Name: bb9dcdaf3244c4fc6872850a82b80c469203911e2f6e3a3211e508be39b59fa3

2 years agoNumerous minor cleanups and code style conformance improvements.
stephan [Wed, 23 Aug 2023 09:05:16 +0000 (09:05 +0000)] 
Numerous minor cleanups and code style conformance improvements.

FossilOrigin-Name: 6c92d884920e4ace54913fc60ceef6e43a4351f45a4cb3c4a0ed3d29d544a31b

2 years agoImprove C-side exception handling from Java-side UDF callbacks.
stephan [Wed, 23 Aug 2023 00:17:28 +0000 (00:17 +0000)] 
Improve C-side exception handling from Java-side UDF callbacks.

FossilOrigin-Name: aebbc24afb339ed07b7cd767fbc0d25f3e9c3d9bb5ef3d1c10b04b605c7261bc

2 years agoMinor Tester1.java cleanups.
stephan [Tue, 22 Aug 2023 23:00:44 +0000 (23:00 +0000)] 
Minor Tester1.java cleanups.

FossilOrigin-Name: 70d936953ba55cfed32efe7e3a9d4b71da9a7ffc8818b6540471e0bf311bc688

2 years agoFix Tester1 so that exceptions triggered via threads are not silently ignored. Disabl...
stephan [Tue, 22 Aug 2023 22:13:08 +0000 (22:13 +0000)] 
Fix Tester1 so that exceptions triggered via threads are not silently ignored. Disable auto-extension tests in multi-thread mode because concurrent threads rightfully interfere with that.

FossilOrigin-Name: 56b2a077ace6e6ad5834e1a597b710f212a5b7d5db5b9a27a41f2aa0f6952c55

2 years agoMore work on the JNI multi-threaded test runner.
stephan [Tue, 22 Aug 2023 20:10:28 +0000 (20:10 +0000)] 
More work on the JNI multi-threaded test runner.

FossilOrigin-Name: 9a74ad716bded1e14333bf7c72392916f800d58a96240eabe4988ca5fc9e8752

2 years agoDisassociate JNI db handles from the thread that created them, as it's no longer...
stephan [Tue, 22 Aug 2023 18:36:30 +0000 (18:36 +0000)] 
Disassociate JNI db handles from the thread that created them, as it's no longer relevant.

FossilOrigin-Name: 8b78b737e66a399b04e555a8197f63a73198a4105cb2f37ffd5b0e6014302caf

2 years agoCorrect JNI binding of sqlite3_shutdown() to clean up all cached JNIEnv objects.
stephan [Tue, 22 Aug 2023 17:51:57 +0000 (17:51 +0000)] 
Correct JNI binding of sqlite3_shutdown() to clean up all cached JNIEnv objects.

FossilOrigin-Name: 02e868690f97ca728b0f2dd018aa79a9d13c85dd85b164caa895d319ae8f3ff5

2 years agoJNI internal cleanups and correct two leaked db handles in test code.
stephan [Tue, 22 Aug 2023 17:36:59 +0000 (17:36 +0000)] 
JNI internal cleanups and correct two leaked db handles in test code.

FossilOrigin-Name: f927a30b5bba35991f472084ebaf02779e84c343a4e84f0efb3df7679ff212f8

2 years agoFix a harmless memory leak in the sqldiff utility.
drh [Tue, 22 Aug 2023 16:44:33 +0000 (16:44 +0000)] 
Fix a harmless memory leak in the sqldiff utility.

FossilOrigin-Name: 724bc15701f3f647c741b614d4ac4fd98e1cdfe49a85f48c64fb1df5b83811b0

2 years agoMove the JNI per-thread cache of NativePointerHolder refs into global space. This...
stephan [Tue, 22 Aug 2023 15:30:35 +0000 (15:30 +0000)] 
Move the JNI per-thread cache of NativePointerHolder refs into global space. This allows better-targeted mutex locks and incidentally eliminates the lagginess and post-run hangs in Tester1's multi-thread mode (presumably caused by deadlocks).

FossilOrigin-Name: e209f56a9745695aadc04418c7bebe62b79e38e5aee26c3248a30f73bfa460c2

2 years agoAdd makefile target "sdevtest" - like "mdevtest" except asan and usan enabled for...
dan [Tue, 22 Aug 2023 15:19:50 +0000 (15:19 +0000)] 
Add makefile target "sdevtest" - like "mdevtest" except asan and usan enabled for the non-debug test.

FossilOrigin-Name: a449d650cd3dcd1baaeb3a3de2aaaac45594397e04f95fe637b0fe4ddb273404

2 years agoUpdate version number in autoconf/tea/configure.ac.
dan [Tue, 22 Aug 2023 13:41:18 +0000 (13:41 +0000)] 
Update version number in autoconf/tea/configure.ac.

FossilOrigin-Name: 055ae724ff34bd41a1d97180b90fce081861856ac67572a633d31f518c20aa1e

2 years agoMove most of the per-JNIEnv global Java class refs into the global state, saving...
stephan [Tue, 22 Aug 2023 11:34:34 +0000 (11:34 +0000)] 
Move most of the per-JNIEnv global Java class refs into the global state, saving a bit of per-thread overhead.

FossilOrigin-Name: 7342bf578790e1a87c128a7c1c7745fe2e7c442890370feb160d406597d4d8ec

2 years agoUpdate autoconf/Makefile.msc (by running mkmsvcmin.tcl) to support the "ASAN=1" option.
dan [Tue, 22 Aug 2023 11:20:38 +0000 (11:20 +0000)] 
Update autoconf/Makefile.msc (by running mkmsvcmin.tcl) to support the "ASAN=1" option.

FossilOrigin-Name: 17028ba7a9bb1c5e26cb8c0d051d709df95d9f779fd3b1ec42adc924246f8f19

2 years agoMinor JNI cleanups.
stephan [Mon, 21 Aug 2023 23:45:19 +0000 (23:45 +0000)] 
Minor JNI cleanups.

FossilOrigin-Name: b88910aaaaaaa0936974379bb3eb8a5a3a634395b14e67cc9030f8a520f471f1

2 years agoFix an undefined integer overflow in fts5.
dan [Mon, 21 Aug 2023 16:14:58 +0000 (16:14 +0000)] 
Fix an undefined integer overflow in fts5.

FossilOrigin-Name: f5c50349b1e4da233b554f371be49297b8b40ca5fe0188899ed906f682bf70d6

2 years agoifdef adjustments so that SQLITE_OMIT_WAL works with SQLITE_USE_SEH.
drh [Mon, 21 Aug 2023 15:29:21 +0000 (15:29 +0000)] 
ifdef adjustments so that SQLITE_OMIT_WAL works with SQLITE_USE_SEH.

FossilOrigin-Name: 0462a2612d1fc1d077acf60ef415f358aa2c44174c4ef28f4bbfdbcbf03d3b7c

2 years agoFix another UBSAN inaccuracy in fuzzcheck.
drh [Mon, 21 Aug 2023 14:40:19 +0000 (14:40 +0000)] 
Fix another UBSAN inaccuracy in fuzzcheck.

FossilOrigin-Name: a6fb9de8f87261194e6034376f62b1cac30b764f106dd3adcf728e020f8a4fd5

2 years agoAddress minor inaccuracies in fuzzcheck and RTREE found by UBSAN.
drh [Mon, 21 Aug 2023 14:28:47 +0000 (14:28 +0000)] 
Address minor inaccuracies in fuzzcheck and RTREE found by UBSAN.

FossilOrigin-Name: a64e6c2fd8ef1d2d7f14aa9265629853298bbc480c2683c79dfd24847a61b68b

2 years agoJNI cleanups.
stephan [Sat, 19 Aug 2023 14:49:08 +0000 (14:49 +0000)] 
JNI cleanups.

FossilOrigin-Name: 0a84131008a2e7886dac64a3545dea634811f6eac2b90885ec9c61ed1e6544c3

2 years agoMerge trunk into jni-threading branch.
stephan [Sat, 19 Aug 2023 12:34:23 +0000 (12:34 +0000)] 
Merge trunk into jni-threading branch.

FossilOrigin-Name: 8254479c6ff1ea3cc9e56de1698db8405c03da90b9bf4c401182e47e0842baf8

2 years agoJNI doc additions.
stephan [Sat, 19 Aug 2023 12:32:00 +0000 (12:32 +0000)] 
JNI doc additions.

FossilOrigin-Name: 0c7ac34f30e1f7e35a2ac4e5e55e5f24857b24afa81a7abecba60f1c9c68b9ff

2 years agoJNI test code cleanups.
stephan [Sat, 19 Aug 2023 11:52:36 +0000 (11:52 +0000)] 
JNI test code cleanups.

FossilOrigin-Name: e202b6e69da8cced114d027cf2e91a04dfdd50b601b3274214783f7d750c558c

2 years agoMinor JNI cleanups.
stephan [Sat, 19 Aug 2023 11:26:52 +0000 (11:26 +0000)] 
Minor JNI cleanups.

FossilOrigin-Name: 1cecb9e0383aa78c491f9ba88c831a88b4b2d40ceef1b87be494b6ddc0789e41

2 years agoAdd multi-thread run mode to JNI Tester1. It works but hangs on exit sometimes for...
stephan [Sat, 19 Aug 2023 10:43:05 +0000 (10:43 +0000)] 
Add multi-thread run mode to JNI Tester1. It works but hangs on exit sometimes for Java reasons as yet not understood.

FossilOrigin-Name: bdbaf7a4534f40e550b646979e67e7b7731566bb5a2631ed376ac85a9bec40a7

2 years agoReplace JNI::NewStringUTF() for the remaining cases where output may be incompatible...
stephan [Sat, 19 Aug 2023 08:22:34 +0000 (08:22 +0000)] 
Replace JNI::NewStringUTF() for the remaining cases where output may be incompatible with MUTF-8. It is now only used when we know the output to be plain ASCII.

FossilOrigin-Name: 2d955eef25ab116c487ebc34c6f2d2836d310af239ef1993f5aeee5a3f68d590

2 years agoshell.c.in help text typo fix. No functional changes.
stephan [Sat, 19 Aug 2023 08:12:10 +0000 (08:12 +0000)] 
shell.c.in help text typo fix. No functional changes.

FossilOrigin-Name: c319033276c3565d0f1f2cae1c91791940d322fe79696bc26d74fddeb2664373

2 years agoRename the decimal_sci() function to decimal_exp().
drh [Fri, 18 Aug 2023 15:39:38 +0000 (15:39 +0000)] 
Rename the decimal_sci() function to decimal_exp().
[forum:/forumpost/fa027bb0ab|Forum post fa027bb0ab].

FossilOrigin-Name: c48f1be8cc505a7e2902c79e26c1d9a121ff5c55785ac812d2e09232b2414695

2 years agoAvoid running test case sort2.2.3 under address-sanitizer. It runs out of memory...
dan [Fri, 18 Aug 2023 15:17:52 +0000 (15:17 +0000)] 
Avoid running test case sort2.2.3 under address-sanitizer. It runs out of memory on some 32-bit platforms.

FossilOrigin-Name: 925be7539947078547ee129b3d328ab0c59b19c6e2e5a391840f2d58f6d59acd

2 years agoImprove exception handling in OpfsDb.importDb().
stephan [Fri, 18 Aug 2023 14:41:21 +0000 (14:41 +0000)] 
Improve exception handling in OpfsDb.importDb().

FossilOrigin-Name: a4eedd63b58f5c273b671f687cb68a32259963dbb053a710770383c735fb7f26

2 years agoExtend the importDb() method of both OPFS VFSes to (A) support reading in an async...
stephan [Fri, 18 Aug 2023 14:16:26 +0000 (14:16 +0000)] 
Extend the importDb() method of both OPFS VFSes to (A) support reading in an async streaming fashion via a callback and (B) automatically disable WAL mode in the imported db.

FossilOrigin-Name: 9b1398c96a4fd0b59e65faa8d5c98de4129f0f0357732f12cb2f5c53a08acdc2

2 years agoEnhance the CLI and the fuzzcheck utility programs to report whether they
drh [Fri, 18 Aug 2023 12:15:44 +0000 (12:15 +0000)] 
Enhance the CLI and the fuzzcheck utility programs to report whether they
are compiled as 32-bit or 64-bit for things like the --version option.

FossilOrigin-Name: ec7eeb055bfb0e5a4467d8a45fa53d84bb8ae80ca0474b687e2783e971648008

2 years agoEnhance the notes on compiling for Windows11 to explain how to do
drh [Fri, 18 Aug 2023 11:36:33 +0000 (11:36 +0000)] 
Enhance the notes on compiling for Windows11 to explain how to do
32-bit builds on a 64-bit system.

FossilOrigin-Name: dd749e4042bdffb20fe71dd2dba91eab5edc32e4b2773c2fadba43cb54027a17

2 years agoRemove some obsolete JNI-internal docs.
stephan [Thu, 17 Aug 2023 22:04:07 +0000 (22:04 +0000)] 
Remove some obsolete JNI-internal docs.

FossilOrigin-Name: 00a2a3736a6dcde81d920815520040f3c47f965165e7128ca1f4062e6ec7c17c

2 years agoDo not allow bound parameters in the ON CONFLICT clause of an UPSERT.
drh [Thu, 17 Aug 2023 17:48:20 +0000 (17:48 +0000)] 
Do not allow bound parameters in the ON CONFLICT clause of an UPSERT.
dbsqlfuzz 9983e2c77634a8ccf33b5c91fa9982599de5f9e9

FossilOrigin-Name: 3c06709335eb4b98e3a684e3ebbae69eeb6a21b452bce29159c82bb632d6a042

2 years agoFix an error in documentation comments in fts5.h.
dan [Thu, 17 Aug 2023 16:59:35 +0000 (16:59 +0000)] 
Fix an error in documentation comments in fts5.h.

FossilOrigin-Name: 24d96bd65d8ccdd50a6f4fe217d196728a2f8658d128f9352c287f64e034104a

2 years agoAdd extra test to fts5synonym2.test.
dan [Thu, 17 Aug 2023 16:49:06 +0000 (16:49 +0000)] 
Add extra test to fts5synonym2.test.

FossilOrigin-Name: 39ea11be3b35c5ecde9bc0fe66af673b8f440dc523422887d05a29feef036b01

2 years agoAdd "Windows-Sanitize" configuration to "testrunner.tcl release" tests on windows.
dan [Thu, 17 Aug 2023 16:06:17 +0000 (16:06 +0000)] 
Add "Windows-Sanitize" configuration to "testrunner.tcl release" tests on windows.

FossilOrigin-Name: e68b46dc6aff48c81a2a5e7662d0f694615b64aa50bcfee9a0b8b25fa4e5f33d

2 years agoHave all test names in json101.test start with "json101".
dan [Thu, 17 Aug 2023 15:14:43 +0000 (15:14 +0000)] 
Have all test names in json101.test start with "json101".

FossilOrigin-Name: af56d7b6b9c50f2541a51fcb7d94b89aafba4f343a9103b21a15aad3f283c63e

2 years agoEnable address sanitizer in Makefile.msc by adding the ASAN=1 argument on
drh [Thu, 17 Aug 2023 15:11:59 +0000 (15:11 +0000)] 
Enable address sanitizer in Makefile.msc by adding the ASAN=1 argument on
the nmake command line.

FossilOrigin-Name: 3eaadaff85111103c9441a9d6cd31291b95db9f3a6ec7003e0ff4ce5db7490da

2 years agoFix a possible UAF in SEH if an exception occurs at an inopportune moment
drh [Thu, 17 Aug 2023 14:19:44 +0000 (14:19 +0000)] 
Fix a possible UAF in SEH if an exception occurs at an inopportune moment
during WAL processing.

FossilOrigin-Name: 91b91037e348fa10cf6a9d8a0ffbfdebb4a40e0e336b65b112ed1c828e75cda7

2 years agoTighten up the JNI auto-ext handling.
stephan [Thu, 17 Aug 2023 13:13:22 +0000 (13:13 +0000)] 
Tighten up the JNI auto-ext handling.

FossilOrigin-Name: c09c8d05a20d916a9d9304eeea723ef7666a862a9e53f5feeeb1b03f9153d4b2

2 years agoMinor internal JNI cleanups and fixes.
stephan [Thu, 17 Aug 2023 12:44:52 +0000 (12:44 +0000)] 
Minor internal JNI cleanups and fixes.

FossilOrigin-Name: 0e9437de026cbfb333b90bb3400f1c015f85d49d73a25ad1000623216b88bfa0

2 years agoRemove the FIXME markers related to threading. Code style cleanups.
stephan [Thu, 17 Aug 2023 10:49:06 +0000 (10:49 +0000)] 
Remove the FIXME markers related to threading. Code style cleanups.

FossilOrigin-Name: 154ab26dc6ba2d1fd976e8fe6dc1b1a06c734f7e9a276a3edc5c2f30b0d6d36a

2 years agoRefinements to instructions on compiling for Windows.
drh [Wed, 16 Aug 2023 17:23:42 +0000 (17:23 +0000)] 
Refinements to instructions on compiling for Windows.

FossilOrigin-Name: d543c36c35f71c5f0a7ebf6f496feca40d16566d0c5b2c2ba205ff43437ffcd1

2 years agoImproved instructions on how to build SQLite on Windows 11 and similar.
drh [Wed, 16 Aug 2023 17:12:26 +0000 (17:12 +0000)] 
Improved instructions on how to build SQLite on Windows 11 and similar.

FossilOrigin-Name: 0f6b2b33736ee07f17f3a4e5f077bb4d0e2481c8f81251b8ce6b78510f372237

2 years agoMake sqlite3_stmt_explain() accessible to loadable extensions.
drh [Wed, 16 Aug 2023 15:27:49 +0000 (15:27 +0000)] 
Make sqlite3_stmt_explain() accessible to loadable extensions.

FossilOrigin-Name: a237a31ff4a7cd3dc744af1e1ebb9466e42eebafa31c1b5c0027cbaee9babc9b

2 years agoMix the current process ID into the randomness used for generating
drh [Wed, 16 Aug 2023 15:10:07 +0000 (15:10 +0000)] 
Mix the current process ID into the randomness used for generating
temporary filenames on Windows.

FossilOrigin-Name: 775a36ee093df4b5f7529a43eeaee9d5a9a943ad5ed8ae03bc74e459e87ba438

2 years agoUpdate testrunner.tcl to use environment variable %NUMBER_OF_PROCESSES% when running...
dan [Wed, 16 Aug 2023 14:18:53 +0000 (14:18 +0000)] 
Update testrunner.tcl to use environment variable %NUMBER_OF_PROCESSES% when running under tclsh on windows. Also modify the internal database schema used by testrunner.tcl to be compatible with old versions of SQLite.

FossilOrigin-Name: 6542ed3b9e028c44aca504eadca843ee9b2ba08f5f650523238dd1253f7e221b

2 years agoFix test script problem preventing veryquick.test from running.
dan [Wed, 16 Aug 2023 13:55:38 +0000 (13:55 +0000)] 
Fix test script problem preventing veryquick.test from running.

FossilOrigin-Name: e73886574042108eb31641d0820c273c10b83fbf08ac6cb52d3e4c27830e2c23

2 years agoCherrypick [00ac653562a6] to remove stray JNI debug output. No functional changes.
stephan [Tue, 15 Aug 2023 21:44:22 +0000 (21:44 +0000)] 
Cherrypick [00ac653562a6] to remove stray JNI debug output. No functional changes.

FossilOrigin-Name: e12d70f38c0ed5c0abf9a1e30ce4db59a4426e1e8cb1f8f07834fc1bedfcc65a

2 years agoCherrypick [653ed92dc391] (went to wrong branch). Doc change only, no code changes.
stephan [Tue, 15 Aug 2023 20:57:42 +0000 (20:57 +0000)] 
Cherrypick [653ed92dc391] (went to wrong branch). Doc change only, no code changes.

FossilOrigin-Name: 79a14457f0067814e7c33de709e2f9e19ab880d3eebbcb6f9fcce52a4720ecac

2 years agoUpdate testrunner.tcl to make it easier to add things like mdevtest.
dan [Tue, 15 Aug 2023 18:52:25 +0000 (18:52 +0000)] 
Update testrunner.tcl to make it easier to add things like mdevtest.

FossilOrigin-Name: a531b71c4fd64fff6008876af825107ebc403f80dcb95273a05936ff6587b7aa

2 years agoImprove the portability of the src-verify.c tool on Windows.
drh [Tue, 15 Aug 2023 18:08:14 +0000 (18:08 +0000)] 
Improve the portability of the src-verify.c tool on Windows.

FossilOrigin-Name: 4068d94acd042a0a9887fba8ba38fa94c6f41a6d3c7a61d5514a57f613b3d278

2 years agoFix problems in fts5 test code.
dan [Tue, 15 Aug 2023 14:53:49 +0000 (14:53 +0000)] 
Fix problems in fts5 test code.

FossilOrigin-Name: c16ed3b1cc7b4c21bfa96062bf9028ae071c89e63df3b444b59f1753594e4e94

2 years agoAdd note about the current threading limitation to ext/jni/README.md. No code changes.
stephan [Tue, 15 Aug 2023 13:01:20 +0000 (13:01 +0000)] 
Add note about the current threading limitation to ext/jni/README.md. No code changes.

FossilOrigin-Name: 653ed92dc39185cdedfab3ea518bc7ec2d2826120e5fa4cbdee3343301396184

2 years agoUse a dodgy substitute if the INFINITY macro is not available. See
drh [Tue, 15 Aug 2023 12:27:27 +0000 (12:27 +0000)] 
Use a dodgy substitute if the INFINITY macro is not available. See
[forum:/forumpost/8e66e19bb9|forumpost 8e66e19bb9].

FossilOrigin-Name: 4ae72c896761df5cd37c98ca3eeee7d4c6af3e4ccf74edd88ff902ef38f0765b

2 years agoFix the PRAGMA case_sensitive_like command so that the LIKE function continues
drh [Tue, 15 Aug 2023 11:58:22 +0000 (11:58 +0000)] 
Fix the PRAGMA case_sensitive_like command so that the LIKE function continues
to be innocuous after the PRAGMA.
[forum:/forumpost/925dc9f67804c540|Forum post 925dc9f67804c540].

FossilOrigin-Name: 84c268c34cba7207a90dad2a8e972ce90c85304e91f4933c76963822ad1ae48b

2 years agoFix an off-by-one error causing a buffer overread in test2.c.
dan [Tue, 15 Aug 2023 10:57:08 +0000 (10:57 +0000)] 
Fix an off-by-one error causing a buffer overread in test2.c.

FossilOrigin-Name: e1edf95ecc8f6840fd62abe83121fddeab7413c316b2e20b60fd3b2c8fdd4dca

2 years agoMinor reshaping of Tester1 moving towards making a multi-threaded run mode.
stephan [Tue, 15 Aug 2023 09:26:47 +0000 (09:26 +0000)] 
Minor reshaping of Tester1 moving towards making a multi-threaded run mode.

FossilOrigin-Name: f104c14c26c123ee78c09fc1bc59efb8668dc624da05c1d8dbeaf3c9dd02a393

2 years agoRemove a piece of stray debug output. No functional changes.
stephan [Tue, 15 Aug 2023 09:16:41 +0000 (09:16 +0000)] 
Remove a piece of stray debug output. No functional changes.

FossilOrigin-Name: 00ac653562a66aad3112ea322d08be68e05e6bf7413c814dd3f81bf850fcf43b

2 years agoFix the autoconf makefile for the CLI such that it disables double-quoted
drh [Mon, 14 Aug 2023 19:10:48 +0000 (19:10 +0000)] 
Fix the autoconf makefile for the CLI such that it disables double-quoted
strings by default, as all other builds of the CLI do.
[forum:/forumpost/9794b6aaa5|forum post 9794b6aaa5].

FossilOrigin-Name: 85fd4f0ef41a883448f16d55b7f8bd5c7b1d9c89a3d7d9bcae9c2744ed843099

2 years agoFix a problem in sqlite3_snapshot_recover() introduced by the [8a6b0c24937e855b]...
dan [Mon, 14 Aug 2023 18:21:56 +0000 (18:21 +0000)] 
Fix a problem in sqlite3_snapshot_recover() introduced by the [8a6b0c24937e855b] merge.

FossilOrigin-Name: c2577eb0a4a627c65d675f1446514843486092be9cb271b682793a0107e496cd

2 years agoBring handling of the Java auto-ext handler more in line with the core in terms of...
stephan [Mon, 14 Aug 2023 17:12:55 +0000 (17:12 +0000)] 
Bring handling of the Java auto-ext handler more in line with the core in terms of locking and mutability during traversal. This removes the explicit synchronous requirement from the Java open() and auto-ext bindings.

FossilOrigin-Name: 42994b952e092ae4fa319395208622e887387ca3ff8ac57961c824a6c272bf0e

2 years agoRemove some obsolete, commented-out makefile code. No functional or build changes.
stephan [Mon, 14 Aug 2023 14:21:28 +0000 (14:21 +0000)] 
Remove some obsolete, commented-out makefile code. No functional or build changes.

FossilOrigin-Name: ea574cd5de6dbc7db2f4cffe0b6c83c795c4ba634ae1984e5c95bb3529daa5bb

2 years agoChange the name of the ".binary" command in the CLI to ".crnl". The sense of
drh [Mon, 14 Aug 2023 13:33:19 +0000 (13:33 +0000)] 
Change the name of the ".binary" command in the CLI to ".crnl".  The sense of
the setting is inverted.  The original ".binary" still works for backwards
compatibility but is now undocumented.  ".crnl" is also undocumented on machines
where it is a no-op (all machines other than Windows).
[forum:/forumpost/8bd0b0fbdbc12477|forum thread 8bd0b0fbdbc12477]

FossilOrigin-Name: 544de2da09cd7b9bbb6cb4c52bb22325ace3391fca00c6a43847bfc158032b66

2 years agoMore work on the JNI-specific mutexes. Rework the NativePointerHolder cache lookup...
stephan [Mon, 14 Aug 2023 13:27:40 +0000 (13:27 +0000)] 
More work on the JNI-specific mutexes. Rework the NativePointerHolder cache lookup to be slightly simpler and O(1) instead of O(N).

FossilOrigin-Name: c84ded0e59aea4861d72b53b4b40cf580747c0f6ca58c334a996f1a825276cb5

2 years agoFix harmless compiler warnings reported by MSVC.
drh [Mon, 14 Aug 2023 12:20:44 +0000 (12:20 +0000)] 
Fix harmless compiler warnings reported by MSVC.

FossilOrigin-Name: 391e21bb6e0b2f4632972b6617a3a18192f88deb29eee5bc060846468e624b21

2 years agoEnable SEH be default in Windows builds.
drh [Mon, 14 Aug 2023 12:05:38 +0000 (12:05 +0000)] 
Enable SEH be default in Windows builds.

FossilOrigin-Name: faae792fd5db7afeb7e4345d96f14c8986ea9a3cd4764ddee71314bfca36ac71

2 years agoJNI-internal docs and removal of obsolete code.
stephan [Mon, 14 Aug 2023 08:28:46 +0000 (08:28 +0000)] 
JNI-internal docs and removal of obsolete code.

FossilOrigin-Name: b62d93258b6a661f3a9b61468b3b641c14faf2d2196f78aca95fe14de43c9444

2 years agoInternal API renaming for clarity's sake.
stephan [Sun, 13 Aug 2023 20:58:12 +0000 (20:58 +0000)] 
Internal API renaming for clarity's sake.

FossilOrigin-Name: 911e4fc5aaf9478214095a65f74af3ebca883922c36cf7a8d911116c42cf9de8