]>
git.ipfire.org Git - thirdparty/sqlite.git/log
larrybr [Sun, 26 Feb 2023 19:36:40 +0000 (19:36 +0000)]
Correct substantive error (DML and DQL versus DML) of last check-in.
FossilOrigin-Name:
703fa854f7423f6b1d80dc4ded0bd46b307145816a549a2481e183f51223a1a6
larrybr [Sun, 26 Feb 2023 19:10:57 +0000 (19:10 +0000)]
Revise doc for SQLITE_DBCONFIG_* options, for clarification and coverage of all vararg parameters. Also, a grammo nit swat.
FossilOrigin-Name:
aa25596b1eeb988d8ee098e4bac25aaa774c66e0fba2f7bd0ad31a4b62c7597f
drh [Sun, 26 Feb 2023 11:36:35 +0000 (11:36 +0000)]
In the [/info/
7c2d3406000dc8ac |omit-unused-subquery-columns optimization], be
sure to remove the EP_Skip and EP_Unlikely flags from the result set expressions
that get nulled-out. dbsqlfuzz
bf1d3ed6e0e0dd8766027797d43db40c776d2b15 .
FossilOrigin-Name:
21aec65e5e2a01e58dd0bb8c8b9b29b8414373b53353fc7ca80a152fdd27566b
drh [Sat, 25 Feb 2023 16:03:28 +0000 (16:03 +0000)]
Split out a new variant of cellSizePtr() that applies only to leaf pages,
for a small performance increase.
FossilOrigin-Name:
22d32eef8741ae4f2aac3869465e5a7d2e33c6bc2425dd8e77f2a746e43687e8
drh [Sat, 25 Feb 2023 15:34:09 +0000 (15:34 +0000)]
Remove an unnecessary and redundant corruption checks in defragmentPage().
FossilOrigin-Name:
2dc7342e12e9dac2d8345d045a17caa29c26eaf6f417dd052c7c645eddd6c58c
larrybr [Sat, 25 Feb 2023 15:15:40 +0000 (15:15 +0000)]
Revert (mostly) to earlier CLI response to -echo and SQL at the command line.
FossilOrigin-Name:
1c6cfcf6ed5e084e5eb6874a261f3670ab5fb3e5dbcf150f37c58b2f16351ee3
drh [Sat, 25 Feb 2023 12:50:54 +0000 (12:50 +0000)]
Performance optimization on sqlite3_vsnprintf().
FossilOrigin-Name:
4430e6e96dbf3d0b464776c132838dd3e456716e0ae5972fc7e0ece13b56ea25
drh [Fri, 24 Feb 2023 21:23:53 +0000 (21:23 +0000)]
Add the "on" option to the ".log" command in the CLI. Allow ".log on" and
".log off" even in --safe mode. Enable the .log command for fiddle builds.
FossilOrigin-Name:
6bba9100ae81466eeb49845c449cbfddf4f82f18b89f55e6ef575cbf66af63af
drh [Fri, 24 Feb 2023 21:05:12 +0000 (21:05 +0000)]
In the CLI, do not emit warnings about the incorrect usage of sqlite3_config()
in Fiddle.
FossilOrigin-Name:
847021b402a3e624e22959a70e3e29a4f069c2005534485779cdc018722b5863
drh [Fri, 24 Feb 2023 16:04:05 +0000 (16:04 +0000)]
Modify the sqlite3_config() interface so that the SQLITE_CONFIG_LOG and
SQLITE_CONFIG_PCACHE_HDRSZ opcodes can be called after sqlite3_initialize().
Enhancement request [
0b75886e6d48f7c2 ].
FossilOrigin-Name:
7902fb806b33a27932f9ca347246f4ac43091caad0a1536009985b650fd720e2
drh [Fri, 24 Feb 2023 15:59:27 +0000 (15:59 +0000)]
Back out the SQLITE_CONFIG_URI option from anytime-config.
FossilOrigin-Name:
0de98b8e21e4cbf2438160651585ea23ebea952c5a4e7d88e5eabe5cc49517b2
drh [Fri, 24 Feb 2023 13:45:51 +0000 (13:45 +0000)]
Adjust testrunner.tcl to make use of the new number_of_cores TCL command
available in testfixture, and to use no more than half the available cores.
FossilOrigin-Name:
e0122d3863ed03e7bb64400d6561cbc824ecb14d228949ffde443069dbb4223a
drh [Fri, 24 Feb 2023 13:25:49 +0000 (13:25 +0000)]
Add the "number_of_cores" TCL command to the testfixture.
FossilOrigin-Name:
16ee5a7b5d02cad51a35d5675fcc5bb50a62d1f243bde107fc89fed44ffd6a43
drh [Fri, 24 Feb 2023 12:55:24 +0000 (12:55 +0000)]
Merge enhancements from trunk into the anytime-config branch.
FossilOrigin-Name:
04b2fdf3bc986cd402e8a6c060e1b3989e60770695e2f8a4bc12c43e380a694c
drh [Fri, 24 Feb 2023 11:54:40 +0000 (11:54 +0000)]
Slightly faster and more precise floating-point to decimal conversion.
See [forum:/forumpost/
d1387c3979c7f557 |forum thread
d1387c3979c7f557 ] for
discussion.
FossilOrigin-Name:
6dea6f4738fc7d003183e94f08bd95181f23e165a966882c0bdc64708a05a607
drh [Fri, 24 Feb 2023 01:08:35 +0000 (01:08 +0000)]
Fix an incorrect optimization that was attempted as part of
check-in [
18de3a8e6b431a07 ].
FossilOrigin-Name:
f32055e8110a2eac6c9e26d1d1e620f0668bcb475d49d309dc549cea05e1e582
drh [Thu, 23 Feb 2023 22:08:22 +0000 (22:08 +0000)]
Omit unnecessary branches from the enhanced floating-point conversion
logic.
FossilOrigin-Name:
32b0ba0d27481d85a4b0037ec36befcbffecdec75891eba58569acb160045553
drh [Thu, 23 Feb 2023 21:18:47 +0000 (21:18 +0000)]
Increased precision of floating-point to decimal conversions when the
floating point value has no fractional part.
[forum:/forumpost/
d1387c3979c7f557 |Forum post
d1387c3979c7f557 ]
FossilOrigin-Name:
18de3a8e6b431a075143631eafdcf0e1b1a21868b417394c365d46d2feca10b5
drh [Thu, 23 Feb 2023 14:43:15 +0000 (14:43 +0000)]
Fix harmless compiler warnings and a code indentation error.
FossilOrigin-Name:
de6c5c6bb49a0beca793cdc0462da2c17bb05f3292e08dd815be29b45b59a8fb
drh [Thu, 23 Feb 2023 14:22:29 +0000 (14:22 +0000)]
Allow the sqlite3_config() interface to be invoked at any time for a few
choosen options: SQLITE_CONFIG_LOG, SQLITE_CONFIG_URI, and
SQLITE_CONFIG_PCACHE_HDRSZ. This list will likely change before release.
FossilOrigin-Name:
e1702eb48d13c7c9b7605f1e77242672222c53059edcdc4e9cea59510715822a
drh [Thu, 23 Feb 2023 01:52:54 +0000 (01:52 +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:
7ee22f95e7a7d8650f961f20e304e56c7813e624f05655d7392ca9347748270f
drh [Wed, 22 Feb 2023 21:47:02 +0000 (21:47 +0000)]
Enable the count-of-view optimization by default.
Enhancement request [
eaed8e36ce888f1e ].
FossilOrigin-Name:
a4aacdd323a854d771c8cb1e2e4cfc4fb66b0020cfed23525733603605f5c63b
drh [Wed, 22 Feb 2023 21:11:34 +0000 (21:11 +0000)]
Avoid computing the values for unused result-set columns in subqueries.
Performance optimization request [
baa5bb76c35a124c ].
FossilOrigin-Name:
7c2d3406000dc8ac5a99cc205b036356b67e4b0b94738592ffc5680749696904
drh [Wed, 22 Feb 2023 20:50:51 +0000 (20:50 +0000)]
Update the version number to 3.42.0 to begin the next development cycle.
FossilOrigin-Name:
65910216393ed287dbc7e42a2598b6980183c62a64da6572cb691ff4ee23555d
drh [Wed, 22 Feb 2023 20:42:15 +0000 (20:42 +0000)]
Remove the push-down optimization restriction that was added by
check-in [
1ad41840c5e0fa70 ] because it is no longer needed after
the enhancements to compound query processing in check-in [
27655c9353620aa5 ]
This resolves the performance regression reported by
[forum:/forumpost/
bcc4375032 |forum post
bcc4375032 ].
FossilOrigin-Name:
aa6bd6dff751223e302575c60f335707e4bb820bff716cab3706b564e18ed7ed
stephan [Tue, 21 Feb 2023 20:08:10 +0000 (20:08 +0000)]
Remove some unnecessary bind() calls in JS code.
FossilOrigin-Name:
71215599cd8ebb970500d8366dfac40420a9a6b243ea9d6ba62d5cde28fae3d3
stephan [Tue, 21 Feb 2023 18:47:25 +0000 (18:47 +0000)]
Unconditionally disable -sSTRICT_JS flag in wasm build because it no longer works with emsdk 3.1.31+.
FossilOrigin-Name:
b5e0b69649e6341ffff4e62f9f68abd2a53519f73964559a133f3b708e007e98
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 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
drh [Thu, 16 Feb 2023 19:41:39 +0000 (19:41 +0000)]
A few simple test cases for the omit-unused-subquery-column optimization.
FossilOrigin-Name:
cf8f57c53425d89619ece10edc197d7d28946d3b23fcb4f526330196c76d9cc1
drh [Thu, 16 Feb 2023 18:04:49 +0000 (18:04 +0000)]
Provide an optimization-disable mask for this optimization. Do not do the
optimization if the subquery is an aggregate or is distinct, but allow it to
be an ephemeral subquery. Do not omit columns that are used in the ORDER BY
of the subquery.
FossilOrigin-Name:
6b1a1f374d1372f11f5420d99645b218867100bf070bd3a8885bf5f00c189dff
drh [Thu, 16 Feb 2023 15:54:55 +0000 (15:54 +0000)]
Do not perform the omit-unused-subquery-columns optimizations on a
subquery that is DISTINCT, as that can lead to incorrect results.
FossilOrigin-Name:
cc148503db8ef180bce984328da7e84959afadd6a9613c2d03bc1eafeb95dfad
drh [Wed, 15 Feb 2023 19:53:08 +0000 (19:53 +0000)]
Fix the subquery result column NULL-ifier so that it correctly handles
subquery columns past the 63rd column.
FossilOrigin-Name:
77b220a7240425fa83e142ceef78505208e6e38d797070e146b9f7d255f753c7
drh [Wed, 15 Feb 2023 17:53:17 +0000 (17:53 +0000)]
Do not compute result columns of subqueries that are never used. Make those
columns NULL instead. This optimization potentially resolves the enhancement
request described by [/tktview/
baa5bb76c35a124c |ticket
baa5bb76c35a124c ].
FossilOrigin-Name:
5dec3cc0225296a043d17f73126d477d90a604f82b3180628176d8f950adbce8
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 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
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
dan [Mon, 6 Feb 2023 10:47:57 +0000 (10:47 +0000)]
Fix some test scripts that were failing with SQLITE_OMIT_VIRTUALTABLE builds.
FossilOrigin-Name:
81c118d90b281b30f40b3eeefaeb2c8350aa40080b4fe7de8f21d263986c6acb
drh [Sun, 5 Feb 2023 20:29:10 +0000 (20:29 +0000)]
Do not use a Bloom filter if any outer loop lacks STAT1 data, since without
STAT1 data, the query planner cannot make an accurate determination of
whether or not a Bloom filter will be useful. This fixes the problem
reported by [forum:/forumpost/
56de336385 |forum post
56de336385 ].
FossilOrigin-Name:
e6ab96bd0b9efc51fd703bf7e92b079943ad9a3b92183d434adc11fb7d238afb
drh [Sun, 5 Feb 2023 17:40:03 +0000 (17:40 +0000)]
Add the "devtest" makefile target that runs both fuzztest and testrunner.
FossilOrigin-Name:
c81398c6215d6d1bc7a15b6be9bb1f81effd430ff0a7c86158372accfa77814c
drh [Sun, 5 Feb 2023 17:09:18 +0000 (17:09 +0000)]
In fuzzcheck, only show the description of each database if the -v option
is specified.
FossilOrigin-Name:
6a58179aaffa77a5542ab620ffce6f68135e399de957b1a97113fd2f1dc0c098
drh [Sun, 5 Feb 2023 00:47:27 +0000 (00:47 +0000)]
Restore a test for pBt NULL that was removed by [
12a14711afa6cddb ] but turned
out to be necessary, as dbsqlfuzz quickly showed us. Test case added to TH3.
FossilOrigin-Name:
647c89dd2f90da1605e6fc01ecc8c1367c12c06b3a972ed682a69e85bf1d77e9
drh [Sun, 5 Feb 2023 00:32:32 +0000 (00:32 +0000)]
Modify the status line output from testrunner so that each line overwrites
the previous rather than scrolling.
FossilOrigin-Name:
ad4d28cd68589a9259069c77c8d375ae49cfd0bcdf3b03d3e84418569e12ebfc
drh [Sun, 5 Feb 2023 00:24:42 +0000 (00:24 +0000)]
Changes to the sqlite_dbpage virtual table to tag or remove unreachable
branches.
FossilOrigin-Name:
12a14711afa6cddbf64d5307fd239fc597027d4356a431ad75836025f4bad83c
dan [Sat, 4 Feb 2023 21:25:17 +0000 (21:25 +0000)]
Avoid running rbu tests under permutation "journaltest", which does not support wal. Fix some other test script problems.
FossilOrigin-Name:
92f018698a87ed32acc31d83f7246dbb7295867bd6a801b7984a16f97a5c7786
drh [Sat, 4 Feb 2023 20:53:31 +0000 (20:53 +0000)]
Add ALWAYS() and NEVER() macros to unreachable branchs in sqlite_dbpage.
FossilOrigin-Name:
db875cd6be3b6e0032325cf42e6846eb41a7f099eb4561baf402d914446b052d
drh [Sat, 4 Feb 2023 20:07:52 +0000 (20:07 +0000)]