]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
21 months agoIn the JNI build, emit a reminder to not check in the javac-generated sqlite3-jni... jni-client-data
stephan [Sat, 9 Sep 2023 11:20:35 +0000 (11:20 +0000)] 
In the JNI build, emit a reminder to not check in the javac-generated sqlite3-jni.h when FTS5 is disabled because changes in that feature flag result in unnecessary and large diffs in checked-in generated code.

FossilOrigin-Name: caceb52fb58f924e7cbbebac05e7fd7822b7f6f56a3f834392d2be801bf04633

21 months agoDisable FTS5 in the JNI build by default until it can be thoroughly tested. This...
stephan [Sat, 9 Sep 2023 07:52:05 +0000 (07:52 +0000)] 
Disable FTS5 in the JNI build by default until it can be thoroughly tested. This is mainly so that the public-facing javadoc does not include it.

FossilOrigin-Name: 6f25f02b70f561864264a71a85cb5efa05550743371fd655804033ea08d00f33

21 months agoMove Java-side FTS5 bits into the fts5 subpackage to (A) make it easy to optionally...
stephan [Wed, 6 Sep 2023 07:39:25 +0000 (07:39 +0000)] 
Move Java-side FTS5 bits into the fts5 subpackage to (A) make it easy to optionally bundle it (or not) and (B) set a precedent for puting extension APIs in their own package.

FossilOrigin-Name: 4c773e1f331cd5854d4c6e8825197933c0bb6827b7437e56ac0ad650d1ddf55e

21 months agoJava FTS5 API renaming, for consistency.
stephan [Wed, 6 Sep 2023 06:54:25 +0000 (06:54 +0000)] 
Java FTS5 API renaming, for consistency.

FossilOrigin-Name: 5e4cc9f386364858c6457c40f13f01e1826a59086aa7f0fa10244ea846f5acfd

22 months agoIn JNI routines which set an OutputPointer.value, always do so, even on error, for...
stephan [Mon, 4 Sep 2023 06:15:37 +0000 (06:15 +0000)] 
In JNI routines which set an OutputPointer.value, always do so, even on error, for consistency.

FossilOrigin-Name: d0df62f0af19a69f7ceb3ad1dceda0d8cc2ca5016a6e2a3a1e36356424c3ca49

22 months agoRemove several unnececessary functions.
stephan [Mon, 4 Sep 2023 05:58:13 +0000 (05:58 +0000)] 
Remove several unnececessary functions.

FossilOrigin-Name: 84433c72b0b08e7906ef87758caffe98f95df812945a7aea675bbc20791e33c0

22 months agoMove an internal utility class out of the public Java API.
stephan [Mon, 4 Sep 2023 05:34:30 +0000 (05:34 +0000)] 
Move an internal utility class out of the public Java API.

FossilOrigin-Name: 8e1ae3197a62796565b7260b230057bdb3f136edd00a83f8a63532d44d386243

22 months agoExpose sqlite3_bind_parameter_name() to JNI. Extend the definition of null for the...
stephan [Mon, 4 Sep 2023 04:23:31 +0000 (04:23 +0000)] 
Expose sqlite3_bind_parameter_name() to JNI. Extend the definition of null for the @NotNull annotation, to consider closed/finalized Java-side handles wrapping C-side resources as null for its purposes.

FossilOrigin-Name: fc34e2bfa4a2255f019a2514367e58596837289de49f7fab87279c8b40c7f119

22 months agoAdd the missing sqlite3_blob_read() to [9a9945c405cf]. Elaborate on the definition...
stephan [Sun, 3 Sep 2023 14:41:13 +0000 (14:41 +0000)] 
Add the missing sqlite3_blob_read() to [9a9945c405cf]. Elaborate on the definition of the @NotNull annotation.

FossilOrigin-Name: 85952b4a52a09e9da35754c1a1ec70b1bf277296011a2d37ac536b33437223d7

