]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
23 months agoAdd support for the -DSQLITE_EXTRA_AUTOEXT=name compile-time option.
drh [Mon, 28 Aug 2023 15:58:00 +0000 (15:58 +0000)] 
Add support for the -DSQLITE_EXTRA_AUTOEXT=name compile-time option.
[forum:/forumpost/00829394c74a670f|forum thread 00829394c74a670f].

FossilOrigin-Name: fe7365254d343ed03e11a4e9cad7f0e5d5182b9220c6fde6d30e434ebdaba2af

23 months agoDuplicate code consolidation.
stephan [Mon, 28 Aug 2023 14:59:27 +0000 (14:59 +0000)] 
Duplicate code consolidation.

FossilOrigin-Name: 71f239747c7934310dedf9fc0cbf84fbeeed53808234067147335c12396849a1

23 months agoMove a metrics counter so that it can be used to indirectly witness the race conditio...
stephan [Mon, 28 Aug 2023 13:18:46 +0000 (13:18 +0000)] 
Move a metrics counter so that it can be used to indirectly witness the race condition fix from [f5274e00f17d58e0] by recording varying final values for that metric across consecutive multi-threaded test runs.

FossilOrigin-Name: 54d2209d24547dbb05e7c12daa27211593c34de8005e8adba0989b8d219f5f3b

23 months agoResolve a JNI-side race condition. Removed a now-extraneous struct member. Internal...
stephan [Mon, 28 Aug 2023 13:06:26 +0000 (13:06 +0000)] 
Resolve a JNI-side race condition. Removed a now-extraneous struct member. Internal API renaming for consistency.

FossilOrigin-Name: f5274e00f17d58e075f90ae5c1d4b38933da315e51592171fa35bcbd67b40b2a

23 months agoFix an issue with infinity handling by the SUM() function that goes back
drh [Mon, 28 Aug 2023 12:20:18 +0000 (12:20 +0000)] 
Fix an issue with infinity handling by the SUM() function that goes back
to the extended-precision SUM() enhancement of
[check-in c63e26e705f5e967].  Problem reported by
[forum:/forumpost/1c06ddcacc86032a|forum post 1c06ddcacc86032a].

FossilOrigin-Name: 77d3dcd283595c52f24c07fc59ba60c9133b71c440cf3f799cf48c907c6fae3e

23 months agoResolve a condition which could cause an is-interrupted db to call its progress callback.
stephan [Mon, 28 Aug 2023 12:06:38 +0000 (12:06 +0000)] 
Resolve a condition which could cause an is-interrupted db to call its progress callback.

FossilOrigin-Name: a0d0f1aafc6086726131dff5e6628f2771c20db3122a53bdbb82945ab5d326d1

23 months agoFurther JNI cleanups and javadoc additions.
stephan [Mon, 28 Aug 2023 11:10:13 +0000 (11:10 +0000)] 
Further JNI cleanups and javadoc additions.

FossilOrigin-Name: c393b1c9f5639c259406e587b3e08efdc1962203001823747681379ffc54fc10

23 months agoLots of javadoc-related tweaks.
stephan [Mon, 28 Aug 2023 07:28:36 +0000 (07:28 +0000)] 
Lots of javadoc-related tweaks.

FossilOrigin-Name: cfe06f90e2c0231efded98767ef3cc646d3a7daa34d77b62b7c04b5aae9448fd

23 months agoCorrect a package renaming bug in the previous check-in and start applying the @Canon...
stephan [Mon, 28 Aug 2023 05:48:34 +0000 (05:48 +0000)] 
Correct a package renaming bug in the previous check-in and start applying the @Canonical annotation to functions to distinguish canonical API functions and Java-specific APIs.

FossilOrigin-Name: 8a016006805b08b72bfc4093c795d8cd8d7fe72f8ae234c175a8b7be3a841cbf

23 months agoMove the JNI annotations into the annotation subpackage.
stephan [Mon, 28 Aug 2023 05:39:05 +0000 (05:39 +0000)] 
Move the JNI annotations into the annotation subpackage.

FossilOrigin-Name: e4dedf90a92a069daef967dfe975469bf8ec7883c44c95e73345d4eded48e996

23 months agoResolve a makefile bug which causes sqlite3-worker1-bundler-friendly.mjs to be built...
stephan [Mon, 28 Aug 2023 04:59:16 +0000 (04:59 +0000)] 
Resolve a makefile bug which causes sqlite3-worker1-bundler-friendly.mjs to be built incorrectly. Reported in [forum:a874e435cf4690c1|forum post a874e435cf4690c1].

