]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Mon, 29 Nov 2021 17:23:27 +0000 (17:23 +0000)]
Add the unixepoch() function and the 'auto' and 'julianday' modifiers.
FossilOrigin-Name:
559fdc0aa76f4c207f99f7b0cee42043b402dc388165817529d9963b115a798c
drh [Sun, 28 Nov 2021 19:54:38 +0000 (19:54 +0000)]
Following a prior error, an ALWAYS() in sqlite3ExprCanBeNull() might be false.
dbsqlfuzz
5dbec6678a20e7595a34dfdd869a3b9722b3ca43 .
FossilOrigin-Name:
4e207401acce1bdc17025f2d55bd94234b435e286cd43e1eda03b6949a2a91d3
drh [Sat, 27 Nov 2021 14:13:22 +0000 (14:13 +0000)]
drh [Sat, 27 Nov 2021 12:03:51 +0000 (12:03 +0000)]
drh [Fri, 26 Nov 2021 20:26:37 +0000 (20:26 +0000)]
Add platform "Darwin-arm64" to test/releasetest_data.tcl.
FossilOrigin-Name:
1d5c9aacb8ab6349935561cc12734cf348c12c86e4663ddc7af113b3ed0f6186
drh [Fri, 26 Nov 2021 17:10:18 +0000 (17:10 +0000)]
Improved defenses against integer overflow when computing the size of a
memory allocations. No bugs were fixed here. But perhaps future bugs will
be prevented.
FossilOrigin-Name:
eb878c01f317f09e8ef6b1bd2ec8d6d5cd6ce0bdfe9da7fa7d92d2047cc9d9e4
drh [Fri, 26 Nov 2021 15:08:55 +0000 (15:08 +0000)]
Fixes to internal comments. No changes to code or documentation.
FossilOrigin-Name:
1489b196ce82cddf7360aff6c89219ca25e666187f0f5ff6419ba3b504cdef8d
dan [Wed, 24 Nov 2021 21:16:32 +0000 (21:16 +0000)]
Avoid splitting Failure-Detection test cases in wapptest.tcl.
FossilOrigin-Name:
654e6cf8ab493d48b1827bb8100d4e4366a8e889e647c233a9b1b1278a7133d0
dan [Wed, 24 Nov 2021 11:33:01 +0000 (11:33 +0000)]
Update Makefile.msc to support target "tcltest" in the same way as the autoconf build system.
FossilOrigin-Name:
0f131b92252afc95c8c2d160d4be9ac2a737a610ee355efcd819f1af3bae3c56
drh [Tue, 23 Nov 2021 22:28:09 +0000 (22:28 +0000)]
Changes a test pattern for RBU so that it works regardless of whether newer
TCL versions are used.
FossilOrigin-Name:
5a9921c92ade9e13c3e49c50325c96e3264f3ad352a187387a960783a68bc9d3
drh [Tue, 23 Nov 2021 12:59:25 +0000 (12:59 +0000)]
Fix a compiler warning in the dbserialize method of the TCL interface.
FossilOrigin-Name:
ba71d030fef4cd4251dc882acc6897dbf9aaba498652900c491b082add87404f
dan [Tue, 23 Nov 2021 11:34:43 +0000 (11:34 +0000)]
Exclude two recently added tests in where.test from valgrind runs. They fail due to the subtly different handling of real numbers under valgrind.
FossilOrigin-Name:
e842d2085b295ef1c927611f5d3b211fb6b513ca2676c074fe90331da81734eb
dan [Mon, 22 Nov 2021 16:50:41 +0000 (16:50 +0000)]
Omit wal mode tests in memdb1.test for builds and configurations that do not support wal mode.
FossilOrigin-Name:
0f13c0d9fd7757c6e0b845a285c0047d2c60293354335660d19d80ad799646fc
dan [Mon, 22 Nov 2021 16:48:42 +0000 (16:48 +0000)]
Omit wal mode tests in vacuum-into.test for builds and configurations that do not support wal mode.
FossilOrigin-Name:
65de17635468791678b9d205552a4faec2d6c3b7d330c559b6f81ab072254533
dan [Mon, 22 Nov 2021 16:43:53 +0000 (16:43 +0000)]
Do not attempt to run the tests in alterfault.est with SQLITE_OMIT_ALTERTABLE builds.
FossilOrigin-Name:
6f6f31c7df6831af28a24e69f744beeade739bb7bbb0810d5bbe592e4cd75e3d
dan [Mon, 22 Nov 2021 16:27:36 +0000 (16:27 +0000)]
Fix a typo in memdb1.test preventing tests from passing with -DSQLITE_DEFAULT_AUTOVACUUM=1 builds.
FossilOrigin-Name:
eff4187c50790827d05bb28867cc6546196e7eee3b4c4de54b4e68bfb4e2830e
drh [Mon, 22 Nov 2021 16:06:57 +0000 (16:06 +0000)]
There are two possible error messages from stat-9.1, depending on
compile-time options. Adjust the test case to accept either one.
FossilOrigin-Name:
0f567b61072e214c40cae1441889f83622a975f429b41803dfbed687718731c8
drh [Mon, 22 Nov 2021 13:59:06 +0000 (13:59 +0000)]
In fuzzcheck, improve the defense against long delays due to
rogue busy_timeout macros in fuzzer-generated scripts.
FossilOrigin-Name:
3024d7ca03541a6fe3d264fdc82dd49f8f6b51d2fbeec4dfc9c6dd72806b271a
drh [Mon, 22 Nov 2021 13:35:40 +0000 (13:35 +0000)]
drh [Mon, 22 Nov 2021 12:59:44 +0000 (12:59 +0000)]
In the previous check-in, do not overwrite the SQLITE_CORRUPT signal with
an SQLITE_OK before exiting fts3auxNextMethod().
FossilOrigin-Name:
396688ae5c10b9e7df1c76a3c6f548abf7a7ddad50c25fb23e194201dbb2e857
dan [Mon, 22 Nov 2021 08:12:14 +0000 (08:12 +0000)]
Fix a crash in the fts3aux code that could occur handling corrupt records.
FossilOrigin-Name:
cdcd65b89ecffd380483404f5b1379beffd7ff107acaa5bc1185651cfacaa220
drh [Sat, 20 Nov 2021 13:30:03 +0000 (13:30 +0000)]
New test cases for STRICT and NOT NULL in PRIMARY KEY.
FossilOrigin-Name:
0eafbc2f31b83f48833b19894ff3252a63c319ff501506ef9f744cca813a3a24
drh [Fri, 19 Nov 2021 19:11:58 +0000 (19:11 +0000)]
Small performance increase and size reduction for sqlite3ExprCompare().
This change also handles some corner cases without the need for ALWAYS().
FossilOrigin-Name:
d814ba6effc7c5b021ff625b57371627f3ee326687c508da99f78bc164386b7e
dan [Fri, 19 Nov 2021 14:02:43 +0000 (14:02 +0000)]
Fix a benign data race in os_unix.c that might trouble tsan and similar tools.
FossilOrigin-Name:
95806ac1dabe4598170061d903ae30f09bafac149ff6696963a7e056ac846cdb
drh [Thu, 18 Nov 2021 20:56:59 +0000 (20:56 +0000)]
Minor tweaks to the way auxiliary tools are built, to make it easier to
customize the builds without having to alter the code.
FossilOrigin-Name:
90b06b6f42918852cfb15258be462c6bed260c6a618b86fa9084bac72fa2f58f
dan [Thu, 18 Nov 2021 20:11:31 +0000 (20:11 +0000)]
Fix a performance regression in rtree introduced by the previous commit.
FossilOrigin-Name:
7f42b8e1a25c0830fe81e4668318998af595826784a50780a5c1c0b4d95a2482
dan [Thu, 18 Nov 2021 19:15:40 +0000 (19:15 +0000)]
Fix a problem slowing down the handling of == constraints in the rtree module.
FossilOrigin-Name:
509027e964f28efca088a41fe32f01c38316f7a919de63a8835e3bc7c3fb0787
drh [Thu, 18 Nov 2021 15:40:05 +0000 (15:40 +0000)]
Improve CSV quoting in the CLI using the strstr() function.
FossilOrigin-Name:
b7927bf91049c903730a280484bbcdcdedc259a31fbcc3d3b0c7d046ec321633
drh [Thu, 18 Nov 2021 13:25:31 +0000 (13:25 +0000)]
Fix an obscure problem associated with quoting of CSV output in the CLI.
FossilOrigin-Name:
38a9b660214c06aa6650c6bb11a429a8c74c09f1e0e5c18d691e36de4af7af71
dan [Tue, 16 Nov 2021 13:36:50 +0000 (13:36 +0000)]
Fix a problem causing an OOM within an ALTER TABLE ADD COLUMN command that adds a column with a CHECK constraint to go unreported.
FossilOrigin-Name:
a33f5e93ecb7d84291f6fecc7b60f0c555034aa47e24584c63c78d8a94710d82
drh [Mon, 15 Nov 2021 19:10:13 +0000 (19:10 +0000)]
Strengthen the sticky-CORRUPT idea of check-in [
3feb0f1c3840904d ] by
automatically changing the first COMMIT after an SQLITE_CORRUPT error into
a ROLLBACK.
FossilOrigin-Name:
bd66ab8a1bc3c43a57c7caff5f54545b0feb0177f1f51492f30d308c123c43ba
drh [Mon, 15 Nov 2021 18:50:02 +0000 (18:50 +0000)]
Small performance optimization in sqlite3VdbeHalt().
FossilOrigin-Name:
9e1ecf438cb01d3d76950bcce1b3e4df29bedbb8176c8cede27e66f8e53e2098
dan [Mon, 15 Nov 2021 14:11:23 +0000 (14:11 +0000)]
Fix a problem causing the count(*) optimization to be misapplied in some cases where an aggregate sub-query uses a count() expression that is aggregated against the outer query.
FossilOrigin-Name:
e30917278c0ec750b1756ddc5e32d65c55464531d6ef64d2e72a412dfe634f58
drh [Mon, 15 Nov 2021 13:22:42 +0000 (13:22 +0000)]
Improved context shown for the "ABORT-due-to-error" output line when using
"PRAGMA vdbe_debug=on" in an SQLITE_DEBUG build.
FossilOrigin-Name:
c7776369bcd0dbeb418b14d5dc681a81ee426234cc3f4f79a3c899d7892e1560
drh [Mon, 15 Nov 2021 01:45:11 +0000 (01:45 +0000)]
drh [Fri, 12 Nov 2021 14:39:49 +0000 (14:39 +0000)]
Improved handling of OOM while reallocating a column name to add type
information. dbsqlfuzz
5a195b4233649e49e0aa34f1b743ca192d85b198
FossilOrigin-Name:
5995dd4de4997c43b43befc1281ef6378f33f781134c7f368299d64db2344f1d
drh [Thu, 11 Nov 2021 23:52:44 +0000 (23:52 +0000)]
Make sure the rowid value returned by the VUpdate opcode is always initialized.
FossilOrigin-Name:
150b5be5d5771485f521e3a58312596ecdcd35f3a0ae9d42d88bb99348a197c4
drh [Thu, 11 Nov 2021 16:26:46 +0000 (16:26 +0000)]
Remove a NEVER() that was add yesterday. The fuzzer found a new test case
to make it happen.
FossilOrigin-Name:
83e6ac71073edfa0cd73788c30bdd5f09cb04c8a6a7d5123123dbcd354f430b8
drh [Thu, 11 Nov 2021 11:23:08 +0000 (11:23 +0000)]
New assert() statements to help prove correct usage of VdbeCursor objects.
FossilOrigin-Name:
7cee62f77a9e7c3cf886f136e75a93c3bbbb88e48b66035883bea5503d9fc03c
drh [Wed, 10 Nov 2021 15:23:00 +0000 (15:23 +0000)]
drh [Wed, 10 Nov 2021 10:59:10 +0000 (10:59 +0000)]
Make SQLITE_CORRUPT sticky: If a CORRUPT error is returned, all subsequent
write statements within the same transaction also fail early with
SQLITE_CORRUPT.
FossilOrigin-Name:
3feb0f1c3840904d28fc9a61262820e2b9b764addc1dd178aecc2cd0f952042c
drh [Tue, 9 Nov 2021 13:31:42 +0000 (13:31 +0000)]
Change test case error message text to match the current implementation.
FossilOrigin-Name:
de10795a1cf70925088e9652998e813665b2e147ffa4a4edab18c7e2c66bf5ae
drh [Tue, 9 Nov 2021 01:48:15 +0000 (01:48 +0000)]
Fix lempar.c so that Lemon can compile with NDEBUG defined.
[forum:/forumpost/
f331adca0b |Forum post
f331adca0b ]
FossilOrigin-Name:
ba4fb51853fbcb8c142a350b4db0d59153f28ba0a63ad9a2d6fea7096d3dd544
drh [Mon, 8 Nov 2021 23:24:00 +0000 (23:24 +0000)]
Refactor the code that figures out which SELECT in a cascade of nested queries
a particular aggregate function belongs to. This fixes the problem
reported by [forum:/forumpost/
c7cc2aa3546e39c1 |forum post
c7cc2aa3546e39c1 ].
New test cases in dbsqlfuzz and th3.
FossilOrigin-Name:
74aec5dd1df95b5635f4da1f13753f113ea1d61de3dc3a1523ba51089c1900e4
dan [Mon, 8 Nov 2021 19:35:26 +0000 (19:35 +0000)]
Fix the zeroblob() function and related APIs so that they work with SQLITE_OMIT_INCRBLOB builds.
FossilOrigin-Name:
bc401a75dd9f3c29c5969ae36264e68ccefc0937e44e232ca1f6b550f7fd6e22
dan [Mon, 8 Nov 2021 15:46:08 +0000 (15:46 +0000)]
Fix an assert() in memdbTruncate() that could fail when processing a corrupt database.
FossilOrigin-Name:
b1e2929860557cf88f98f0a4f2472e1a16be126bbb8050f0d728350f0cfe987a
drh [Sun, 7 Nov 2021 23:33:01 +0000 (23:33 +0000)]
Ensure that the window function rewrite does not leave the parse tree
in an invalid state that might cause problems downstream before the
error is recognized and unwinds the stack. Also take steps such that
an invalid parse tree does not cause problems even if it goes
unrecognized.
[forum:/forumpost/
398e9d5aa9 |Forum post
398e9d5aa9 ].
FossilOrigin-Name:
0f9fc6b6073365d5159cd71e7fe08f8dadbc7b42abd324361e809502f4359155
drh [Sat, 6 Nov 2021 20:25:29 +0000 (20:25 +0000)]
Add ALWAYS() to a branch made unreachable by the previous check-in.
FossilOrigin-Name:
0dc963f63aebc42960125f96865029f16b3f6867126aab350da12882505edb82
dan [Sat, 6 Nov 2021 18:22:50 +0000 (18:22 +0000)]
Return an error if an attempt is made to drop an eponymous virtual table.
FossilOrigin-Name:
889dea52de874cd3bda9e811ef1e4ca53ab794ecabc65e9c780d9fb01eff3b2c
drh [Sat, 6 Nov 2021 10:59:27 +0000 (10:59 +0000)]
Avoid accessing the sqlite3_module.xShadowName field if (sqlite3_module.iVersion<3).
FossilOrigin-Name:
a024764cef955099b498ea120d4127144880db6da411f074cf0fd1276989204e
drh [Fri, 5 Nov 2021 22:35:09 +0000 (22:35 +0000)]
Add the rbu_exclusive_checkpoint query parameter to RBU.
FossilOrigin-Name:
c2d33ea9d81975b27fe157d698033e7c01569cc0aa6178b7f0c43afbfba4a9e2
drh [Fri, 5 Nov 2021 22:23:17 +0000 (22:23 +0000)]
New test cases for rbu_exclusive_checkpoint query parameter.
FossilOrigin-Name:
00285ff10c771066876896b28cd5185ec3792166b00702326954ef6678f19da8
drh [Fri, 5 Nov 2021 19:52:27 +0000 (19:52 +0000)]
Update an assert() statement to conform to the changes of the previous check-in.
FossilOrigin-Name:
b5c668cac831425fd3e370142f9ea501bf2ca1c77c3eb0c5b8f0a574f7667b3c
drh [Fri, 5 Nov 2021 19:36:26 +0000 (19:36 +0000)]
Add the SQLITE_OPEN_EXRESCODE flag for sqlite3_open_v2().
FossilOrigin-Name:
ff9373f42d8479be5cae6cc15dc7fe0cc125c6c0157f5375bf7e1e77c624655d
dan [Fri, 5 Nov 2021 19:04:01 +0000 (19:04 +0000)]
If the target database URI passed to sqlite3rbu_open() is contains the option "rbu_exclusive_checkpoint=1", hold an exclusive lock for the duration of any incremental checkpoint operation.
FossilOrigin-Name:
7cb77296a22a87e7ed4c3544792f0204f704f01f384590c32c256bec4517c9bc
dan [Fri, 5 Nov 2021 14:13:12 +0000 (14:13 +0000)]
Update sqllimits1.test to account for recent changes to SQL function strftime().
FossilOrigin-Name:
7bba415f91884a20f665e982376c2c5e91a4431e218c8eefe275be3684f2e59a
drh [Fri, 5 Nov 2021 12:34:06 +0000 (12:34 +0000)]
Use the FTS_CORRUPT_VTAB macro rather than a direct call to
sqlite3Fts3Corrupt() in [
2fad2a89527757b3 ] so that the build works
in all cases.
FossilOrigin-Name:
029c59cdf9e7dbb431f5d110bc69c3597458edc9b6b009b2e91422de705a19fa
drh [Fri, 5 Nov 2021 11:52:33 +0000 (11:52 +0000)]
Remove an incorrect NEVER() reported at
[forum:/forumpost/
5bbabfb7ce |forum post
5bbabfb7ce ]. Also use this
opportunity to improve the isSimpleCount() function with better formatting,
an expanded header comment, and some extra assert() and textcase() macros.
FossilOrigin-Name:
2927185be81a5aa0dce70dd06040d05c2816a4d18b5094a6f709732cfd6968dc
dan [Fri, 5 Nov 2021 11:26:00 +0000 (11:26 +0000)]
Fix vacuum3.test so that it works with SQLITE_OMIT_ALTERTABLE builds.
FossilOrigin-Name:
07cca2fa891e9a60ea128a4b96ee407e9dd0f2b9e31fcffbfc2ac594a0e1ffe6
dan [Fri, 5 Nov 2021 11:18:31 +0000 (11:18 +0000)]
Update a test case in sqllimits1.test to account for the updated implementation of SQL function strftime().
FossilOrigin-Name:
f474ac370accc5c780e7cb3e11c35f2b6104df929d3394a27db00c6b995e71b3
dan [Fri, 5 Nov 2021 10:43:14 +0000 (10:43 +0000)]
Fix a couple of problems with test scripts and SQLITE_OMIT_ALTERTABLE builds.
FossilOrigin-Name:
3ab5414d337536acad5675a3f1ca10e1ca925f0e7182def604b8b7a8fb53bf5a
dan [Thu, 4 Nov 2021 18:04:55 +0000 (18:04 +0000)]
Fix a crash that could occur in fts3 when processing a corrupt database.
FossilOrigin-Name:
2fad2a89527757b3956538a6bf91ebebe9c483f22f94e889e8b50c58f5100c5c
dan [Thu, 4 Nov 2021 16:25:47 +0000 (16:25 +0000)]
Fix corruptN.test so that it works with SQLITE_DEFAULT_AUTOVACUUM=1 builds.
FossilOrigin-Name:
f60e05bdbabe0449e5a12275b254ca9da39a2a5fdbff078ce28007a23044749e
dan [Thu, 4 Nov 2021 16:15:46 +0000 (16:15 +0000)]
Update a test case in corruptN.test to account for the fact that if writable_schema=1 is set, no error is raised if a DELETE statement finds that an index entry is missing ([
19e56291a7344c7a ]).
FossilOrigin-Name:
a90c5f0b5ba1ef0f41449cee10a65beb8b55b09fd1976e0e35814b1848979416
dan [Thu, 4 Nov 2021 16:03:24 +0000 (16:03 +0000)]
Have wapptest.tcl avoid attempting to build fuzztest for SQLITE_OMIT_VIRTUALTABLE configurations.
FossilOrigin-Name:
53ee208d4ee8db1499a63b6652a8c5269e8fe85a75376adffdb912094ac1a681
drh [Thu, 4 Nov 2021 15:17:42 +0000 (15:17 +0000)]
Fix typo in the sqlite3ext.h file.
[forum:/forumpost/
63802db4ce |forum post
63802db4ce ]
FossilOrigin-Name:
d4a48ee0c28def416f75eb7840ba6462389e3f97e0dc02287bf1a726c8642f04
drh [Thu, 4 Nov 2021 14:04:20 +0000 (14:04 +0000)]
Show the preferred schema table names in the output of "PRAGMA table_list".
FossilOrigin-Name:
9147390d9885a37a62edc1058f313434627f1b59965c890877d2cb119e355c78
drh [Thu, 4 Nov 2021 11:34:04 +0000 (11:34 +0000)]
Change a branch made unreachable by the previous check-in into an assert().
FossilOrigin-Name:
685a987c9afd1c30629c36f1ffb5e349eb2e26182837523036b916c6f81632c4
drh [Thu, 4 Nov 2021 00:51:53 +0000 (00:51 +0000)]
First the shadow table mechanism so that it works even if the shadow table
comes before the virtual table in the sqlite_schema table, as can happen
after a VACUUM.
FossilOrigin-Name:
005a8642773556825fe4c5d0b2c12517d35289308a30df0151ef7f080acb0172
drh [Wed, 3 Nov 2021 16:35:23 +0000 (16:35 +0000)]
Remove two incorrect assert() statements added by a check-in from earlier
today.
FossilOrigin-Name:
3206edff947b9edb485466f05b2baadf725d798229630c7e83e88c0b9ae278ca
drh [Wed, 3 Nov 2021 15:59:17 +0000 (15:59 +0000)]
Improved the error message that results when a schema parse fails after
ALTER TABLE ADD COLUMN.
FossilOrigin-Name:
b007a39dd3a46d13fe06f2a1eeb4e3fd4cad1a77892be6d175b31db1edd6f6a8
drh [Wed, 3 Nov 2021 14:02:48 +0000 (14:02 +0000)]
Fix INSERT into STRICT table with STATIC generated columns.
FossilOrigin-Name:
24285d913678853213532d61aba077d576e3cd7629159e0a75dc3c16e54e2662
drh [Wed, 3 Nov 2021 12:50:28 +0000 (12:50 +0000)]
drh [Wed, 3 Nov 2021 11:43:09 +0000 (11:43 +0000)]
Fix an issue in PRAGMA integrity_check associated reporting NULL values in
a NOT NULL column of type ANY in a STRICT table.
FossilOrigin-Name:
5dff1f66731ae35daf9633f8bb3ea942a7c29f4240e57bd2023ee7fc116e7c92
drh [Tue, 2 Nov 2021 22:24:19 +0000 (22:24 +0000)]
Correctly handle SeekScan on an IN operator of the middle term of an index
when the right-most term is a range constraint.
Fix for ticket [
5981a8c041a3c2f3 ].
FossilOrigin-Name:
aa24660e76681d164b1948621d3dbd0f620c72c6bca636d35a9eed73ab7593fa
drh [Tue, 2 Nov 2021 20:52:20 +0000 (20:52 +0000)]
Proposed fix for a problem associated with OP_SeekScan that results in an
incorrect answer. See ticket [
5981a8c041a3c2f3 ].
FossilOrigin-Name:
266e9cbada531716c908c21d60a6038109722e3dd040237679ac0240fb5020ea
drh [Tue, 2 Nov 2021 17:55:01 +0000 (17:55 +0000)]
Ensure that ALTER TABLE RENAME recognizes OOM errors while parsing
dependent triggers and handles them appropriately.
dbsqlfuzz
53e245eee15d3f19639d773048aa955c30708785 .
FossilOrigin-Name:
1d9004cd015073853ce0ca811a68ea5411733eedee993b97a38a42ba139d7590
dan [Tue, 2 Nov 2021 14:01:41 +0000 (14:01 +0000)]
Fix a minor memory leak in the shell tool. Omit running fuzztest as part of the Device-One release test configuration, as it is now incompatible with SQLITE_OMIT_VIRTUALTABLE.
FossilOrigin-Name:
4d70f27b7b5681cfdf1c44ac654e565ccff089e74d3edf6660578e04e4b0c9b9
drh [Tue, 2 Nov 2021 11:24:37 +0000 (11:24 +0000)]
Add the --remove and --glob options to the .archive command in the CLI.
FossilOrigin-Name:
ea7b12cdf868fdfebc0a20bdcba97aea863284b563d478b0e4cb3d2a8612afee
dan [Tue, 2 Nov 2021 11:09:24 +0000 (11:09 +0000)]
Add #ifdef logic to os_unix.c so that it builds with SQLITE_OMIT_WAL defined.
FossilOrigin-Name:
948c2cb2a2f44ba069cfbf5e9a57e56964f3a40db57459bb439bea9c3bd9f211
drh [Tue, 2 Nov 2021 10:54:39 +0000 (10:54 +0000)]
drh [Tue, 2 Nov 2021 10:47:20 +0000 (10:47 +0000)]
Add recent dbsqlfuzz cases to test/fuzzdata8.db.
FossilOrigin-Name:
8c3f2536d2853acef05c4e8c07f301abb0687402c56ded5ff8614e79fb049423
dan [Tue, 2 Nov 2021 07:32:13 +0000 (07:32 +0000)]
Fix a broken assert() in fts5 that could fail if the snippet() function were used with a query phrase containing 0 tokens on a detail=none or detail=col table.
FossilOrigin-Name:
0a5b94b99cf45df759a59cb5fc62da111ca33f8c2614769a81930d72b51f093a
larrybr [Tue, 2 Nov 2021 00:18:11 +0000 (00:18 +0000)]
Add globbing option to shell's .archive command.
FossilOrigin-Name:
13fb74ac5e7578ab612af2ccc8147569d60dc35af84f496bcc5d648d223d6d6e
larrybr [Mon, 1 Nov 2021 22:33:20 +0000 (22:33 +0000)]
larrybr [Mon, 1 Nov 2021 22:30:24 +0000 (22:30 +0000)]
Add a test for .ar -r and fix a use-of-uninitialized-variable bug
FossilOrigin-Name:
978d5ed4379b631a79cd46a75d9b5b403f3ec4ce7d9d52ed36a5678cdf04f7f2
larrybr [Mon, 1 Nov 2021 17:22:52 +0000 (17:22 +0000)]
Add --remove subcommand to shell's .archive command
FossilOrigin-Name:
23525449b883ae6e1d62100bdbc9ff2ca788f67e8ae7d7e4b1a770413a70a7f0
drh [Mon, 1 Nov 2021 12:53:01 +0000 (12:53 +0000)]
The VVA() macro in json1.c must be active during SQLITE_COVERAGE_TEST because
it affects the outcome of testcase() macros.
FossilOrigin-Name:
92c3d253797f9bde4670984d60bbd50b7b28540d2b5f503f318843580bab8765
drh [Sat, 30 Oct 2021 20:22:32 +0000 (20:22 +0000)]
Add the sqlite3_autovacuum_pages() interface.
FossilOrigin-Name:
ca2703c339f76101f25051a2ed380398b018782883bfee68b5f2d69a1de9091a
drh [Sat, 30 Oct 2021 18:17:59 +0000 (18:17 +0000)]
Fix an incorrect assert() statement in sqlite3GenerateConstraintChecks().
dbsqlfuzz
4190cff310aeab359a55f354e560db95d3a6f47d
FossilOrigin-Name:
623c0d086bda135c49bfc238c31498facdcbe8ecc7659cc1af61594df0c6e899
dan [Sat, 30 Oct 2021 17:58:25 +0000 (17:58 +0000)]
Fix a memory leak in test code on this branch.
FossilOrigin-Name:
60cd9da9258e0b701d4bb3f9c91c5d0a12e925b9b937df619b09f33a287b4a33
dan [Sat, 30 Oct 2021 17:30:48 +0000 (17:30 +0000)]
drh [Fri, 29 Oct 2021 16:19:03 +0000 (16:19 +0000)]
Reorder a test add earlier today to OP_Transaction for easier testing.
FossilOrigin-Name:
8ba73b3cadb72ffcf176d19f9f946c1b90b224e5ab9a0e9eb9a83affa7476d23
drh [Fri, 29 Oct 2021 13:10:02 +0000 (13:10 +0000)]
Allow "VACUUM INTO" to change the page_size of a database even if the
original database is in WAL mode. Enhancement suggested by
[forum:/forumpost/
033f2c9d1f |forum post
033f2c9d1f ].
FossilOrigin-Name:
efc7e8c99a86e9d9eb81655ce96353847bd2cca64eb8f8d10e297f6f4d38e563
drh [Fri, 29 Oct 2021 12:29:22 +0000 (12:29 +0000)]
Add pragmas "multiplex_enabled", "multiplex_chunksize", and "multiplex_filecount" to the multiplexer implementation.
FossilOrigin-Name:
39c5e80dbf94ac3079b3e0c2c3e6608ac366e3f3de3cea4f4947addc3f52bc36
drh [Fri, 29 Oct 2021 09:59:06 +0000 (09:59 +0000)]
Fix the OP_Transaction opcode so that if an error other than SQLITE_SCHEMA
occurs first, the original error is not overwritten by SQLITE_SCHEMA.
dbsqlfuzz
85bf7e262017c6c7bddb03ff6d8541511985d36c .
FossilOrigin-Name:
5374226df4a2c1b59258839532b67a399c447ac8ec1408fdf2dffb9c41e1349e
larrybr [Thu, 28 Oct 2021 19:49:23 +0000 (19:49 +0000)]
Fix .import -skip issue reported at https://sqlite.org/forum/forumpost/
4c0816c24fc9d16f ?t=h
FossilOrigin-Name:
3aadbe17edc1efc7fa6c9600de84e23242ba7866d2dcef2189afd7ba4c97979f
drh [Thu, 28 Oct 2021 12:07:43 +0000 (12:07 +0000)]
Minor changes to make it easier for static analyzers to reason about the code.
FossilOrigin-Name:
ba4104aa02625b51113978c1bb540b75bd88cb1959c7e9bfb4113db4159df5d4
drh [Thu, 28 Oct 2021 00:09:31 +0000 (00:09 +0000)]
Ensure that the WAL code correctly handles all possible outcomes from the
walIndexPage() routine.
FossilOrigin-Name:
6979efbf07d93e7afad508165df684dcc6fe33b91ca772397c8afa00d16d1a0d
drh [Wed, 27 Oct 2021 23:55:30 +0000 (23:55 +0000)]
Ensure that all possible outcomes for walIndexPage() are accounted for by
callers.
FossilOrigin-Name:
12715c6b234a04627ca27e94bfa8bd456998360a9f0117480e0038f4747818d6