22 months agoExpose the sqlite3_blob_...() APIs to JNI.
stephan [Sun, 3 Sep 2023 14:13:29 +0000 (14:13 +0000)] 
Expose the sqlite3_blob_...() APIs to JNI.

FossilOrigin-Name: 9a9945c405cfe9b6bf399655f498457da66b06c8b92014510ab9fb83fbb1c7d4

22 months agoExpose sqlite3_system_errno() to JNI.
stephan [Sun, 3 Sep 2023 12:46:09 +0000 (12:46 +0000)] 
Expose sqlite3_system_errno() to JNI.

FossilOrigin-Name: bac54da29c19ef5e0a76599b5d10b377ecd7b391a651af99526529df16a83c7d

22 months agoExpose sqlite3_stmt_status() to JNI.
stephan [Sun, 3 Sep 2023 12:32:09 +0000 (12:32 +0000)] 
Expose sqlite3_stmt_status() to JNI.

FossilOrigin-Name: d266acc23ecb7e76c8c68c6e89a76e6f3054f33f0262e60e06b258db5a5e2ccd

22 months agoExpose sqlite3_randomness() to JNI.
stephan [Sun, 3 Sep 2023 12:17:34 +0000 (12:17 +0000)] 
Expose sqlite3_randomness() to JNI.

FossilOrigin-Name: de9692242132b8f2c92ef4acb08dd3063327b18666cbb17c4f1153dee9146eaf

22 months agoExpose sqlite3_get/set_auxdata() to JNI.
stephan [Sun, 3 Sep 2023 11:58:33 +0000 (11:58 +0000)] 
Expose sqlite3_get/set_auxdata() to JNI.

FossilOrigin-Name: 0de3271717e0298070097d7ea0ecb996d2e95cf65384e494515a554d0a1dffed

22 months agoExpose sqlite3_get_autocommit() to JNI.
stephan [Sun, 3 Sep 2023 11:16:48 +0000 (11:16 +0000)] 
Expose sqlite3_get_autocommit() to JNI.

FossilOrigin-Name: 67391c6588c71af411767d1e4b63c5041a8a9e669102da318e3482ccfc9d9bb9

22 months agoRemove some unnecessary code.
stephan [Sun, 3 Sep 2023 11:08:31 +0000 (11:08 +0000)] 
Remove some unnecessary code.

FossilOrigin-Name: c7f9bbbbf0252c9749450e3ec994bf5ac945bd62428657ddff469291a0fd4b0d

22 months agoAdd a couple more sqlite3_backup tests.
stephan [Sun, 3 Sep 2023 10:36:21 +0000 (10:36 +0000)] 
Add a couple more sqlite3_backup tests.

FossilOrigin-Name: 5c2cf89d2c3ae5fc31b5e311bc2f2c1fef0037bdb0dff48c0a2a6bb6610e0215

22 months agoExport the sqlite3_backup_...() APIs to JNI.
stephan [Sun, 3 Sep 2023 10:23:03 +0000 (10:23 +0000)] 
Export the sqlite3_backup_...() APIs to JNI.

FossilOrigin-Name: 865a3df5d550f6f4edbf95854750706e4e747d8f1825ae73d300b8e31934959b

22 months agoExport the sqlite3_keyword_...() family of functions to JNI.
stephan [Sun, 3 Sep 2023 09:28:45 +0000 (09:28 +0000)] 
Export the sqlite3_keyword_...() family of functions to JNI.

FossilOrigin-Name: bd554db39159d8a538ce913d55285e3c417db8823c717a3e34bfa0678de42be7

22 months agoAdd sqlite3_config(SQLITE_CONFIG_LOG) support to Java and correct clearing of SQLITE_...
stephan [Sat, 2 Sep 2023 14:36:41 +0000 (14:36 +0000)] 
Add sqlite3_config(SQLITE_CONFIG_LOG) support to Java and correct clearing of SQLITE_CONFIG_SQLLOG. Correct missing names in propagated UDF exception messages.

FossilOrigin-Name: 652e2e82100ac3d8238d15ef6d43de4162fd02d695db4936ad5706fe4f2d7dc3

