]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Thu, 14 Sep 2023 16:45:46 +0000 (16:45 +0000)]
According to [forum:/forumpost/
9f6db917e1 |forum post
9f6db917e1 ], older
MSVC compilers are unable to convert a double directly into an unsigned
long long int, but must first go through a signed long long int. Work
around this by restricting the range of doubles that are converted into
long long integers so that only the lower 63 bits are used.
FossilOrigin-Name:
0ab05871ba36e2a0eddfbc700c1d39891c54c453727a4effcdac3327efec163b
drh [Thu, 14 Sep 2023 16:02:56 +0000 (16:02 +0000)]
Document the use of OPFLAG_ISNOOP as the P2 argument on OP_Delete. No
functional code changes.
FossilOrigin-Name:
d88f41b2cf2b721170d2428a50b717976091389d9a07d0ffa15c3323b0eaad37
dan [Thu, 14 Sep 2023 14:05:51 +0000 (14:05 +0000)]
Avoid a segfault in test program showdb.c that could occur when analyzing a corrupt db.
FossilOrigin-Name:
6bf3e90687d48243544cc07baa01cb1b25ee0b77c59437f96c8da8e5d8b8095e
drh [Thu, 14 Sep 2023 13:10:17 +0000 (13:10 +0000)]
Improve the sqlite3IntFloatCompare() routine so that it is testable.
FossilOrigin-Name:
bb221381fa38db5be1222d89c567a9bca0e6c441e26a8c797bd326b263556afb
drh [Thu, 14 Sep 2023 10:46:50 +0000 (10:46 +0000)]
Do not set the global bUseLongDouble flag based purely on sizeof(long double)
being more than 8. That is a necessary but not sufficient condition to use
the long double routines. Instead, do a run-time test to verify that long
double really does provide extra precision.
FossilOrigin-Name:
aa999d490b743f455f2fb6c41009098330380f0bc2e9b1c28fbc82141a9138ce
stephan [Wed, 13 Sep 2023 21:32:20 +0000 (21:32 +0000)]
JNI: enable the fts5-customization bits by default but elide them from the docs until it's clearer where they're headed. Unrelated minor doc tweaks.
FossilOrigin-Name:
21adb1aef24398fba918a5e1479ce2b6fd7e86d87eb9f2bea86a0eb43e8809c2
drh [Wed, 13 Sep 2023 20:35:04 +0000 (20:35 +0000)]
Improved comments on the hasHighPrecisionDouble() routine. No changes to
the underlying code.
FossilOrigin-Name:
810c635ce063d873e969bf83339c654f6008e84ce8a61f0ffc61806e98d13dde
drh [Wed, 13 Sep 2023 20:06:46 +0000 (20:06 +0000)]
Determine at start time whether or not the underlying hardware supports
high-precision long double computations.
FossilOrigin-Name:
9a854b919667e0e679a259542b2ee444ee416dbd73ecd9458f6ced35d9d3f264
stephan [Wed, 13 Sep 2023 17:16:25 +0000 (17:16 +0000)]
stephan [Wed, 13 Sep 2023 17:11:32 +0000 (17:11 +0000)]
Add JNI sqlite3_prepare_multi(), based on feedback.
FossilOrigin-Name:
fa1c1534724b03debc83ae35c2fadab83faf4b4e62b91981fed103888de41396
dan [Wed, 13 Sep 2023 11:24:58 +0000 (11:24 +0000)]
Replace an if() condition in fts5 that is always true with an assert().
FossilOrigin-Name:
2170312c8d7f076cbb8319227de3fac981432dae186bc1928cd217e41119b580
larrybr [Tue, 12 Sep 2023 23:21:39 +0000 (23:21 +0000)]
CLI .import to accept EOF in lieu of record terminator on last field of CSV (with multiple field records), per RFC 4180. [forum:
5b21c25bdfa |forum post
5b21c25bdfa ]
FossilOrigin-Name:
6f7842f577a28df1f809cd4bae9e8eafa26f2b54a25a1362ebbdebf5026be57c
dan [Tue, 12 Sep 2023 18:36:46 +0000 (18:36 +0000)]
Fix a use-after-free error in fts5 that could occur when querying the "rank" column immediately after another connection changes its definition. [forum:
a2dd636330 |forum post
a2dd636330 ].
FossilOrigin-Name:
cb54c2da52d3175844127ead41cfed18793e91ea52e02af2d57c1d17b4312437
stephan [Tue, 12 Sep 2023 17:49:25 +0000 (17:49 +0000)]
Clarify some metrics output in Tester1.java.
FossilOrigin-Name:
4ae7199a82f0b6e0f5575e39d8bd454e527ab949f0c59b773a44a078c65c5676
stephan [Tue, 12 Sep 2023 17:06:51 +0000 (17:06 +0000)]
Re-add the fts5 decls to sqlite3-jni.h, removed in a rebuild without fts5 enabled. Need a better solution for this problem.
FossilOrigin-Name:
6f269790a09350f49103bb0925e2a78a1f9b7a8aad84408eabbb8d64ef79d551
stephan [Tue, 12 Sep 2023 17:03:40 +0000 (17:03 +0000)]
Rename JNI sqlite3_errmsg() to sqlite3_errmsg16() for overall constency with the text()/text16() family of functions.
FossilOrigin-Name:
c4a8d8a5711bd2abeaf1c31046784d1bccff4b98e96522250866d1ee8ec6a9fe
stephan [Tue, 12 Sep 2023 16:33:57 +0000 (16:33 +0000)]
drh [Tue, 12 Sep 2023 14:36:07 +0000 (14:36 +0000)]
64-bit builds on Windows default to using UTF-8 output (as if the -utf8
command-line option had been specified.) 32-bit builds continue to use
Windows code pages. There is also a new -no-utf8 command-line option to
force the use of legacy code pages.
FossilOrigin-Name:
d8c7560e8822f336e8c4b300eb1f2e55203fdf9e756d2e8af719563235f79ebc
drh [Tue, 12 Sep 2023 14:09:45 +0000 (14:09 +0000)]
Show the "(utf8)" tag on the CLI banner in Windows if in UTF8 mode.
FossilOrigin-Name:
822699a4d9756ec68f17d6e06da7f994730bcf5c7d69ca15e9131721c4ff3b19
drh [Mon, 11 Sep 2023 20:09:05 +0000 (20:09 +0000)]
Add the -no-utf8 option to the Windows CLI to cause UTF-8 mode to be omitted.
FossilOrigin-Name:
4cb799c690986b8bd38d07461998824fa53418f7fe31f59d0bf38cae328d9b89
drh [Mon, 11 Sep 2023 20:02:38 +0000 (20:02 +0000)]
Make the -utf8 option the default behavior in the CLI on Windows for 64-bit
builds.
FossilOrigin-Name:
8b3c306def81546c5987f0f245d2bf3960218254c2833e9c27cd242e9118db62
drh [Mon, 11 Sep 2023 15:27:27 +0000 (15:27 +0000)]
Refuse to build amalgamation-tarball and snapshot-tarball if the TEA version
number disagrees with ./VERSION.
FossilOrigin-Name:
3308fdda4b81c110ba4a66d0b325e7653c2f8155e7864aeb78991ed1da061836
stephan [Mon, 11 Sep 2023 15:20:15 +0000 (15:20 +0000)]
Merge in JNI's significant divergence since it adopted sqlite3_client_data().
FossilOrigin-Name:
e8e07dbbeaa7799eb0b90726e18e994aaf8c8d316ab4bdb06da732bc51cf0919
drh [Mon, 11 Sep 2023 14:55:05 +0000 (14:55 +0000)]
Add support for the sqlite3_get_clientdata() and sqlite3_set_clientdata()
interfaces, to better support JNI.
FossilOrigin-Name:
9806c0dd2802d68b67c25c4f3347ed532f9a98b051e775d34e9182dd2f099891
stephan [Sun, 10 Sep 2023 10:56:28 +0000 (10:56 +0000)]
Roll back [
84e38341aeab ] because a direct pointer comparison is ill-advised when the client-data string is dynamically allocated.
FossilOrigin-Name:
7b884832b71c23e62ba3c0d53f7c89199734c351f909d84ac19ac18c7ddccbd8
dan [Sat, 9 Sep 2023 17:53:55 +0000 (17:53 +0000)]
Remove out-of-date comment regarding use of Parse.pConstExpr.
FossilOrigin-Name:
71548f72ad578db3d6ee409956386ace23ab2258d37cdc29ef2fb126e48f1ee3
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
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
dan [Fri, 8 Sep 2023 19:18:02 +0000 (19:18 +0000)]
dan [Fri, 8 Sep 2023 18:34:42 +0000 (18:34 +0000)]
Fix a problem with fts5 secure-delete mode causing fts5 to corrupt its records.
FossilOrigin-Name:
4b60a1c358c966f161601e749ccb0a7c5f4126e20350f4d6c83b6f35841fbe0a
dan [Thu, 7 Sep 2023 17:54:12 +0000 (17:54 +0000)]
Add -DSQLITE_OMIT_LOOKASIDE=1 to the "Sanitize" configuration in testrunner_data.tcl.
FossilOrigin-Name:
a917ebf17b27951d1c6906e9068e816ef29861701f2e8f4f1a13acce5737f680
drh [Thu, 7 Sep 2023 16:53:30 +0000 (16:53 +0000)]
Enhance the ./configure script and its associated Makefile.in so that the
--with-linenoise=DIR argument cause the linenoise command-line editing
library located in directory DIR to be linked with the sqlite3 CLI.
FossilOrigin-Name:
6c7822b554c01f01e3e02a385b3370313022b16ba8d932c2ba5d3c3be61361fe
dan [Thu, 7 Sep 2023 13:53:09 +0000 (13:53 +0000)]
Fix a buffer overread in the sessions extension that could occur when processing a corrupt changeset.
FossilOrigin-Name:
0e4e7a05c4204b47a324d67e18e76d2a98e26b2723d19d5c655ec9fd2e41f4b7
drh [Thu, 7 Sep 2023 13:48:42 +0000 (13:48 +0000)]
Fix a harmless compiler warning in the sqldiff.c utility.
FossilOrigin-Name:
e6390a656713b855258277b65066d2a701cedd05981f1672c9acc2d6dc37d032
drh [Thu, 7 Sep 2023 13:43:46 +0000 (13:43 +0000)]
Add the "tool-zip" makefile target with the intention of using it to build
the "sqlite-tool-*.zip" deliverables.
deliverables.
FossilOrigin-Name:
06e4af492d669bb45c00b1b876cd82ec8813ac9ed580eb1dddd18147f7fbe7f6
drh [Thu, 7 Sep 2023 02:13:01 +0000 (02:13 +0000)]
Fix a problem with the new xIntegrity method for virtual tables, and also fix
a bad assert() in FTS3 that was found by the new xIntegrity method.
FossilOrigin-Name:
52bbf44f2d9addc2b5f68b0fe33542470852310ce3a283e2c7ff4c52831d0ed1
drh [Wed, 6 Sep 2023 17:07:53 +0000 (17:07 +0000)]
Add documentation to sqlite3_get/set_clientdata() to make it clear that these
are security-sensitive interfaces that should not be exposed to potential
attackers.
FossilOrigin-Name:
2837061d66672a0a73c3fd2ff35ce0e1a66ee6d5365be25d4cc0ccba170c3665
drh [Wed, 6 Sep 2023 16:51:13 +0000 (16:51 +0000)]
Add the xIntegrity method to the sqlite3_module object, thus enabling
PRAGMA integrity_check to operate on virtual tables. Make use of this
new method in the FTS3/4, FTS5, and RTREE virtual tables.
FossilOrigin-Name:
2f08e7d233b6ddc28b61f0d17ae9b815a91c3c6e080862ce009dc0ad73c64cf5
drh [Wed, 6 Sep 2023 16:22:48 +0000 (16:22 +0000)]
drh [Wed, 6 Sep 2023 14:00:01 +0000 (14:00 +0000)]
Change the xIntegrity virtual table method signature so that it returns
an integer error code and writes the error message into a parameter.
FossilOrigin-Name:
f1d4024a8ca06cf954aaf1f612684d1a5d28492bde757695db3f22c50c649709
drh [Wed, 6 Sep 2023 12:52:00 +0000 (12:52 +0000)]
Add the xIntegrity method to the sqlite3_module object. Implement this
method in RTREE, FTS3/4, and FTS5 so that "PRAGMA integrity_check" also
verifies the correctness of shadow tables associated with those virtual
tables.
FossilOrigin-Name:
17bede8cdefd968210dd8a5a2617acbe12ba2c99fdd5e88c5def8665e7bec2d7
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
stephan [Wed, 6 Sep 2023 06:54:25 +0000 (06:54 +0000)]
drh [Tue, 5 Sep 2023 15:03:23 +0000 (15:03 +0000)]
Fix a few SQLITE_MISUSE returns so that they call sqlite3MisuseError().
FossilOrigin-Name:
93f74490faf8cc07e107afdab6737c6e5141ae1f01a05142bfcede2dd1b2ba4e
dan [Mon, 4 Sep 2023 16:48:31 +0000 (16:48 +0000)]
Add tests for, and source code comments to, fts5. No changes to code.
FossilOrigin-Name:
b12afff4efe4de84388d102060e8c312abd2f9eca8270b3c0f01ac6d1f2e329a
drh [Mon, 4 Sep 2023 12:50:17 +0000 (12:50 +0000)]
Do not make assumptions about the byteorder of PowerPC processors.
FossilOrigin-Name:
4a2498fed4c5436fbcd4179db85e2741fdab37d42b0eebf12f41ec4573ce2c61
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
stephan [Mon, 4 Sep 2023 05:58:13 +0000 (05:58 +0000)]
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
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
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
stephan [Sun, 3 Sep 2023 14:13:29 +0000 (14:13 +0000)]
stephan [Sun, 3 Sep 2023 12:46:09 +0000 (12:46 +0000)]
stephan [Sun, 3 Sep 2023 12:32:09 +0000 (12:32 +0000)]
stephan [Sun, 3 Sep 2023 12:17:34 +0000 (12:17 +0000)]
stephan [Sun, 3 Sep 2023 11:58:33 +0000 (11:58 +0000)]
stephan [Sun, 3 Sep 2023 11:16:48 +0000 (11:16 +0000)]
stephan [Sun, 3 Sep 2023 11:08:31 +0000 (11:08 +0000)]
stephan [Sun, 3 Sep 2023 10:36:21 +0000 (10:36 +0000)]
stephan [Sun, 3 Sep 2023 10:23:03 +0000 (10:23 +0000)]
Export the sqlite3_backup_...() APIs to JNI.
FossilOrigin-Name:
865a3df5d550f6f4edbf95854750706e4e747d8f1825ae73d300b8e31934959b
stephan [Sun, 3 Sep 2023 09:28:45 +0000 (09:28 +0000)]
Export the sqlite3_keyword_...() family of functions to JNI.
FossilOrigin-Name:
bd554db39159d8a538ce913d55285e3c417db8823c717a3e34bfa0678de42be7
drh [Sat, 2 Sep 2023 19:35:15 +0000 (19:35 +0000)]
Performance optimization to the OP_MakeRecord opcode.
FossilOrigin-Name:
2aef9af3dd493a82ba090ccb8ab1b8974349392ec3f1c35db7a3dbbec41b5c51
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
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
stephan [Sat, 2 Sep 2023 11:26:36 +0000 (11:26 +0000)]
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
stephan [Sat, 2 Sep 2023 08:51:14 +0000 (08:51 +0000)]
stephan [Sat, 2 Sep 2023 08:04:56 +0000 (08:04 +0000)]
Optimize sqlite3_get/set_clientdata() for the presumably common case of a static string pointer.
FossilOrigin-Name:
84e38341aeab4fd51690e8536d0101d00e3fb11cc50ebcff05ed219c98328872
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
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
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
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
stephan [Fri, 1 Sep 2023 11:10:09 +0000 (11:10 +0000)]
stephan [Fri, 1 Sep 2023 11:05:22 +0000 (11:05 +0000)]
In the OPFS VFS' importDb() methods, overwrite the header bytes 18 and 19 with 1 instead of 0. Both seem to work, but 1 is correct.
FossilOrigin-Name:
1c532e807bf8466b67d9600ab9630a6736de77259e9a71ac435641715ee0e04b
stephan [Fri, 1 Sep 2023 10:37:15 +0000 (10:37 +0000)]
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
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
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
stephan [Thu, 31 Aug 2023 19:35:59 +0000 (19:35 +0000)]
stephan [Thu, 31 Aug 2023 18:34:43 +0000 (18:34 +0000)]
dan [Thu, 31 Aug 2023 18:00:10 +0000 (18:00 +0000)]
Do not disable unused columns in a UNION ALL sub-query if any component of the sub-query is DISTINCT.
FossilOrigin-Name:
c84d5602ac9bfb4f12c3cf62033af616e51913c26877d1a0761363a625295f53
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
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
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
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
drh [Wed, 30 Aug 2023 18:19:40 +0000 (18:19 +0000)]
Fix a bug in json_array_length() introduced in version 3.43.0 by
check-in [
df099ad713011b67 ]. If the JSON input comes from json_remove(),
the removed array entries are still counted as part of the array length.
FossilOrigin-Name:
69a635958a4a14187e88dd297df8978a4805b1b0c7bff3ec29d5632c0f68d889
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
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
drh [Wed, 30 Aug 2023 16:03:27 +0000 (16:03 +0000)]
Fix the AVG() and TOTAL() functions (after the SUM() fix of [
77d3dcd283595c52 ])
so that they work with infinitites. Fixes a bug introduced by check-in.
[
c63e26e705f5e967 ]. Bug reported by
[forum:/forumpost/
8960fb40cc |forum post
8960fb40cc ].
FossilOrigin-Name:
6df6f17ccb404c648076ccff4200d0eb5437f0e3e82424bf3da5ea682b107bb4
stephan [Wed, 30 Aug 2023 15:51:42 +0000 (15:51 +0000)]
drh [Wed, 30 Aug 2023 15:42:41 +0000 (15:42 +0000)]
Fix to the sqlite3_get_clientdata() interface.
FossilOrigin-Name:
937cd1762b36d48d9e7bafe42e99e524c9b5528d39f64521bce2f81d9c887db8
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
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
stephan [Wed, 30 Aug 2023 13:07:35 +0000 (13:07 +0000)]
Add a JS implementation of Java's SQLTester.
FossilOrigin-Name:
b530792a514d95c4e8f93cf2170d9fc4de367055fa1704fc171551c946024fa9
stephan [Wed, 30 Aug 2023 11:54:43 +0000 (11:54 +0000)]
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
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
stephan [Tue, 29 Aug 2023 20:44:40 +0000 (20:44 +0000)]
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
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