]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Tue, 7 May 2019 02:57:28 +0000 (02:57 +0000)]
Add the exprNodeCopy() routine that will safely memcpy() an Expr node that
might be a size-reduced node.
FossilOrigin-Name:
ab2ba8e732d4a813a336e37e06bbc98842d22d4896120b1b97e8577684e9ea53
drh [Mon, 4 Jun 2018 14:10:15 +0000 (14:10 +0000)]
drh [Sat, 2 Jun 2018 19:14:58 +0000 (19:14 +0000)]
drh [Sat, 2 Jun 2018 19:01:54 +0000 (19:01 +0000)]
Fix the usage of posix_fallocate() so that it correctly responds to
EINVAL returns.
FossilOrigin-Name:
ce2c3e7a875ede4366c48660ae8239d2b74e5f690ad5059844a45f1164f41e61
dan [Sat, 2 Jun 2018 17:00:57 +0000 (17:00 +0000)]
Update a test case in malloc5.test to take into account that malloc()
sometimes returns slightly more space than requested.
FossilOrigin-Name:
3d5eae1c26353cdee89f31f1293b05c0edb494c775ba0912d9b4fda9ab0ef304
drh [Sat, 2 Jun 2018 16:32:04 +0000 (16:32 +0000)]
Work around a sanitizer warning about a pointer being only 4-byte aligned
instead of 8-byte aligned.
FossilOrigin-Name:
1b807b51cdf455b4f54216b73fd22bbc90f94e24222401e045f88cfd27f487e3
drh [Sat, 2 Jun 2018 14:37:39 +0000 (14:37 +0000)]
Proposed fix for the use of posix_fallocate() so that it handles EINVAL
returns correctly.
FossilOrigin-Name:
ab3a5539db82814cafb832cdaebd1e14566139306453ef9cdba6b244a994fe0b
drh [Sat, 2 Jun 2018 12:05:18 +0000 (12:05 +0000)]
Fix the CSV extension so that it works with single-column CSV files.
FossilOrigin-Name:
e336cf00486bdc0ec04ecded2b7c874d73a87e6aba3544e3678bedfb9a4af3b6
drh [Sat, 2 Jun 2018 11:31:15 +0000 (11:31 +0000)]
Ensure that sqlite3AuthRead() is only call for TK_COLUMN and TK_TRIGGER
expression nodes. This fixes a harmless assert() identified by OSSFuzz.
Move the assert() into a position where it is tested even if the authorizer
is disabled.
FossilOrigin-Name:
d0c3beef7cdc680c0768ddd18f766a4ca7be822c1eb1776b2f73b7433d9962dc
dan [Fri, 1 Jun 2018 13:30:45 +0000 (13:30 +0000)]
Fix a bug in the SQLITE_ENABLE_SORTER_REFERENCES code causing an out-of-bounds
array reference.
FossilOrigin-Name:
8cadaf587dc96370f9c8a1dccc366b93021e8cfe4526da9368a088828fd14faf
drh [Thu, 31 May 2018 19:14:52 +0000 (19:14 +0000)]
More documentation typo fixes. No code changes.
FossilOrigin-Name:
66c24513c2f6de98bd888c3e4c07bbb39fabf30ea9dd01eb255460054055347d
drh [Thu, 31 May 2018 19:00:20 +0000 (19:00 +0000)]
Fix a harmless typo in a comment used to generate documentation.
FossilOrigin-Name:
5a2a88cb01ef4b299f9a5b2963f392a3bae90e8a7f84b190e67f86090f891e23
drh [Wed, 30 May 2018 14:17:09 +0000 (14:17 +0000)]
Add the Makefile.fallback makefile to the amalgamation tarball.
FossilOrigin-Name:
ce3d04563337c9556d66e55acfb454789b0baa49a1be8fcc349251ce88236d62
drh [Wed, 30 May 2018 07:36:55 +0000 (07:36 +0000)]
Do not use the codec on the resetdb.test script.
FossilOrigin-Name:
fe55cea0c80ab29120574c5c4a8473b83fc80f79d7e11bc7c326bfdb32aa3902
drh [Wed, 30 May 2018 07:24:41 +0000 (07:24 +0000)]
drh [Wed, 30 May 2018 01:14:20 +0000 (01:14 +0000)]
Fix the parser so that it builds with -DSQLITE_OMIT_CTE.
FossilOrigin-Name:
86ee267ee86f5264774a9f215b1158aeaa2d605e77c205731b5ee3945d7de4c2
drh [Wed, 30 May 2018 00:59:09 +0000 (00:59 +0000)]
dan [Tue, 29 May 2018 19:12:58 +0000 (19:12 +0000)]
Increase the number of database handles opened by test script oserror.test to
provoke an "out of file-descriptors" error to 20000 (from 2000).
FossilOrigin-Name:
3b00f73456c65dfc1827fdada9afb49245f9addfa684d5ae35e69a07f39164bf
dan [Tue, 29 May 2018 16:37:12 +0000 (16:37 +0000)]
Fix autoinc.test and resetdb.test so that they work with all permutations.
FossilOrigin-Name:
89f56d6b0a6847b042a1556cdf79c598c9bfdbdd5f9529d508ca7b4d26a6ed38
drh [Tue, 29 May 2018 15:18:31 +0000 (15:18 +0000)]
Add a comment to justify a goto statement. No code changes.
FossilOrigin-Name:
f141d806476aabe592a15d83b72c9409d2cd6bd7f9cced1ea2513c134191430a
dan [Tue, 29 May 2018 14:29:28 +0000 (14:29 +0000)]
dan [Tue, 29 May 2018 14:06:55 +0000 (14:06 +0000)]
Fix some test script issues caused by recent EXPLAIN QUERY PLAN enhancements.
FossilOrigin-Name:
f808e22831c33bfe3d0dd44e209f64d527c23ca7c72be7c694736535afee1317
dan [Tue, 29 May 2018 13:25:14 +0000 (13:25 +0000)]
Do not run test file "resetdb.test" as part of permutation "inmemory_journal".
FossilOrigin-Name:
4921e5bae4c12c3413cc0b2e58766cf2ac117ad95f92fcd1c2457db6cfabb054
dan [Mon, 28 May 2018 18:29:46 +0000 (18:29 +0000)]
Do not require a statement journal in cases where REPLACE conflict handling is
used to insert a single row, so long as the REPLACE operation cannot fire any
triggers or foreign key actions.
FossilOrigin-Name:
469a62ca33081854e54f3af6d93ab5a350484b149c8c8c4ee8be0ae5418382d9
drh [Mon, 28 May 2018 18:25:19 +0000 (18:25 +0000)]
When compiling with SQLITE_DEBUG, add run-time checks to ensure that no statement aborts unless either there have been no writes or else there is a statement journal.
FossilOrigin-Name:
ce99c7724460b9cf4ccaf7f6bc1a522b5c34d5ad0683d465f7926b10f31f7d05
drh [Mon, 28 May 2018 17:43:28 +0000 (17:43 +0000)]
Fix the build so that it works with -DSQLITE_TEST_REALLOC_STRESS
FossilOrigin-Name:
90ba2b2e5ce2619e68879eb325b43639159f27eb462b9fb6795534c91200a3d2
drh [Mon, 28 May 2018 17:31:20 +0000 (17:31 +0000)]
When compiling with SQLITE_DEBUG, add run-time checks to ensure that no
statement aborts unless either there have been no writes or else there is
a statement journal.
FossilOrigin-Name:
5a4542dbcf17a9f7fed600897555c271e1651fd50eb41d0b126725b486e1d14c
drh [Sat, 26 May 2018 16:00:26 +0000 (16:00 +0000)]
Store application-defined function names as lower-case to avoid the need
for case conversions before calling xFindFunction on virtual tables.
Avoid using lookaside to store the destructors for application defined
functions, as lookaside should be reserved for transient allocations.
FossilOrigin-Name:
777189ce88799f93f393fd14fd716111c85bcdcb23690fd561f78ea2bd2ce5da
drh [Sat, 26 May 2018 13:55:04 +0000 (13:55 +0000)]
Add a single sentence of documentation about the virtual table
scan flags. No changes to code.
FossilOrigin-Name:
27b4fa5dd0defc6ddaf5d8cde6a1e1162b70d99bfdc69c1d2290621a6d23ed91
drh [Thu, 24 May 2018 23:51:57 +0000 (23:51 +0000)]
When doing a one-pass UPDATE or DELETE on virtual tables, close the cursor
prior to running VUpdate. This allows one-pass to work on virtual tables
that do not allow concurrent reads and writes. Enhance rtree to take
advantage of this new capability.
FossilOrigin-Name:
b816023ce07d01024d5769e16db924374a49bf909edd12dc1344a0a1ef693db5
drh [Thu, 24 May 2018 22:42:27 +0000 (22:42 +0000)]
New test case for reading and writing the same rtree concurrently.
FossilOrigin-Name:
3ba08e53d54165f5541756ad13a4c2f0b18516cb612a256e056ed1ff76c1fa83
drh [Thu, 24 May 2018 22:31:01 +0000 (22:31 +0000)]
Do not allow RTree writes when a read cursor is active on the same virtual
table, as the writes might rebalance and disrupt the read cursors. Return
the new SQLITE_LOCKED_VTAB error code if this happens.
FossilOrigin-Name:
d4ce66610851c825cb712f985216b63e015c753fdd5521f929c67ad18bfd7664
drh [Thu, 24 May 2018 17:38:00 +0000 (17:38 +0000)]
In the OOM testing logic, add the sqlite3FirstFault() routine as a place to
set a breakpoint the first time any simulated OOM fault occurs for a single
test case.
FossilOrigin-Name:
b4d80bd287ca7f3a6d182ba2435273266035b94fdf6a44047a64a4eff931c571
drh [Thu, 24 May 2018 17:25:35 +0000 (17:25 +0000)]
Fix a typo in a comment used to generate VDBE opcode documentation. No
code changes.
FossilOrigin-Name:
36cdfbf2ce1811691c790fde3eaeed0238c03b4dc97dc3a20d1e0397520145d1
drh [Thu, 24 May 2018 16:18:35 +0000 (16:18 +0000)]
Addition cases for rtree preformance testing in speedtest1.c. Add the
--nodiff option to the speed-check.sh script.
FossilOrigin-Name:
95f2d62cf3cf8dbe0f12b652b47fe1f8e0f52bc269e269955fafdf802afc47c1
drh [Thu, 24 May 2018 13:59:45 +0000 (13:59 +0000)]
Updates to the sqlite3_vtab_nochange() documentation. No changes to code.
FossilOrigin-Name:
5bd99abc10b8153aadff5f815ae15fbe375f34f043c65def4be03014d2efdb50
drh [Wed, 23 May 2018 17:53:07 +0000 (17:53 +0000)]
Remove a branch that is no longer used due to the fix to the
sqlite_sequence schema problem, ticket
[
d8dc2b3a58cd5dc2918a1d4acbba4676a23ada4c ]
FossilOrigin-Name:
066742692a9e8735b814c6a145545f97a7fb10b29cead78e68e25324e79aabaa
drh [Wed, 23 May 2018 16:50:21 +0000 (16:50 +0000)]
Verify that the sqlite_sequence table exists and is in approximately the
correct format prior to using it to process an autoincrement table.
Fix for ticket [
d8dc2b3a58cd5dc2918a1d4a ].
FossilOrigin-Name:
e199e859ace4f8381c6380175206e7a276e3f2228fadbbca9341bca8d2fc445d
drh [Fri, 18 May 2018 17:58:33 +0000 (17:58 +0000)]
Add support for auxiliary columns to the rtree extension.
FossilOrigin-Name:
c6071ac99cfa4b6272ac4d739fc61a85acb544f6c1c2ae67b31e92aadcc995bd
drh [Fri, 18 May 2018 17:17:36 +0000 (17:17 +0000)]
Merge enhancements from trunk, especially the CLI fixes.
FossilOrigin-Name:
a350040a3bb962823f92908fb31cade52baf13eab90ef608ca3a8349e4c28c9d
drh [Fri, 18 May 2018 17:11:50 +0000 (17:11 +0000)]
In the CLI, detect and report errors on sqlite3_close(). Clear global
variables prior to exit to so that valgrind can better detect resource
leaks.
FossilOrigin-Name:
e3b2e0a078b82ac6cd3c3312e8ac0983c1375e1052f1e324476d2f8d1b227c30
drh [Fri, 18 May 2018 16:53:07 +0000 (16:53 +0000)]
Avoid unnecessary sqlite3_finalize() operations.
FossilOrigin-Name:
16f71032a3a2919cb226b25b5256a370adb5c55fa506d4774b7f83dc8868e793
drh [Fri, 18 May 2018 16:46:09 +0000 (16:46 +0000)]
drh [Fri, 18 May 2018 15:21:43 +0000 (15:21 +0000)]
Improved error messages. Limit the number of auxiliary columns to 100.
FossilOrigin-Name:
059d20abd57727e6d312f15b640359ef778786f577d9b50b17b57195db2d0aef
drh [Fri, 18 May 2018 14:24:23 +0000 (14:24 +0000)]
Improvements to integer/float comparisons on architectures that lack a
"long double" type.
FossilOrigin-Name:
5139ea62a8a6c6dc6558c337de39bcbadd26f6515742263387be03c862c78cf0
drh [Fri, 18 May 2018 14:19:35 +0000 (14:19 +0000)]
Remove incorrect NEVER() macro added by the previous check-in.
FossilOrigin-Name:
3d6625111319c0356c57aaf7b7460fd882c3f00ca668dc43c0abe3403c7c2ba3
drh [Fri, 18 May 2018 13:39:00 +0000 (13:39 +0000)]
Improvements to the sqlite3IntFloatCompare() routine for systems that
lack the long double type.
FossilOrigin-Name:
ea6a03a89dc23e860e53e79ec3fddf0ae7072a23b73aef3d2d181b426566b677
drh [Thu, 17 May 2018 20:04:24 +0000 (20:04 +0000)]
In the CLI with the -A command, if the file does not previously exist and
its name looks like a ZIP archive name, then create it as a ZIP archive.
FossilOrigin-Name:
33dc8fad7f2b467f259eb78eb7342a760f01d54d95da7fe4cace10e558788a58
drh [Thu, 17 May 2018 14:09:06 +0000 (14:09 +0000)]
Improved error and help messages for the ".archive" command and "-A" option
to the CLI. If a memory leak in --list processing.
FossilOrigin-Name:
02541ac6f919a8a8b18ef0525c4ee24fdbc5c1883171fb1a492434cd0f006f7c
drh [Thu, 17 May 2018 13:29:14 +0000 (13:29 +0000)]
Fix memory errors associated with argv in the CLI when it is
compiled on Windows.
FossilOrigin-Name:
4474d69b5c21b4e6f0d1376fbceca0f18c715ff673aea63053a02bfbe041d03b
drh [Wed, 16 May 2018 19:56:20 +0000 (19:56 +0000)]
Fix an issue with rtreecheck() and auxiliary data columns.
FossilOrigin-Name:
46715136078a51ca7dd08b83214d6ad0e85728af8a26cd342077b8dd4ada1d60
drh [Wed, 16 May 2018 19:07:07 +0000 (19:07 +0000)]
Do not allow auxiliary columns in the rtree to interfere with query planning.
Begin adding test cases.
FossilOrigin-Name:
9abe023e1afa7dc1a7eba7fbb3128401de129873d86b7c71c221decca26a821c
drh [Wed, 16 May 2018 18:18:24 +0000 (18:18 +0000)]
Fix the OOM issue mentioned in the previous check-in.
FossilOrigin-Name:
c489d8e44eac4cd355096ab66bb40f13ef662f31e080c9f1f2ee379fe55b207a
drh [Wed, 16 May 2018 17:57:30 +0000 (17:57 +0000)]
Initial implementation of the ability to have auxiliary columns in an rtree
virtual table that store arbitrary content. It mostly works, but there are
some minor issues in OOM corner cases.
FossilOrigin-Name:
0c87fec970221f954e0a92f3ef0437b382255479fac5b403ee37b1bb5ab29719
drh [Wed, 16 May 2018 15:35:03 +0000 (15:35 +0000)]
Enhance the sqlite3_str_new() interface so that it always returns a valid
and non-NULL pointer even in an OOM condition.
FossilOrigin-Name:
ed5b09680fd6659ebbe5ace3c1c56f3962bbd75cfdf65c7565651900cf87917a
drh [Wed, 16 May 2018 12:19:11 +0000 (12:19 +0000)]
Correct output for the fullkey column of json_each() when the total JSON
input is a simple value, not an array or object.
FossilOrigin-Name:
b45b18850c59f22a163ee482f529f578a8798f96d0e26b5a061d336d480a1540
dan [Tue, 15 May 2018 09:09:00 +0000 (09:09 +0000)]
drh [Mon, 14 May 2018 22:46:11 +0000 (22:46 +0000)]
Make more aggressive use of automatic indexes when processing materalized
views and subqueries.
FossilOrigin-Name:
172f5bd27e47cbdaaab54fe4383a5ee505d285257af6153ed626d9493a4adab3
drh [Mon, 14 May 2018 15:26:05 +0000 (15:26 +0000)]
Convert the schema creation logic in the rtree extension to use the
new sqlite3_str interface.
FossilOrigin-Name:
fd8b8c4196d3f0f6cb129f43ebf473ada86eefdf16181fa70ceee21e1232b5e1
mistachkin [Mon, 14 May 2018 12:23:04 +0000 (12:23 +0000)]
drh [Mon, 14 May 2018 00:41:12 +0000 (00:41 +0000)]
Export the deduceDatabaseType() function the shell.c source file.
FossilOrigin-Name:
d0f35739af3b226c8eef39676407293650cde551acef06fe8628fdd5b59bd66a
drh [Mon, 14 May 2018 00:23:08 +0000 (00:23 +0000)]
Add the --append option to the ".backup" command in the CLI.
FossilOrigin-Name:
0dfdbdee527b0c429703bc2696bf8d8e44a852aafe0aca742b9d7152eb1f932e
drh [Sat, 12 May 2018 23:56:22 +0000 (23:56 +0000)]
In the CLI, allow comment lines that begin with '#', but only in a context
where a dot-command is allowed. In other words, '#' at the beginning of a
line in the middle of an SQL statement is just part of the SQL.
FossilOrigin-Name:
4ee136d6d2e029dad8371faf659d3a0bc0ac6ae76940db81d333848545bc990f
drh [Fri, 11 May 2018 19:11:18 +0000 (19:11 +0000)]
In the CLI, return non-zero if there are errors on the command-line.
FossilOrigin-Name:
13e7300a37e379eac564594d78d3f039fd25737493b3b627ef02fab57a6c98e1
drh [Fri, 11 May 2018 15:10:43 +0000 (15:10 +0000)]
Fix a typo in the help message from the ".sha3sum" command in the CLI.
FossilOrigin-Name:
dba87a201806f93a1736c1ee81d9c9cf9848e401a237dc2af3b4376402976c32
drh [Fri, 11 May 2018 15:10:11 +0000 (15:10 +0000)]
Make sure the open_db() routine in the CLI does not invoke access() with
a NULL filename.
FossilOrigin-Name:
20a8c61122f37a43c418ca4415b3d26e0f7a27a6faea9048aa9fbb1a56e9d629
dan [Wed, 9 May 2018 16:32:00 +0000 (16:32 +0000)]
Add a test case to check that the fts5 unicode64 tokenizer is dealing with
codepoints greater than 65535 correctly.
FossilOrigin-Name:
9f7a6ae878cd17ff4de7c55e654406773e0ea2b9fe1c4e2a9fc2b0da84d059a4
drh [Wed, 9 May 2018 15:17:02 +0000 (15:17 +0000)]
Add 14 new interfaces to the loadable extension mechanism.
FossilOrigin-Name:
0e809cdcbd1bb1e269298814d6bb1dcdaea48c5b0bb20e0e1caa4dba27654873
drh [Wed, 9 May 2018 14:29:40 +0000 (14:29 +0000)]
Fix minor problems with the sqlite3_str interface.
FossilOrigin-Name:
43ea8a6836ccb9910314d35e07d881694200c97ef5969629f62e49f7a2a42f92
drh [Wed, 9 May 2018 13:46:26 +0000 (13:46 +0000)]
Make the internal dynamic string interface available to extensions using
the new sqlite3_str object and its associated methods. This is mostly just
a renaming of internal objects and methods to use external names, through
there are a few small wrapper functions.
FossilOrigin-Name:
87f261f0cb800b06ad786f6df16f2c4dddd0d93dfdcc77b4a4eaa22920b56bf1
drh [Wed, 9 May 2018 10:11:44 +0000 (10:11 +0000)]
Fix a typo in a comment used for documentation. No code changes.
FossilOrigin-Name:
b866693e6a50b5c41ca54b56bb20753efb94980ad3365c511cccf23ac43a1c23
drh [Tue, 8 May 2018 23:17:36 +0000 (23:17 +0000)]
Correctly format the STAT1 and STAT4 content in the output from the
".fullschema" command in the CLI. Fix for ticket
[
e63a34a0045832dc850367552 ].
FossilOrigin-Name:
0c3f128fd7d5738a8e9da706f5f30aa1985ef5efab70ddaad28ef6b641b04f4a
drh [Tue, 8 May 2018 13:32:02 +0000 (13:32 +0000)]
Merge changes from trunk, especially the activation of the cell-overwrite
optimization for indexes and WITHOUT ROWID tables.
FossilOrigin-Name:
a016144b0e0c41b89157ea7349aad376f34888edf9558f8fd0d529516c5d18fd
drh [Tue, 8 May 2018 13:03:31 +0000 (13:03 +0000)]
Fix a harmless compiler warning in fuzzcheck. Add new OSSFuzz test cases
to the test case library.
FossilOrigin-Name:
d2619746cb233f4be127a77988548dd1d90eebddf0d0ac9107913b240553e5d0
drh [Tue, 8 May 2018 12:49:53 +0000 (12:49 +0000)]
drh [Mon, 7 May 2018 18:41:19 +0000 (18:41 +0000)]
Activate the cell-overwrite optimization for index b-trees.
FossilOrigin-Name:
a68697d10ef17d452c8279181186faad7bc54e3a35858a336552f717449065ea
drh [Mon, 7 May 2018 17:27:04 +0000 (17:27 +0000)]
Improved comments on the cell-overwrite optimization code.
FossilOrigin-Name:
a4fe966da2fc479b18bf521ff596000410af3a611f7d8723d126795e595ccf22
drh [Mon, 7 May 2018 13:01:46 +0000 (13:01 +0000)]
Merge enhancements from trunk, and especially the cell-overwrite
optimization.
FossilOrigin-Name:
cb3aa77802d45e9515e9c631af86f492fcd962c3302c79ba6f69213745fb0bb5
drh [Mon, 7 May 2018 11:48:22 +0000 (11:48 +0000)]
On an UPDATE, try to overwrite an existing btree cell with the modified
content, if the old and new cell are the same size. Use memcmp() first
to avoid dirtying pages that are unchanged.
FossilOrigin-Name:
5887d8beb502ad62689d31b850f46ab50831a1e9db36adf20d55ad45619d207e
drh [Mon, 7 May 2018 11:37:34 +0000 (11:37 +0000)]
Fix harmless compiler warnings associated with the new EXPLAIN QUERY PLAN logic.
FossilOrigin-Name:
374d8e264487b0437a8d995ced1bc026a92d495a2d0568f65f033e9ebe11d0e2
drh [Mon, 7 May 2018 11:29:59 +0000 (11:29 +0000)]
Fix harmless compiler warnings in the cell-overwrite logic.
FossilOrigin-Name:
3e11dc3183bc3e8ec49af244a8e8b3e07d12f7a2e59028b2bf64ce0ab589a91f
drh [Mon, 7 May 2018 02:50:38 +0000 (02:50 +0000)]
Backout change [
05fee1a21ea398f1e4d6f1cf3 ] because it does not take into
account the LD_LIBRARY_PATH environment variable used by dl_open().
FossilOrigin-Name:
b348d1193a7a3ed4d3e656b6cc95a41f87eae29222e0723850a5eb5ffabffd00
drh [Sat, 5 May 2018 16:50:35 +0000 (16:50 +0000)]
In an ORDER BY LIMIT, make sure the ORDER BY expression evaluator does not
try to reuse values from the result set if the result set has not yet
be computed. This fixes a bug in the recent deferred-row loading
optimization, check-in [
c381f0ea57002a264fd958b28e ].
OSSFuzz discovered the problem.
FossilOrigin-Name:
5d61e75f32de09c81dbe844443209f063cccb005d60b846900de5b023643fc3b
drh [Sat, 5 May 2018 01:23:28 +0000 (01:23 +0000)]
Fix a slightly incorrect corruption detection branch in the btree logic.
FossilOrigin-Name:
9191ff670cb7f36e0b2dac4a22888679b639845687aef8edcc3c05e35ba71eda
drh [Fri, 4 May 2018 20:00:13 +0000 (20:00 +0000)]
Bring the code that changes the owner of WAL and rollback files when running
as root into alignment with trunk.
FossilOrigin-Name:
180516bf7bd5a61c11b1eef2c8c13ac63c7b00f821bb89393fc68d39852202de
drh [Fri, 4 May 2018 19:33:34 +0000 (19:33 +0000)]
drh [Fri, 4 May 2018 19:18:27 +0000 (19:18 +0000)]
drh [Fri, 4 May 2018 18:32:11 +0000 (18:32 +0000)]
drh [Fri, 4 May 2018 04:49:55 +0000 (04:49 +0000)]
For the amalgamation-tarball, enable FTS5 and JSON1 by default and
provide a new --enable-debug option that actives debugging facilities.
FossilOrigin-Name:
03edecaf9dcfc927aa60c2a17590a432b17de1647d480d277b4aafc8018c2d20
drh [Fri, 4 May 2018 00:39:43 +0000 (00:39 +0000)]
Make a separate limb in the EXPLAIN QUERY PLAN output for the various lines
associated with the OR-optimization.
FossilOrigin-Name:
75ac7b4e4fd0811ca80c719badacff207e0bbd00ac64dde3b3d4ec676fad472d
drh [Thu, 3 May 2018 23:20:06 +0000 (23:20 +0000)]
In ORDER BY LIMIT queries, try to evaluate the ORDER BY terms first, and it
it becomes clear that the row will not come in under the LIMIT, then skip
evaluation of the other columns.
FossilOrigin-Name:
c381f0ea57002a264fd958b28e4921cb9c9e73a10fb592f6bb64e6bc9bd16d39
drh [Thu, 3 May 2018 22:52:56 +0000 (22:52 +0000)]
Fix a branch that has become unreachable due to recent enhancements.
FossilOrigin-Name:
81ab5e0d106fb9f2de80d17c8167d8542c6721b8d7ec69c43e1571c2dcadeddd
drh [Thu, 3 May 2018 21:51:30 +0000 (21:51 +0000)]
Improved security for VACUUM. This check-in combines the fixes
of [
ab0d99d0b5ede ] and [
27754b74ddf646 ] in a way that is less likely to
to be broken by future changes.
FossilOrigin-Name:
260fc696538b195e8decabaab46771f664fb829b539efa86fb0b8170db01fa0a
drh [Thu, 3 May 2018 19:56:50 +0000 (19:56 +0000)]
Overhaul of EXPLAIN QUERY PLAN. The output is now in the form of a tree.
More details of the query plan are shown, and what is shown is truer to what
actually happens.
FossilOrigin-Name:
ff01bbdabc4b9db3db8b928979442c91b32d72082158e4f5fe62ae51a73649d2
drh [Thu, 3 May 2018 19:47:14 +0000 (19:47 +0000)]
drh [Thu, 3 May 2018 16:56:06 +0000 (16:56 +0000)]
Fix various error handling conditions on the cell overwrite optimization.
Fix a test case so that it works with the new optimization.
FossilOrigin-Name:
f89b54f41405ed7e28132f66b8a0c690a087c2412c8f55790c2beabb0b521645
drh [Thu, 3 May 2018 14:07:18 +0000 (14:07 +0000)]
The BtCursor.info fields are only valid if info.nSize!=0.
FossilOrigin-Name:
54c537eead5b08104cfaf0d5b1e2706e53d6f74be2ca02e06229024fd889fc94
drh [Thu, 3 May 2018 13:56:23 +0000 (13:56 +0000)]
Add more corruption checking to the cell overwrite logic.
FossilOrigin-Name:
58d14afe1e1288d114ea213458b3121e0a95670887861928858b7f143c76f789
drh [Thu, 3 May 2018 12:57:48 +0000 (12:57 +0000)]
drh [Thu, 3 May 2018 03:59:02 +0000 (03:59 +0000)]
The sqlite3BtreeInsert() routine tries to overwrite an existing cell with
modified content if the new content is the same size. Pages are only dirtied
if they change. This prototype works some, but still has issues.
FossilOrigin-Name:
489451b378819621537231c1c8a07704437e11c1f5384fd53b09f3977d2213a4