22 months agoExpose sqlite3_complete() to JNI. Slightly widen the definition of "canonical" for...
stephan [Sat, 2 Sep 2023 12:53:25 +0000 (12:53 +0000)] 
Expose sqlite3_complete() to JNI. Slightly widen the definition of "canonical" for the purposes of the @Canonical annotation. Add a few new tests.

FossilOrigin-Name: a59fe0cd9552128ca4186f4e66f0d188f2a57c7647f43828e42cb95801f350ce

22 months agoDuplicate code consolidation.
stephan [Sat, 2 Sep 2023 11:26:36 +0000 (11:26 +0000)] 
Duplicate code consolidation.

FossilOrigin-Name: a1872ae959cca11d5d8bc224aaeb0b53e772d999df9924b2e9ea84ceedb99148

22 months agoRemove a superfluous level of indirection in the JNI internals.
stephan [Sat, 2 Sep 2023 10:18:10 +0000 (10:18 +0000)] 
Remove a superfluous level of indirection in the JNI internals.

FossilOrigin-Name: 8dca6f7660c15eacbda20da1c66c9ef1de36864f78750658226b1a7baf22b726

22 months agoFurther JNI cleanups.
stephan [Sat, 2 Sep 2023 08:51:14 +0000 (08:51 +0000)] 
Further JNI cleanups.

FossilOrigin-Name: 30e38173c3ece0c9f8e7a9710f46cb5e8e8ef101c04531318a7adb070242f5dd

22 months agoAdd a timer to the JS SQLTester app to warn if it appears that loading the module...
stephan [Fri, 1 Sep 2023 17:51:09 +0000 (17:51 +0000)] 
Add a timer to the JS SQLTester app to warn if it appears that loading the module has failed, which is commonly caused by the test scripts not being compiled.

FossilOrigin-Name: f9c1f9cad1ad22f689a4afa13d59bf9969ddaed6624cbc16cb1bf5d1fd0c8a5b

22 months agoCorrect a Tester1.java test which inadvertently created a spurious db file in the...
stephan [Fri, 1 Sep 2023 16:28:46 +0000 (16:28 +0000)] 
Correct a Tester1.java test which inadvertently created a spurious db file in the current dir. Unrelated minor cleanups.

FossilOrigin-Name: 016bbdadbf9f95cef185d2606c23e3b3c724586fcca470e11e6fbdbaefd75c79

22 months agoMake the JNI-internal metrics opt-in rather than opt-out so client builds won't have...
stephan [Fri, 1 Sep 2023 14:20:39 +0000 (14:20 +0000)] 
Make the JNI-internal metrics opt-in rather than opt-out so client builds won't have them by default. Unrelated doc tweaks.

FossilOrigin-Name: aa72d25a22c80a7a376127266b8923f0661147c8bc483baa327230364851a255

22 months agoMake JNI interfaces of sqlite3_column/value_text() match the C ones better. Internal...
stephan [Fri, 1 Sep 2023 13:27:59 +0000 (13:27 +0000)] 
Make JNI interfaces of sqlite3_column/value_text() match the C ones better. Internal JNI cleanups and simplifications.

FossilOrigin-Name: eb24f97253d9c8e7c728c2ac67a0824b10ca67362ac4f8abb94d5d3c54c58c5b

22 months agoRemove some newly-dead code.
stephan [Fri, 1 Sep 2023 10:37:15 +0000 (10:37 +0000)] 
Remove some newly-dead code.

FossilOrigin-Name: dc0fa76b395c5e352116dc33cc1b455e5e9c9f01c285af52ccba4d37e4453b87

22 months agoExpose sqlite3_limit() to JNI and remove the all SQLITE_ macros from the Java interfa...
stephan [Fri, 1 Sep 2023 10:32:31 +0000 (10:32 +0000)] 
Expose sqlite3_limit() to JNI and remove the all SQLITE_ macros from the Java interface which are not directly exposed to client-level C code (SQLITE_MAX_... and SQLITE_THREADSAFE_...).

