]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Wed, 22 Mar 2023 13:47:05 +0000 (13:47 +0000)]
Merge the 3.41.2 patch into the reuse-schema-3.41 subbranch of reuse-schema
FossilOrigin-Name:
995fa4d09dd15478222eb790da7b5b1a9ffcf5d537f3faa396cd0f9b939fd739
drh [Wed, 22 Mar 2023 11:56:21 +0000 (11:56 +0000)]
drh [Wed, 22 Mar 2023 11:12:28 +0000 (11:12 +0000)]
Increment the version number in the TEA configure script to 3.41.2.
FossilOrigin-Name:
2bb74aa501b7245f4e4d789630fe8c5265c7644ce223404fe7360d5a1fe8cd76
drh [Tue, 21 Mar 2023 11:27:41 +0000 (11:27 +0000)]
Fix a valgrind error and potential buffer overread when handling a corrupt database.
FossilOrigin-Name:
cb8b34fa1aa8bbe756ad9cfd864f93f8b5a78948b2622aaa230d4db18b846a4f
drh [Mon, 20 Mar 2023 15:50:40 +0000 (15:50 +0000)]
Fix a problem causing a cursor to retain an out-of-date cell-info cache when processing a DISTINCT query on values that are identical according to their collation sequence, but different on disk.
FossilOrigin-Name:
b02811847cbb9c80ba886d3e84fc6a8048cde5c932405f50416baf6e0cbd78e9
drh [Mon, 20 Mar 2023 01:59:58 +0000 (01:59 +0000)]
Fix problems with the sqlite3_error_offset() function and its use in the CLI.
FossilOrigin-Name:
d5cd6c885b71b0939f5832fbb63bf800ae03dbbc2dc0f7beab1270133d414c54
drh [Sun, 19 Mar 2023 21:53:35 +0000 (21:53 +0000)]
Increase the size of ref-count values in the pager layer to 64-bits, to avoid
any reasonable possiblity of overflowing the counters.
FossilOrigin-Name:
824611ad33011bda676ce6c9c3cb2b46442fc0a48c458bdc86dd960623c1e945
drh [Sun, 19 Mar 2023 10:30:02 +0000 (10:30 +0000)]
Avoid a buffer overread in fts3 that could occur when processing a corrupt record.
FossilOrigin-Name:
1f91fe4bfc81bf66f9c8f0aebe0acdbac89e2c20d90a5eb4ea0a3c560b82a9cd
dan [Fri, 17 Mar 2023 14:22:45 +0000 (14:22 +0000)]
Fix a potential buffer overread in the recovery extension.
FossilOrigin-Name:
78836713c965066cb9c1cc732a9cecb1d74a25f37775a01c088393881e4fd8d6
drh [Fri, 17 Mar 2023 12:25:10 +0000 (12:25 +0000)]
Ensure that an error does not delete the Table object out from under
the xConstruct method of a virtual table.
dbsqlfuzz
7cc8804a1c6d4e3d554d79096e6ea75a7c1c7d2d
FossilOrigin-Name:
c5bd0ea3b5b2f3ed8e971c5fd6e85e8f06d8055d74df65612c3794138306e6ba
drh [Fri, 17 Mar 2023 10:30:05 +0000 (10:30 +0000)]
drh [Fri, 17 Mar 2023 00:10:06 +0000 (00:10 +0000)]
Fix assert() statements that would (incorrectly) fire if an IF NOT EXISTS
trigger that already exists contained two or more RETURNING clauses.
FossilOrigin-Name:
9b43b34d81adb1a8fd5e087f6c61387ed3a2e3e604418e295906d220f5cc5254
drh [Thu, 16 Mar 2023 21:05:59 +0000 (21:05 +0000)]
Correctly handle SELECT DISTINCT ... ORDER BY when all of the result set terms
are constant and there are more result set terms than ORDER BY terms.
FossilOrigin-Name:
097512b60498803570fe80d0403963ed2b5cecbee7156af355418ff9f1851d60
drh [Thu, 16 Mar 2023 10:21:52 +0000 (10:21 +0000)]
Do not use the one-pass optimization on an UPDATE if there is a subquery
in the WHERE clause, since if the subquery is hidden behind a short-circuit
operator, the subquery might not be evaluated until after one or more rows
have been updated.
FossilOrigin-Name:
b5d8a9a6a58b4eb81a663192f578e0fbed72e8155bc7e1100ece04e8394a1984
drh [Thu, 16 Mar 2023 09:16:31 +0000 (09:16 +0000)]
drh [Thu, 16 Mar 2023 09:12:09 +0000 (09:12 +0000)]
Fix a broken assert() in the recovery extension.
FossilOrigin-Name:
048711e49002e59cbaf51079403a3f37abaa7d3a04e0cb20de4aed2d56c0e837
drh [Wed, 15 Mar 2023 18:05:02 +0000 (18:05 +0000)]
Disallow the one-pass optimization for DELETE if the WHERE clause contains
a subquery.
FossilOrigin-Name:
25e1831885e8de370482a1e9f664f1590fa49995048fb16e1f948acd2a29c3e3
drh [Tue, 14 Mar 2023 20:16:48 +0000 (20:16 +0000)]
drh [Sat, 11 Mar 2023 23:29:34 +0000 (23:29 +0000)]
The cherry-pick merge at [
371838562a675c1b ] caused a performance regression
for some queries, which is here fixed.
FossilOrigin-Name:
6d6d95fcedbc8758ab284d3014ae4a97af6247003bb3d0a7056f2e6bffa6cae4
drh [Fri, 10 Mar 2023 12:13:52 +0000 (12:13 +0000)]
drh [Fri, 10 Mar 2023 00:59:47 +0000 (00:59 +0000)]
Merge the branch-3.41 patches into the reuse-schema branch.
FossilOrigin-Name:
af08bd3e6eff9f519ae066f9c4c010ea78edff853e190ba7f3627238b7c078c4
drh [Thu, 9 Mar 2023 16:04:34 +0000 (16:04 +0000)]
In the Bloom filter optimization, hash all strings and blobs into the same
value, because we do not know if two different strings might compare equal
even if they have different byte sequences, due to collating functions.
Formerly, the hash of a string or blob was just its length. This could
all be improved.
FossilOrigin-Name:
cc8a0ee40cfc83ab42a0ff452de0a53fe17784aefb944ea7ac2cb078a8310730
dan [Thu, 9 Mar 2023 15:08:56 +0000 (15:08 +0000)]
Fix countofview.test so that it works with SQLITE_OMIT_PROGRESS_CALLBACK builds.
FossilOrigin-Name:
d55a7742c9447eba20a7fe252fb3edcabba3793030a55976d5a5e6c65bce7706
drh [Thu, 9 Mar 2023 14:14:18 +0000 (14:14 +0000)]
drh [Thu, 9 Mar 2023 13:58:49 +0000 (13:58 +0000)]
Merge count-of-view optimization fixes from trunk. But count-of-view is
still off by default for this branch.
FossilOrigin-Name:
cbbe8986ea26e78a7c5b122170cb5bf3f275f8e3a2941017f9ef11d7f3864256
drh [Thu, 9 Mar 2023 01:35:52 +0000 (01:35 +0000)]
Fix a possible NULL pointer dereference due to the sqlite3_interrupt()
enhancement in the 3.41.0 release.
FossilOrigin-Name:
66d24a220e3455a183b61490f42869520744cb3990e13f3ded92f1b6a7e248ce
drh [Wed, 8 Mar 2023 14:37:04 +0000 (14:37 +0000)]
Keep the historical datatype ("INT", not "NUM") for a table created as follows: "CREATE TABLE t1 AS SELECT CAST(123 AS INT) AS value;". The use of FLEXNUM only occurs on compound queries.
FossilOrigin-Name:
dc1033af4bf707095032f66d7a8ab63204f38bae244fab16a2bc870840d5bffd
drh [Wed, 8 Mar 2023 00:04:47 +0000 (00:04 +0000)]
drh [Sat, 4 Mar 2023 15:49:33 +0000 (15:49 +0000)]
Cherry-pick the agg-with-indexed-expr optimization fix from trunk.
FossilOrigin-Name:
b2ad89d3f0fe5c7582d97e65770eb93986ba8d4b031aafb04f86160383b47aab
drh [Fri, 3 Mar 2023 19:47:09 +0000 (19:47 +0000)]
Do not use an expression index on a generated column if generated column has the wrong affinity.
FossilOrigin-Name:
65ffee234787213ca3b12afde1b5ed7ae536366c30e984b14c0975da0c57917d
drh [Fri, 3 Mar 2023 18:47:29 +0000 (18:47 +0000)]
Enhance PRAGMA integrity_check so that it can detect when there are extra
bytes at the end of an index record, which might cause OP_IdxRowid to
malfunction.
FossilOrigin-Name:
c143f08713ec5dcc7609804f1fa0d795005c7ebd265b73e42342584d759eae01
drh [Fri, 3 Mar 2023 17:11:15 +0000 (17:11 +0000)]
When it is known when preparing a statement that X cannot be NULL, transform the expression (X IS NULL) to integer value 1 instead of 'true'. This is because under some circumstances, "Y IS TRUE" may not be equivalent to "Y IS 1".
FossilOrigin-Name:
0fc7f7c2a90ce9bc3462478441b4e628c90e5adff0d461e6cc3521371b7f1f08
drh [Thu, 2 Mar 2023 14:09:11 +0000 (14:09 +0000)]
When flattening the right operand of a LEFT JOIN,
ensure that the OP_IfNullRow opcode does not
NULL-out a subquery result that was computed within OP_Once.
FossilOrigin-Name:
c80b262c9dbde80c51872f36f9c4d406eba1c3f34468d36d5cb7084b1720ee5c
drh [Wed, 1 Mar 2023 20:44:34 +0000 (20:44 +0000)]
When flattening a view that is the right operand of a LEFT JOIN
always insert the TK_IF_NULL_ROW expression nodes, even for TK_COLUMN
expressions, as the TK_COLUMN might be a column from an outer query
and hence still need to be NULLed out.
FossilOrigin-Name:
371838562a675c1bdd9c80250230eb87ac0e5e135cc39abbdbe1f8b1b8149445
drh [Wed, 1 Mar 2023 15:28:34 +0000 (15:28 +0000)]
Make sure subtypes do not cross a subquery
boundary even if the function that returned the value with a subtype is
buried down inside a larger expression.
FossilOrigin-Name:
9dc460318d98308f51e31df216872ff96ece67c86f50c3fd11bf2a3df112afdd
drh [Sun, 26 Feb 2023 21:09:45 +0000 (21:09 +0000)]
When a table-valued function appears as the right table of a RIGHT JOIN,
the argument constraints on the table-valued function should be considered
part of the ON clause of the RIGHT JOIN.
FossilOrigin-Name:
d225d077c4fcc526e70d59018479bba723d464cac5ac805eeeebd7d2a48cedcf
drh [Thu, 23 Feb 2023 17:12:07 +0000 (17:12 +0000)]
Provide -DHAVE_LOG2=0 and -DHAVE_LOG10=0 compile-time options for use on systems
that lack the log2() and log10() standard math library routines, to cause
SQLite to substitute its own alternatives.
FossilOrigin-Name:
ff3362ab53752de10bd95a16804ce3ef31edd8f0cb3099841c3e4ffc1d79d64d
drh [Tue, 21 Feb 2023 21:26:04 +0000 (21:26 +0000)]
Update the reuse-schema branch to version 3.41.0.
FossilOrigin-Name:
bbd35706b79779e4f92d3042e29838d49f6d525009070e903a532d64e6ac25d6
drh [Tue, 21 Feb 2023 18:09:37 +0000 (18:09 +0000)]
drh [Tue, 21 Feb 2023 13:28:49 +0000 (13:28 +0000)]
Disable DQS by default in the MSVC makefile for the amalgamation tarball.
FossilOrigin-Name:
409a19145e9558686acab730b94c6d53691b6d0efcea1e9239fc7e5863586a85
drh [Tue, 21 Feb 2023 12:42:25 +0000 (12:42 +0000)]
Yet another comment typo fix. No changes to working code.
FossilOrigin-Name:
cdbdc8013fcfa8ce1bd4f5521c8d98afc53b9c577d43e5e6d0d1e15c789b910f
drh [Tue, 21 Feb 2023 12:34:00 +0000 (12:34 +0000)]
Fix a minor typo in a comment. No changes to working code.
FossilOrigin-Name:
7981671d1449b3fc6eb214deb558d91b87dc4fa6e38e24606625a146cc71664a
drh [Tue, 21 Feb 2023 12:30:18 +0000 (12:30 +0000)]
Fix formatting and improved documentation on the various sqlite3_file_control()
opcodes. Other minor documentation changes. No changes to working code.
FossilOrigin-Name:
13280f720a4ef5a1f7f2a2fbe72f374d3a2e12be9bc0c50f7fce50d0cd28a67f
drh [Mon, 20 Feb 2023 19:43:01 +0000 (19:43 +0000)]
drh [Mon, 20 Feb 2023 16:55:58 +0000 (16:55 +0000)]
drh [Sun, 19 Feb 2023 19:16:51 +0000 (19:16 +0000)]
drh [Sat, 18 Feb 2023 21:59:17 +0000 (21:59 +0000)]
Merge the latest trunk enhancements into the reuse-schema branch.
FossilOrigin-Name:
38fc1d3dfc791485acbaf61e7e187ae2a85cb054e33addb4a26566ecfb82814d
drh [Sat, 18 Feb 2023 20:31:26 +0000 (20:31 +0000)]
Fix stale requirement marks and fix a typo in the documentation for
sqlite3_preupdate_hook().
FossilOrigin-Name:
655991f5d9afdd3281049eb430921046e0ba90eef215020c2fb149adc0d3c4c5
drh [Sat, 18 Feb 2023 15:50:23 +0000 (15:50 +0000)]
Fix a harmless UBSAN warning in debugging code of the new unhex() function.
FossilOrigin-Name:
315574d5cbe5c805ff2163052d986b054985984fb45bfb064d1a7b39a22b90eb
drh [Fri, 17 Feb 2023 22:48:46 +0000 (22:48 +0000)]
drh [Fri, 17 Feb 2023 18:27:48 +0000 (18:27 +0000)]
Do not allow the COUNTOFVIEW optimization to run if the count() contains
a FILTER clause. dbsqlfuzz
4f8e0de6e272bbbb3e1b41cb5aea31e0b47297e3
FossilOrigin-Name:
29fc06465efb948f98d2733bb25ffa1e0662a0189304006b3d0be9fec7dd28c5
dan [Tue, 14 Feb 2023 18:09:40 +0000 (18:09 +0000)]
Update testrunner.tcl to run zipvfs test scripts on unix.
FossilOrigin-Name:
e6c8e19ab0d6e7526d4596b75a45bb6becaf3c029690f7e75c016eac803c9990
drh [Mon, 13 Feb 2023 19:32:40 +0000 (19:32 +0000)]
Ignore extra parentheses around a subquery on the RHS of an IN operator,
because that is what PostgreSQL does.
FossilOrigin-Name:
ecdeef43b27412b0b0b09e09a62ad3a03836a3fc80f2070268090e7ca8f02712
drh [Mon, 13 Feb 2023 18:42:01 +0000 (18:42 +0000)]
Do not allow WHERE clause terms to match constant string index terms, which
can happen if DQS_DDL is enabled. Follow-up to
[
44200596aa943963 ]. dbsqlfuzz
54c9db85ed4af7055f5fd0d50877875c82b11d46 .
FossilOrigin-Name:
2d2b91cc0f6fed8cb6f738dc7019047ce0f1e86b5eb8efa997095d08a32cbcb6
dan [Mon, 13 Feb 2023 18:37:48 +0000 (18:37 +0000)]
Allow vector-IN expressions like "(a, b) IN ( (?,?), (?,?) )" to use an index.
FossilOrigin-Name:
18a99d9cfbc3a0419342b3fe91a83d2217578d0f6e8ee1084237d000946b1942
dan [Mon, 13 Feb 2023 18:26:58 +0000 (18:26 +0000)]
Fix compile time option SQLITE_DEFAULT_SYNCHRONOUS so that it works consistently.
FossilOrigin-Name:
bf6f1ee77c4bf653f6cd2a3db5292b8c5c83f18ea9acf951107d22807546b28a
dan [Mon, 13 Feb 2023 16:10:31 +0000 (16:10 +0000)]
Allow vector-IN expressions like "(a, b) IN ( (?,?), (?,?) )" to use an index.
FossilOrigin-Name:
1815b15ddb8785a25b7617aab19e13c2410b9377389c16a85176025b3d9400e8
drh [Mon, 13 Feb 2023 12:46:22 +0000 (12:46 +0000)]
In the LIKE optimization, do not analyze the new virtual WHERE clause terms
until both have been added, since they are expected to be consecutive and
the analysis might add complementary terms.
This fixes a problem caused by [
44200596aa943963 ] and discovered by dbsqlfuzz
and recorded as case
7e3b5983727d843b910b2d9ab556e4afcd777cfb .
FossilOrigin-Name:
d35de3ad3fac6b30d3f266cbe4b1e9923eb31a1eff4a869205bbc3ba122eeec5
drh [Sat, 11 Feb 2023 21:11:39 +0000 (21:11 +0000)]
Change a variable from 32 to 64-bits to avoid a harmless compiler warning
in Xcode. [forum:/forumpost/
402d733c22 |Forum post
402d733c22 ].
FossilOrigin-Name:
0216ce23cf23bc147c5de6de178a6689b7ad744bf0ee0098809938b5fe10708b
drh [Fri, 10 Feb 2023 21:53:33 +0000 (21:53 +0000)]
Do a better job of detecting when a WHERE clause term might be useful to
an expression index. Fix for performance regression reported by
[forum:/forumpost/
e65800d8cb |forum thread
e65800d8cb ].
FossilOrigin-Name:
44200596aa943963bc6ca98b5d4fd5b9235d1109d8dfc1a75eeae353b4239142
dan [Fri, 10 Feb 2023 17:17:04 +0000 (17:17 +0000)]
Fix a problem with the fts5 trigram tokenizer and LIKE or GLOB patterns for which contain runs of 2 or fewer non-wildcard characters that are 3 or more bytes when encoded as utf-8.
FossilOrigin-Name:
00714b39b39c51519edbc0194f98c7275fecf96763a06fd95db6e1d81bb9f1f1
drh [Fri, 10 Feb 2023 14:20:18 +0000 (14:20 +0000)]
Ensure that the valueFromFunction() routine does not clear a prior
parser error. dbsqlfuzz
6fa816f20cf5b62260d635d110b88f38e29d8fe1 .
FossilOrigin-Name:
734766451123c98a467c3407562eaa097b3307c8a275e1c8dd93e4654fe78014
stephan [Fri, 10 Feb 2023 11:05:16 +0000 (11:05 +0000)]
Minor text-only updates to wasm demo/test HTML and license header.
FossilOrigin-Name:
f28e2a8613571fe3c23bfbbb602311071f4cb9731653216cfe436c38b0a59736
stephan [Fri, 10 Feb 2023 11:04:39 +0000 (11:04 +0000)]
Fix ext/wasm/fiddle build, which was silently broken by recent build refactoring.
FossilOrigin-Name:
dcf532931136d09bef23ccad669d486cb31daec8565317c3209c280b5695d45d
drh [Thu, 9 Feb 2023 15:32:24 +0000 (15:32 +0000)]
Disable the double-quoted string misfeature by default in CLI builds.
DQS can be reenabled at run-time using the ".dbconfig dqs_dml" and
".dbconfig dqs_ddl" dot-commands.
FossilOrigin-Name:
c995932c3ffe7f2710ebce0fa407eca3200418aa84febc15fb15f20f3758a98d
stephan [Thu, 9 Feb 2023 12:59:44 +0000 (12:59 +0000)]
Squelch two harmless signedness comparison warnings in shell.c.in.
FossilOrigin-Name:
bdd3edec13fa1142a8074c316e9ecec93fb278d42836eeb38587376fdf22cebd
drh [Thu, 9 Feb 2023 12:47:15 +0000 (12:47 +0000)]
drh [Thu, 9 Feb 2023 11:51:40 +0000 (11:51 +0000)]
The "flexnum" affinity that was added by [
44135d6ea84f7ba6 ] needs to also
be added to the output of the affinity() built-in function.
dbsqlfuzz
d309eaa5fe492c9606a8be876c2bc7dedb29d3d8
FossilOrigin-Name:
f4ec68ceefa3a607f37d6355aac89fd1ae1704da4061bad7f271db1f17c1dd3a
drh [Wed, 8 Feb 2023 20:29:48 +0000 (20:29 +0000)]
Back out the 'txn' enhancement to date/time functions. The duration of a
"transaction" is confused and needs to be straightened out prior to moving
forward with this change.
FossilOrigin-Name:
4a145f07322d768a07619bed27e0390d50f3a01d07787b9296234a5ceb6f1218
drh [Wed, 8 Feb 2023 17:28:42 +0000 (17:28 +0000)]
Always use 64-bit integers for stats associated with STAT1 and STAT4.
FossilOrigin-Name:
6647d1cb8b53102c8114b1f3e34173d907504d78aa3140eab53f88027a36660b
dan [Wed, 8 Feb 2023 17:28:08 +0000 (17:28 +0000)]
Better fix the problem where optimizing an fts5 table too often causes it to become unreadable (first attempt was [
35bed981 ]).
FossilOrigin-Name:
459d986d38fc0ccbfd66801e0f22900cfed831268cf59ac8d1cd1e556f0d1441
larrybr [Wed, 8 Feb 2023 14:49:52 +0000 (14:49 +0000)]
Cause gcc warning suppression in shell.c to be nice in other project(s).
FossilOrigin-Name:
6b41ba2e996ab7b9c3943ab93a19748db5cf37792f5d59d20eec301085282355
dan [Wed, 8 Feb 2023 14:25:00 +0000 (14:25 +0000)]
Update an assert() in the stat4 code that is only true for a well-formed database.
FossilOrigin-Name:
04439f3b23b22a3c187637f286764568ee922227e3e34b2e63075876b4d1f2ac
drh [Wed, 8 Feb 2023 14:17:34 +0000 (14:17 +0000)]
Fix an incorrect assert() in STAT4 logic added just a few days ago on
[2023-02-01|/info/
55a26c67ed4a3a93 ].
FossilOrigin-Name:
168fa2fb22b8c1ad80c7001a429d3a80b48acfbfebb5414a0caa76964ea647c3
drh [Wed, 8 Feb 2023 12:47:37 +0000 (12:47 +0000)]
Add the 'txn' date/time format. Change CURRENT_TIMESTAMP and similar to use
'tnx'-style semantics instead of 'now'-style.
FossilOrigin-Name:
61cc8ed8d3541eddf23a9d542179c3f0223c5b8519b54d3be79988a376e25a89
drh [Wed, 8 Feb 2023 12:31:47 +0000 (12:31 +0000)]
Test cases to show that CURRENT_TIMESTAMP and similar hold the same value
across a transaction.
FossilOrigin-Name:
7b2fa20e31b8a0314b9ccb97bb556898d552505dbc5943f248df3f86c0f4e008
drh [Wed, 8 Feb 2023 12:01:48 +0000 (12:01 +0000)]
Revert the behavior of date/time functions with no arguments so that they
once again work like 'now', even while CURRENT_TIMESTAMP and similar work
like 'txn'.
FossilOrigin-Name:
06180caff0f5d8aba83b9f7be682ccdd6cb2ffc228b557ee6c1fd00fe5c23e92
drh [Wed, 8 Feb 2023 11:34:05 +0000 (11:34 +0000)]
Change the behavior of date-time functions without any arguments (and thus
the CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP variables) so that they
work like 'txn' instead of like 'now'. This is an incompatibility with legacy,
but brings SQLite into conformance with all other SQL systems.
FossilOrigin-Name:
1ac78be54502779236645eac35b962797f2fb98307d059d2aa19658c4fa74cb7
stephan [Wed, 8 Feb 2023 08:49:52 +0000 (08:49 +0000)]
drh [Tue, 7 Feb 2023 23:55:59 +0000 (23:55 +0000)]
drh [Tue, 7 Feb 2023 21:55:14 +0000 (21:55 +0000)]
Add support for the 'txn' argument to date/time functions that works like
'now' but keeps the same time for the entire transaction.
FossilOrigin-Name:
5e4f45af96247e29910403a63ac148cb313b005f9c014b37a9a49d98f5fef9a6
dan [Tue, 7 Feb 2023 21:03:50 +0000 (21:03 +0000)]
Update an if(...) expression in sqlite3InitCallback() to match the same expression on trunk.
FossilOrigin-Name:
c73babca3839e5b6baa5c8596634ce7576527ab92e5312134f651b57f7febba9
dan [Tue, 7 Feb 2023 18:41:23 +0000 (18:41 +0000)]
Fix a test script problem causing "make test" to fail for non-RBU builds.
FossilOrigin-Name:
2abc3f9de0d2b66342598ab9015e62568ed20c7da4744a0f0a76b1db72c7e941
drh [Tue, 7 Feb 2023 16:58:58 +0000 (16:58 +0000)]
Fix a typo in example documentation code for sqlite3_vtab_in_next().
FossilOrigin-Name:
a95dbfae6133cc7aac950c3e7ba55a29d80b1625c39479a7d1d10b0868ee2be4
dan [Tue, 7 Feb 2023 15:57:02 +0000 (15:57 +0000)]
Avoid loading (and then discarding) schemas for all attached databases within an ATTACH command. This is inefficient for connections using shared-schema.
FossilOrigin-Name:
50174e82ea35ce61332bc7863ce494078cb799984bcee905e620d1b48be1b595
dan [Tue, 7 Feb 2023 15:29:17 +0000 (15:29 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
4d21640c58249a8bdbf4ed48ae22b745f3b87af7d046cc58cae6ff913b79d742
stephan [Mon, 6 Feb 2023 22:25:18 +0000 (22:25 +0000)]
stephan [Mon, 6 Feb 2023 21:20:59 +0000 (21:20 +0000)]
Roll back part of [
c54f29d8 ] which attempted to use symbols which that worker does not have access to.
FossilOrigin-Name:
90b12211376eb445df7221b3d3593394ff651ef93f4218492c6208bc74b8fc63
dan [Mon, 6 Feb 2023 19:00:54 +0000 (19:00 +0000)]
Fix RBU test scripts to avoid attempting to copy or delete a locked file.
FossilOrigin-Name:
f25eb898fce44120136f8ee5557305f43541e8a75323cfc3becf103f3fa795aa
drh [Mon, 6 Feb 2023 16:23:52 +0000 (16:23 +0000)]
drh [Mon, 6 Feb 2023 15:49:54 +0000 (15:49 +0000)]
drh [Mon, 6 Feb 2023 15:46:34 +0000 (15:46 +0000)]
Remove the long obsolete "client/server" mode tests.
FossilOrigin-Name:
08e3114caec0633fc54f8febb7f4732b46a1f47508bbca0a6a2bff02591254d5
dan [Mon, 6 Feb 2023 15:46:01 +0000 (15:46 +0000)]
Update test scripts speed1.test and speed1p.test so they may be run by testrunner.tcl.
FossilOrigin-Name:
e761d4b9c8dcacccc927d23f20fdf779a0ae5304281b5bd6aa998bade56f0a37
drh [Mon, 6 Feb 2023 14:48:02 +0000 (14:48 +0000)]
Shorten the status line for testrunner.tcl so that it fits on an 80-character
terminal.
FossilOrigin-Name:
b760a7307c453d95cf3b302c9867c84a9c899956c16c2ce1ea6cce8f025db425
drh [Mon, 6 Feb 2023 14:16:15 +0000 (14:16 +0000)]
Fix error in the releasetest makefile target from the previous check-in.
FossilOrigin-Name:
e7fe287d7904166c05d31b96ec8fd6f09318869c57437d1c661db7b79e6d8bf2
drh [Mon, 6 Feb 2023 14:11:18 +0000 (14:11 +0000)]
Update "releasetest" makefile targets to use testrunner.tcl.
FossilOrigin-Name:
1b95676b05701952cab7087f528028c48302f611fe63799551dc45098354d27f
stephan [Mon, 6 Feb 2023 14:01:19 +0000 (14:01 +0000)]
Add capability to override the JS's use of console.log/debug/warn/error() with client-provided versions via the bootstrap-time config object.
FossilOrigin-Name:
c54f29d8e55419eaa9168e799dab5030e89063b13d8390a50616606422d164dc
dan [Mon, 6 Feb 2023 13:36:34 +0000 (13:36 +0000)]
Fix a formatting problem in scanstatus2.test introduced by [
81c118d9 ].
FossilOrigin-Name:
928ab40edbf11c02b3f03e660051d9587243002b9220adc77f972c3758c12b19
dan [Mon, 6 Feb 2023 11:43:22 +0000 (11:43 +0000)]
Add the --fuzztest option to testrunner.tcl. Also, have it print whitespace over the top of the old report line before writing the new.
FossilOrigin-Name:
d83ce01fe1f21edcc93ad4c6308026156f235bab75e16e15389e27ad388fb274
dan [Mon, 6 Feb 2023 11:02:31 +0000 (11:02 +0000)]
Fix problems with test scripts preventing them from running with SQLITE_DEFAULT_MEMSTATUS=0 builds. Or builds without SQLITE_ENABLE_STAT4.
FossilOrigin-Name:
c0fbc89ed26b6eb361c1a05e2fb0d78d101fe2daf2947bbe5e0e58e0c2a779a2