FossilOrigin-Name: 9d68c7ef103b9b51ed35fb91e62351eb6c62ad63ab03ac456ff9787cc83f10ab

23 months agoReimplement JNI's sqlite3_value_text() as a native instead of a Java-side proxy....
stephan [Sun, 27 Aug 2023 15:15:46 +0000 (15:15 +0000)] 
Reimplement JNI's sqlite3_value_text() as a native instead of a Java-side proxy. Unrelated minor simplifications.

FossilOrigin-Name: 401dd6ee283a4e7da2e50175a1b58e6a83afb0ea2d3b6cf80c7c621e17bcce98

23 months agoGeneric cleanups in Tester1.java.
stephan [Sun, 27 Aug 2023 14:47:45 +0000 (14:47 +0000)] 
Generic cleanups in Tester1.java.

FossilOrigin-Name: fbc1b6310b01f4f79439bb6ce59b2aaabd126da7201f36d4fc5d7ef95118a494

23 months agoRemove JNI sqlite3_column_java_object(), as the protection rules of sqlite3_values...
stephan [Sun, 27 Aug 2023 13:43:45 +0000 (13:43 +0000)] 
Remove JNI sqlite3_column_java_object(), as the protection rules of sqlite3_values makes it impossible to implement safely. Add JNI sqlite3_bind_java_object().

FossilOrigin-Name: 29bd4a23a4afd96b2cc06d2b91a4f30c0bbf2347af0b0d18f8d4cf8aafa63160

23 months agoCorrect the signature mismatch between JNI sqlite3_column/value_text16() and add...
stephan [Sun, 27 Aug 2023 11:28:57 +0000 (11:28 +0000)] 
Correct the signature mismatch between JNI sqlite3_column/value_text16() and add related tests.

FossilOrigin-Name: 77f6e70f17c0cb6d031f983c458c9ec2e88d92b4716397533a029af39da2d128