FossilOrigin-Name: 5fe5b0a585dbfa06cfca1fea40aea5ea3ccfe8295f41306ad2d5b851ace27203

22 months agoJNI build improvements. Rename a Java class. Get the jar target working again.
stephan [Fri, 1 Sep 2023 09:43:56 +0000 (09:43 +0000)] 
JNI build improvements. Rename a Java class. Get the jar target working again.

FossilOrigin-Name: d086b7844cace5c997261c97565aeef62aaeeef727ccc7e83f17c54d6217b779

22 months agoExpose sqlite3_stmt_explain(), sqlite3_stmt_isexplain(), and sqlite3_stmt_readonly...
stephan [Fri, 1 Sep 2023 06:50:17 +0000 (06:50 +0000)] 
Expose sqlite3_stmt_explain(), sqlite3_stmt_isexplain(), and sqlite3_stmt_readonly() to JNI.

FossilOrigin-Name: 208b786afe16eafaf0ce791f319a5e05f733a7b71ce1c542e1b83481b013ec38

22 months agoExport sqlite3_txn_state() to JNI.
stephan [Thu, 31 Aug 2023 19:35:59 +0000 (19:35 +0000)] 
Export sqlite3_txn_state() to JNI.

FossilOrigin-Name: d732f71d0a292dbb493f79f7c6ecd8a4effbfbc91453b1c54bdd9becf2d75bdb

22 months agoMinor JNI cleanups.
stephan [Thu, 31 Aug 2023 18:34:43 +0000 (18:34 +0000)] 
Minor JNI cleanups.

FossilOrigin-Name: 2e2bb841ef8b53266ec48d8c3408d6396f29f17922e858eac1b4f12f4adeb05e

22 months agoAdd convenience overloads of JNI sqlite3_table_column_metadata() to simplify usage.
stephan [Thu, 31 Aug 2023 15:24:46 +0000 (15:24 +0000)] 
Add convenience overloads of JNI sqlite3_table_column_metadata() to simplify usage.

FossilOrigin-Name: faf4e6d398f444d970be8b1364c984c67ccbc5f8a27f3aa93f05b8a8de7bec9b

22 months agoExport sqlite3_(db_)free_memory() and sqlite3_table_column_metadata() to JNI. Further...
stephan [Thu, 31 Aug 2023 14:57:01 +0000 (14:57 +0000)] 
Export sqlite3_(db_)free_memory() and sqlite3_table_column_metadata() to JNI. Further internals renaming for consistency and legibility.

FossilOrigin-Name: 7c86aa3400ed591d38c1828f366f4b5de97954c2b301919d3f06d9c2d3d7d1f2

22 months agoUse mutexes to make sqlite3_set_clientdata() and sqlite3_get_clientdata()
drh [Wed, 30 Aug 2023 18:51:26 +0000 (18:51 +0000)] 
Use mutexes to make sqlite3_set_clientdata() and sqlite3_get_clientdata()
threadsafe.

FossilOrigin-Name: 443ea20ddb0f3bf5d77ef59cd4678f0e32d7da328002bb44d6fc080a53a37e29

22 months agoReplace JNI's per-db-instance state tracking with the new sqlite3_set/get_clientdata().
stephan [Wed, 30 Aug 2023 18:45:42 +0000 (18:45 +0000)] 
Replace JNI's per-db-instance state tracking with the new sqlite3_set/get_clientdata().

FossilOrigin-Name: e7c11d34ee2eebdca4d9db1496bbb4152e4c62745c083ad5e0337733e8d1254e

22 months agoRemove another unreachable branch in the sqlite3_set_clientdata() logic.
drh [Wed, 30 Aug 2023 17:41:55 +0000 (17:41 +0000)] 
Remove another unreachable branch in the sqlite3_set_clientdata() logic.

FossilOrigin-Name: 57e31e6b10b2aa68b6039914d191819bae0aa60999a99d5ef23ca18128b72e0e

22 months agoRemove an unreachable branch, and improve documentation of
drh [Wed, 30 Aug 2023 17:14:12 +0000 (17:14 +0000)] 
Remove an unreachable branch, and improve documentation of
sqlite3_set_clientdata().

FossilOrigin-Name: 565c68adee64b6c838f2fcb162485b6cfe9a976adb79de4370be98fcd4af2baf

22 months agoFix to the sqlite3_get_clientdata() interface.
drh [Wed, 30 Aug 2023 15:42:41 +0000 (15:42 +0000)] 
Fix to the sqlite3_get_clientdata() interface.

FossilOrigin-Name: 937cd1762b36d48d9e7bafe42e99e524c9b5528d39f64521bce2f81d9c887db8

22 months agoNew experimental API for attaching client data to a database connection.
drh [Wed, 30 Aug 2023 15:20:15 +0000 (15:20 +0000)] 
New experimental API for attaching client data to a database connection.

FossilOrigin-Name: d542837fdb42ebe810fc99225860d2cc7e6dd829a635bde820a09beff6bcb481

22 months agoWhen a JS SQLTester script throws, report the exception details back to the UI regard...
stephan [Wed, 30 Aug 2023 14:20:02 +0000 (14:20 +0000)] 
When a JS SQLTester script throws, report the exception details back to the UI regardless of whether it's fatal.

FossilOrigin-Name: 273d3b05f630d399d42914e95c416b107b4746bbef129cfba9d00fd921666261

22 months agoAdd a JS implementation of Java's SQLTester.
stephan [Wed, 30 Aug 2023 13:07:35 +0000 (13:07 +0000)] 
Add a JS implementation of Java's SQLTester.

FossilOrigin-Name: b530792a514d95c4e8f93cf2170d9fc4de367055fa1704fc171551c946024fa9

22 months agoAdd a UI, of sorts, to the JS SQLTester. js-tester
stephan [Wed, 30 Aug 2023 11:54:43 +0000 (11:54 +0000)] 
Add a UI, of sorts, to the JS SQLTester.

FossilOrigin-Name: 249e82b9917ea47c56ee1cbd3345a977d335fd3fc0d67a1ef157813ef4571c7c

22 months agoAdd a mechanism with which to import external SQLTester scripts into the JS testing...
stephan [Wed, 30 Aug 2023 00:22:54 +0000 (00:22 +0000)] 
Add a mechanism with which to import external SQLTester scripts into the JS testing tool.

FossilOrigin-Name: bb08ba020ce1d86ca6aa92f43d5ae915f67d08fa73120e1f603d150e76166624

22 months agoAdd directives support to JS SQLTester comparable to the Java impl. This brings the...
stephan [Tue, 29 Aug 2023 21:30:37 +0000 (21:30 +0000)] 
Add directives support to JS SQLTester comparable to the Java impl. This brings the two to feature parity.

FossilOrigin-Name: 7cef4a8300826adbdcb3b205e134a4272b12b4aa7dbee97731ac12282a4a9f06

22 months agoMore fleshing out of JS SQLTester.
stephan [Tue, 29 Aug 2023 20:44:40 +0000 (20:44 +0000)] 
More fleshing out of JS SQLTester.

FossilOrigin-Name: 8c503dfb9fa15389613a819fcc1792e23d3c05f99a9f450f82eac5125298726f

22 months agoJS SQLTestRunner can now run the Java impl's core-most sanity tests, missing only...
stephan [Tue, 29 Aug 2023 20:01:01 +0000 (20:01 +0000)] 
JS SQLTestRunner can now run the Java impl's core-most sanity tests, missing only support for directives.

FossilOrigin-Name: 5e798369375ce1b0c9cdf831f835d931fbd562ff7b4db09a06d1bdca2ac1b975

22 months agoNew conversion letters added to strftime(): %e, %k, %I, %l, %R, %P, %p, %T, %u.
drh [Tue, 29 Aug 2023 18:28:08 +0000 (18:28 +0000)] 
New conversion letters added to strftime(): %e, %k, %I, %l, %R, %P, %p, %T, %u.