23 months agoMake JNI sqlite3_trace_v2() thread-safe. Re-add a piece removed in [bae4d022aad9b...
stephan [Sun, 27 Aug 2023 10:40:00 +0000 (10:40 +0000)] 
Make JNI sqlite3_trace_v2() thread-safe. Re-add a piece removed in [bae4d022aad9b] to work around a JVM crash which is unpredictably triggered by its substitute. Fix the THREADMODE=0 JNI build. Further internal API simplifications.

FossilOrigin-Name: 3f9f7a9cb08b0687ad206605a5109306762df9ae8bdeab2d8d60bf9373c9ad32

23 months agoFactor out an unnecessary struct member. JNI sqlite3_shutdown() now frees up the...
stephan [Sun, 27 Aug 2023 09:12:50 +0000 (09:12 +0000)] 
Factor out an unnecessary struct member. JNI sqlite3_shutdown() now frees up the various object-recycling bins. Doc touchups.

FossilOrigin-Name: bae4d022aad9bbeb78cb027ecad799af87afe331e697add44ec22297c873141d

23 months agoFactor out a superfluous JNI class. Doc and code style cleanups.
stephan [Sun, 27 Aug 2023 08:10:59 +0000 (08:10 +0000)] 
Factor out a superfluous JNI class. Doc and code style cleanups.

FossilOrigin-Name: 0f37f27148dfa93ecc42381ad3455a9059285d1af2df027429044942dc4d861b

23 months agoJNI code reorgs and simplify the failing-alloc interface a bit.
stephan [Sun, 27 Aug 2023 07:26:33 +0000 (07:26 +0000)] 
JNI code reorgs and simplify the failing-alloc interface a bit.

FossilOrigin-Name: deed5797de65a25896e991a441f0d05eb92662536296485920fb081e84ad5d32

23 months agoApply the JNI OOM checks to memory returned by JDK APIs, as distinct from our APIs.
stephan [Sat, 26 Aug 2023 22:34:26 +0000 (22:34 +0000)] 
Apply the JNI OOM checks to memory returned by JDK APIs, as distinct from our APIs.

FossilOrigin-Name: 1ff78582bfd934e0c76464b5f23ed9bf09a3491b145e0ca34acb6e59c4f53995

23 months agoEliminate a superfluous JNI-internal middle-man class.
stephan [Sat, 26 Aug 2023 21:13:57 +0000 (21:13 +0000)] 
Eliminate a superfluous JNI-internal middle-man class.

FossilOrigin-Name: daede0f801f59d6501a863c4688e4635b34171e98b56b8ab4432c779113f1997

23 months agoWhether or not OOM is always fatal in JNI is now a compile-time option.
stephan [Sat, 26 Aug 2023 21:02:50 +0000 (21:02 +0000)] 
Whether or not OOM is always fatal in JNI is now a compile-time option.

FossilOrigin-Name: 320a34c080d8bc1feae1578697923dfa7c4144b78de36f704c24cc4a4ce9d535

23 months agoCorrect a string length misuse in JNI sqlite3_result_error() in an OOM case. Unrelate...
stephan [Sat, 26 Aug 2023 19:34:49 +0000 (19:34 +0000)] 
Correct a string length misuse in JNI sqlite3_result_error() in an OOM case. Unrelated minor JNI cleanups.

FossilOrigin-Name: 4252f56f3d8574b7b43306440726daf3b5f5500d5d9105784b2f82753e7c71dd

23 months agoRemove a bunch of commented-out debug output.
stephan [Sat, 26 Aug 2023 18:15:33 +0000 (18:15 +0000)] 
Remove a bunch of commented-out debug output.

FossilOrigin-Name: b49488481e2952294960bb0ee971f6eca126c19d68ef92152894aa28393e6865

23 months agoRe-order some out-of-order JNI APIs. Correct JNI sqlite3_open_v2() behavior in a...
stephan [Sat, 26 Aug 2023 18:01:36 +0000 (18:01 +0000)] 
Re-order some out-of-order JNI APIs. Correct JNI sqlite3_open_v2() behavior in a particular OOM condition.

FossilOrigin-Name: 49d3be002ce5e594027f47a3ba448f0c21ec68b416b8df997497753f53e3ca52

23 months agoTwo significant typo fixes for [1a30919bfbb686].
stephan [Sat, 26 Aug 2023 17:36:15 +0000 (17:36 +0000)] 
Two significant typo fixes for [1a30919bfbb686].

FossilOrigin-Name: 6a6ee6dd54ec1a1dc7fb7d2f331951525d394a8362aef911f62878ac3961898f

23 months agoBind sqlite3_db_handle() to JNI.
stephan [Sat, 26 Aug 2023 17:30:14 +0000 (17:30 +0000)] 
Bind sqlite3_db_handle() to JNI.

FossilOrigin-Name: 1a30919bfbb686464e8020e684120d22dd2375b910a17446b75452fda96a7449

23 months agoCorrect a potential duplicate xDestroy() being triggered for Java-side collations.
stephan [Sat, 26 Aug 2023 16:55:27 +0000 (16:55 +0000)] 
Correct a potential duplicate xDestroy() being triggered for Java-side collations.

FossilOrigin-Name: 25331172f78544f7f23ad7821cbf065589f6d02706184d4c83fe3988452dac5d

23 months agoRecycle per-UDF JNI state.
stephan [Sat, 26 Aug 2023 16:29:48 +0000 (16:29 +0000)] 
Recycle per-UDF JNI state.

FossilOrigin-Name: cf406528eb86d8d0d55a468b2c4ec32a11a4947f45c4bbabdde8742ae199ce1f

23 months agoCode consolidation cleanups.
stephan [Sat, 26 Aug 2023 14:55:44 +0000 (14:55 +0000)] 
Code consolidation cleanups.

FossilOrigin-Name: d6b5ecd28740c2c5d21797fce9fe137c8a83f702f22901720cc6e8b1b42af001

23 months agoAdd -sqllog flag to the JNI 'tests' target because it hits APIs which are otherwise...
stephan [Sat, 26 Aug 2023 12:19:51 +0000 (12:19 +0000)] 
Add -sqllog flag to the JNI 'tests' target because it hits APIs which are otherwise not tested.

FossilOrigin-Name: cc3153ed341f59262485c3541a8879c4e86520c8a10f4ce819344a88099e7d0e

23 months agoJNI internal cleanups and docs.
stephan [Sat, 26 Aug 2023 11:57:34 +0000 (11:57 +0000)] 
JNI internal cleanups and docs.

FossilOrigin-Name: b7b26bfb4f86e0b8aaabab258ccb0713737ffd4ecd3156d6a83a4f9a1d25edf6

23 months agoRemove the Java BusyHandler.xDestroy() method - it should not have had one. Eliminate...
stephan [Sat, 26 Aug 2023 10:51:19 +0000 (10:51 +0000)] 
Remove the Java BusyHandler.xDestroy() method - it should not have had one. Eliminate the last of the potentially-significant MUTF-8 cases.

FossilOrigin-Name: c852f1ebbde273c3d28fe5aff0bf73cfc06b41dd371a94d7520536dc7a1dbcc1

23 months agoImprove threading support for all types of JNI-side callback hooks, making them safe...
stephan [Sat, 26 Aug 2023 10:20:38 +0000 (10:20 +0000)] 
Improve threading support for all types of JNI-side callback hooks, making them safe to invoke if another thread is busy replacing them.

FossilOrigin-Name: f2af7bbf493fe28d92fc9c77425f8bb9d48c02af9a5eabceb0365c705651e114

23 months agoMove the 3 Java SQLFunction subclasses from inner classes to package scope.
stephan [Fri, 25 Aug 2023 16:43:51 +0000 (16:43 +0000)] 
Move the 3 Java SQLFunction subclasses from inner classes to package scope.

FossilOrigin-Name: 21fd47a68db9df1828f4cc4131d326a193b5751d56a40ae77ed0a78dc0621af1

23 months agoMissed a straggler when renaming Java classes in [8ca528006533ac1]. Document threadin...
stephan [Fri, 25 Aug 2023 16:26:16 +0000 (16:26 +0000)] 
Missed a straggler when renaming Java classes in [8ca528006533ac1]. Document threading limitations.

FossilOrigin-Name: 5786b95f5d09b4462aff0fdeac37992a2b64c47b004d18960f51e4e6a5796106

23 months agoHopefully the last major API rename in the JNI bits: rename all lower_camel_case...
stephan [Fri, 25 Aug 2023 14:17:36 +0000 (14:17 +0000)] 
Hopefully the last major API rename in the JNI bits: rename all lower_camel_case classes which do not have direct counterparts in the C API to UpperCamelCase, as that's more idiomatic. Java types which reflect C-style types are unaffected.

FossilOrigin-Name: 8ca528006533ac152e9b322e421cf5d339414c77332d9836a9ff429b793d0d2d

23 months agoMore Java API renaming for consistency.
stephan [Fri, 25 Aug 2023 13:23:45 +0000 (13:23 +0000)] 
More Java API renaming for consistency.

FossilOrigin-Name: 4e457778de189d8393e88f399dc521c8a5ad4ddd80a5fd69295bcb104fac5cbf

23 months agoRe-enable SQLITE_THREADSAFE=0 in the JNI build and add multitest target which builds...
stephan [Fri, 25 Aug 2023 12:29:59 +0000 (12:29 +0000)] 
Re-enable SQLITE_THREADSAFE=0 in the JNI build and add multitest target which builds and runs the tests in all 3 threading modes.

FossilOrigin-Name: 6b1c816f6aae9face07ed7ead969257cf915c21ff9cdad9a21b7cf0e7496e09e

23 months agoCode restructuring. Force SQLITE_THREADSAFE in JNI builds for the time being, as...
stephan [Fri, 25 Aug 2023 11:32:56 +0000 (11:32 +0000)] 
Code restructuring. Force SQLITE_THREADSAFE in JNI builds for the time being, as threadsafe==0 leads to as-yet-mysterious JNI-level reference errors.

FossilOrigin-Name: 5a099caa2c21bec647f0a521e7f5d0d1cc2f96d388d3d6c53d5ec80947f33e8d

23 months agoRemove incorrect (but harmless) dependency on source code file "sessionfuzz-data1...
dan [Fri, 25 Aug 2023 11:06:26 +0000 (11:06 +0000)] 
Remove incorrect (but harmless) dependency on source code file "sessionfuzz-data1.db" from main.mk and Makefile.in.

FossilOrigin-Name: 17d56c0207f63614b34ef3594d06602ab7a6e85604f3589b30aa79316f1744ee

23 months 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

23 months 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

23 months 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

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

FossilOrigin-Name: bedf33d403677d243a1505ce549166850ab55671700b143278db5feb84883ab3

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

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

FossilOrigin-Name: 862f9828e078ae138c3533658c45e4c45155975794e752b9b3a71a693842f37a

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

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

FossilOrigin-Name: 70d936953ba55cfed32efe7e3a9d4b71da9a7ffc8818b6540471e0bf311bc688

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

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

FossilOrigin-Name: b88910aaaaaaa0936974379bb3eb8a5a3a634395b14e67cc9030f8a520f471f1

23 months 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

23 months 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

23 months 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

23 months 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

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

FossilOrigin-Name: 0a84131008a2e7886dac64a3545dea634811f6eac2b90885ec9c61ed1e6544c3

23 months 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

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

FossilOrigin-Name: 0c7ac34f30e1f7e35a2ac4e5e55e5f24857b24afa81a7abecba60f1c9c68b9ff

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

FossilOrigin-Name: e202b6e69da8cced114d027cf2e91a04dfdd50b601b3274214783f7d750c558c

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

FossilOrigin-Name: 1cecb9e0383aa78c491f9ba88c831a88b4b2d40ceef1b87be494b6ddc0789e41

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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

23 months 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