FossilOrigin-Name: 058722b2d0b995195a8ce3effe9722ae1c18cb1e7a520b481030da0bd579fe41

22 months agoGet the JS SQLTester command handlers in place sans those which have to run SQL.
stephan [Tue, 29 Aug 2023 15:39:57 +0000 (15:39 +0000)] 
Get the JS SQLTester command handlers in place sans those which have to run SQL.

FossilOrigin-Name: d21b1217964a53f33b7ba3958b34aa8560dff8ede33e66f54aa0afbab7099ec3

22 months agoChange the version number to 3.44.0 to begin the next development
drh [Tue, 29 Aug 2023 15:38:54 +0000 (15:38 +0000)] 
Change the version number to 3.44.0 to begin the next development
cycle.  (Should have done this a few check-ins ago.)

FossilOrigin-Name: 253fe4a45decdcc4180c5aeccaf4cd0d1325a0f6df0913b0e6721ea3e26b4fe2

22 months agoAdd support for the CONCAT() and CONCAT_WS() SQL functions, modeled after
drh [Tue, 29 Aug 2023 15:24:41 +0000 (15:24 +0000)] 
Add support for the CONCAT() and CONCAT_WS() SQL functions, modeled after
the PostgreSQL behavior.

FossilOrigin-Name: 0b434ca7aa19eff4ad134a8c6f88f6a7ccab88864faa55e93579a2462d8ac3bc

22 months agoGet the basic parsing pieces and command dispatching in place in the JS SQLTester.
stephan [Tue, 29 Aug 2023 13:28:36 +0000 (13:28 +0000)] 
Get the basic parsing pieces and command dispatching in place in the JS SQLTester.

FossilOrigin-Name: 8fcc2a553c1e26734902bbdee0c38183ee22b7b5c75f07405529bb79db34145a

22 months agoInit bits of a port of Java's SQLTester to JS. Far from complete.
stephan [Tue, 29 Aug 2023 11:22:45 +0000 (11:22 +0000)] 
Init bits of a port of Java's SQLTester to JS. Far from complete.

FossilOrigin-Name: 60eec5ceda80c64870713df8e9aeabeef933c007f2010792225a07d5ef36baef

22 months agoChange a variable from "int" to "i64" to make it easier to prove that it cannot overflow.
dan [Tue, 29 Aug 2023 10:50:11 +0000 (10:50 +0000)] 
Change a variable from "int" to "i64" to make it easier to prove that it cannot overflow.

FossilOrigin-Name: 00a8b3a263f3537588063ce42fad6e21fa343dad850b086d0929ed1617eb44fc

22 months agoRemove some dead code. Add a skeleton SQLTester script for fts5.
stephan [Tue, 29 Aug 2023 00:10:31 +0000 (00:10 +0000)] 
Remove some dead code. Add a skeleton SQLTester script for fts5.

FossilOrigin-Name: 6c83e31fa96f65b61377c0c801cc32b3c8ca27a0c8442f860364bec258c003cb

22 months agoFactor out a superfluous struct member.
stephan [Mon, 28 Aug 2023 23:18:19 +0000 (23:18 +0000)] 
Factor out a superfluous struct member.

FossilOrigin-Name: 76d3911c370b3dc02d119045003f87ad20a6efd9f7a44d4feb59b7c801ac8981

22 months agoFurther minor internal JNI simplifications.
stephan [Mon, 28 Aug 2023 22:52:04 +0000 (22:52 +0000)] 
Further minor internal JNI simplifications.

FossilOrigin-Name: 1808d12ee0d1f1e5ee49d48c699ca10c4f822989ac9b4ac08f2b861513ee5997

22 months agoImprove threadability of the JNI collation-related bindings and add infrastructure...
stephan [Mon, 28 Aug 2023 21:27:32 +0000 (21:27 +0000)] 
Improve threadability of the JNI collation-related bindings and add infrastructure for similar cases.

FossilOrigin-Name: f02dad66b965b9e3c504001e9603af8f74977f151bede9db369f88e86a4aeb00

22 months agoCorrect JNI mapping of collations to be 1-db-to-many-collations.
stephan [Mon, 28 Aug 2023 20:21:56 +0000 (20:21 +0000)] 
Correct JNI mapping of collations to be 1-db-to-many-collations.

FossilOrigin-Name: b927b0f5a68684b0a9799396d153bf1e2306351e8039c2bacb3d5b2056a0634f

22 months agoUpdates to testrunner.tcl so that it runs fuzztest using multiple jobs.
dan [Mon, 28 Aug 2023 20:14:19 +0000 (20:14 +0000)] 
Updates to testrunner.tcl so that it runs fuzztest using multiple jobs.

FossilOrigin-Name: ceeabe9f8b31a30c65147fd270b92d43c7842247548cee9de165113991f6c2cf

22 months agoFix the "sdevtest" testrunner.tcl command so that it correctly enables asan on windows. testrunner
dan [Mon, 28 Aug 2023 20:02:59 +0000 (20:02 +0000)] 
Fix the "sdevtest" testrunner.tcl command so that it correctly enables asan on windows.

FossilOrigin-Name: 6463192369ff22eb15d4e34590ef55cd8a6f2501227835664816277806bf961b

22 months agoFixes for testrunner.tcl on windows.
dan [Mon, 28 Aug 2023 18:15:14 +0000 (18:15 +0000)] 
Fixes for testrunner.tcl on windows.

FossilOrigin-Name: 26ae090889640bfcf02a6dd5aa58044edd4d0708a11d8e005149f1a3c8495bba

22 months agoAnother fix for valgrind permutation. Remove the "copydir" table column - just add...
dan [Mon, 28 Aug 2023 16:28:00 +0000 (16:28 +0000)] 
Another fix for valgrind permutation. Remove the "copydir" table column - just add a [cp] or [copy] command to the test script where this functionality is required.

FossilOrigin-Name: 448b9a575e66960a0885864f88b99b6ea15655c77a42eef956c09c8dc70e539a

22 months agoRemove a pair of what are arguably unnecessary mutex locks (and often hit). More...
stephan [Mon, 28 Aug 2023 16:22:31 +0000 (16:22 +0000)] 
Remove a pair of what are arguably unnecessary mutex locks (and often hit). More JNI-internal cleanups.

FossilOrigin-Name: ecf07a0144dc6402b1e0924b1775d99dc465b27aa86a2718cac60a9b4c974312

22 months agoUpdate tool/mkctimec.tcl to account for [fe7365254d343e].
stephan [Mon, 28 Aug 2023 16:05:19 +0000 (16:05 +0000)] 
Update tool/mkctimec.tcl to account for [fe7365254d343e].

FossilOrigin-Name: 349aac7e8d513bc420e8948b84cf715e454443439fdcd5aff0f2b13815a9cbb3

22 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

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

FossilOrigin-Name: 71f239747c7934310dedf9fc0cbf84fbeeed53808234067147335c12396849a1

22 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

22 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

22 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

22 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

22 months agoFix the valgrind permutation on this branch.
dan [Mon, 28 Aug 2023 11:22:33 +0000 (11:22 +0000)] 
Fix the valgrind permutation on this branch.

FossilOrigin-Name: ccbf06760e8377f9209ba3fd4895a25fe1a5ea688c384bf357e765b6a2b4c2f7

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 months agoUpdates to testrunner.tcl so that it runs "make fuzztest" using multiple jobs.
dan [Sat, 26 Aug 2023 21:04:54 +0000 (21:04 +0000)] 
Updates to testrunner.tcl so that it runs "make fuzztest" using multiple jobs.

FossilOrigin-Name: 7596ea7074e0ac73312586ed3d28cdacf97f54b8af73f804cbc8066c94d4b4ef

22 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

22 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

22 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

22 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

22 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

22 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

22 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

22 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

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

FossilOrigin-Name: d6b5ecd28740c2c5d21797fce9fe137c8a83f702f22901720cc6e8b1b42af001

22 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