]>
git.ipfire.org Git - thirdparty/sqlite.git/log
dan [Thu, 22 Mar 2018 20:11:14 +0000 (20:11 +0000)]
Remove some unused code from sqlite3rebaser_rebase().
FossilOrigin-Name:
07cc955eab0e993a75be82d58e17ca53c8abbcaf851983d235049599c19e582f
dan [Thu, 22 Mar 2018 19:52:22 +0000 (19:52 +0000)]
Fix another problem with rebasing updates against multiple remote changes.
FossilOrigin-Name:
c8e7b5a061a3f2fbd9072530177b80f917b39ab5d7cd6acb0a221ab33e78a5cd
dan [Thu, 22 Mar 2018 14:07:36 +0000 (14:07 +0000)]
Add tests to ensure that patchsets are handled correctly by the session rebase
APIs.
FossilOrigin-Name:
0e45baaec01947f6cbf47d5d5922a4cabe7d27181c04c0a08259c952fd023947
dan [Thu, 22 Mar 2018 11:15:59 +0000 (11:15 +0000)]
Remove some unused code from the sessions module.
FossilOrigin-Name:
a09518ab63a1ef1b7f56b9f9b16269fd83920469d4c4e179b1f68b35df4e0c4b
dan [Wed, 21 Mar 2018 20:13:56 +0000 (20:13 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
d00b71ecf857bc6d903442d91418d5a313c584dcdd8e9c8ff3b5d940dd45bcc5
dan [Wed, 21 Mar 2018 19:46:36 +0000 (19:46 +0000)]
Fix some documentation and other issues with the code on this branch.
FossilOrigin-Name:
a9ec68627a4533ca6aa7cc1b73f864db615a80e86eda9e33660f22d269a1ba1e
drh [Wed, 21 Mar 2018 19:25:59 +0000 (19:25 +0000)]
Add the optfuzz.c program for verifying the query planner using a fuzzer.
This is an initial code check-in.
FossilOrigin-Name:
3fb21251b0c9c731513e8fb137867c2710a77d99411c99348d3ac45d3babffd7
dan [Wed, 21 Mar 2018 17:29:53 +0000 (17:29 +0000)]
Fix rebasing of UPDATE changes against a set of remote changesets that feature
both OMIT and REPLACE conflict resolution on different fields of the same row.
FossilOrigin-Name:
d8bc3fdb6ba165ca8d7cab857ede8e7e6e2fac24ad59580c5e1db1a4942d295c
dan [Tue, 20 Mar 2018 20:27:03 +0000 (20:27 +0000)]
Add further tests and documentation for the sessions rebase feature.
FossilOrigin-Name:
7475a363ebb272ae23c0796fe7587714a156dc6a3a4a57ed948ed6f69d3c1218
drh [Tue, 20 Mar 2018 19:02:03 +0000 (19:02 +0000)]
Fix incorrect testcase labels on two cases in join5.test. No changes to code.
FossilOrigin-Name:
4661ac81c9589b06a07df8b7931fbd0a7f9a4e9ba1448192b70701dc85a29bd2
drh [Tue, 20 Mar 2018 18:08:33 +0000 (18:08 +0000)]
Improvements to the HAVING-to-WHERE optimization. The code uses less space
and less CPU, and there is now ".selecttrace" output.
FossilOrigin-Name:
5ad668d4339397fe66fe085e0527e37a1930917da88d462a8d89a465faa15e28
mistachkin [Tue, 20 Mar 2018 16:56:12 +0000 (16:56 +0000)]
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE. Also, fix handling of 'UPDATE OR REPLACE' statements run on zipfile virtual tables. Win32 portability fixes to the 'fileio' extension. Miscellaneous test fixes.
FossilOrigin-Name:
b36caeca91647616ac2ccdb281200c1a8bcd15d1f30dda0c1d89440d54607196
drh [Tue, 20 Mar 2018 13:44:10 +0000 (13:44 +0000)]
Avoid unnecessary write to the sqlite_sequence table when an insert
is done into an autoincrement table with an application-specified rowid
that is less than the maximum.
FossilOrigin-Name:
ec7addc87f97bcff3c3694b14a680453b52de3f8c106436f0708a1cc04b90faa
drh [Tue, 20 Mar 2018 13:26:03 +0000 (13:26 +0000)]
Add the ability to disable the push-down optimization using the 0x1000 bit
of SQLITE_TESTCTRL_OPTIMIZATIONS. Also some documentation fixes and an
enhancement to ".eqp full" in the CLI.
FossilOrigin-Name:
ae34edb7f4fa7b37a66cdf3a1d851980cb013e9abe72bdeca23e5323051e0646
dan [Tue, 20 Mar 2018 13:26:01 +0000 (13:26 +0000)]
Fix handling of "UPDATE OR REPLACE" statements run on zipfile virtual tables.
FossilOrigin-Name:
9a5ef341de2bd2fc4657a510f48159f7876f58d340b457b4272a71d389f88da3
drh [Tue, 20 Mar 2018 13:00:33 +0000 (13:00 +0000)]
dan [Tue, 20 Mar 2018 12:12:06 +0000 (12:12 +0000)]
drh [Tue, 20 Mar 2018 12:04:38 +0000 (12:04 +0000)]
In the CLI, avoid extra .selecttrace and .wheretrace output when in ".eqp full"
mode.
FossilOrigin-Name:
427bbf318a28e827bf03d43c2912c8ad937dd52f829feaf7fe374093692ed61b
drh [Tue, 20 Mar 2018 11:58:28 +0000 (11:58 +0000)]
Closer reading of the sqlite3_db_config() documentation show that it is
subtly incorrect. This check-in fixes the problem. No code changes.
FossilOrigin-Name:
44d90e7f4bc83680e8fbbf1a0423c6f5cc2cc2aed118b7af1c4c3d9e09b05dd7
drh [Tue, 20 Mar 2018 11:51:36 +0000 (11:51 +0000)]
Fix a minor formatting issue on the sqlite3_db_config() documentation.
No changes to code.
FossilOrigin-Name:
8a439a6dda390d7486feb837f87a83e16abd283c882e81e637bd1235d2684379
drh [Tue, 20 Mar 2018 11:24:30 +0000 (11:24 +0000)]
Add the ability to disable the push-down optimization using the 0x1000 bit of
SQLITE_TESTCTRL_OPTIMIZATIONS.
FossilOrigin-Name:
eddc35f3057e59fdc25a6911abfaa53a10cc43d8030925b65737b2f51f907421
drh [Mon, 19 Mar 2018 22:28:34 +0000 (22:28 +0000)]
Minor improvements to ".selecttrace". No changes to non-debug code.
FossilOrigin-Name:
03e541f606ead1a13e1084db88e168278c82a2ba72b18c89baafeab3141367b4
drh [Mon, 19 Mar 2018 19:05:45 +0000 (19:05 +0000)]
Enhance the command-line completion extension to return the names of
triggers and views along with the names of tables.
FossilOrigin-Name:
10e32204e1850354ff16fc052145726e903f87185a37f172831dddad1955184e
drh [Mon, 19 Mar 2018 16:09:36 +0000 (16:09 +0000)]
In the compile_options pragma, show the actual value of the
SQLITE_ENABLE_CEROD compile-time option, if it exists.
FossilOrigin-Name:
1ec339fd109b31e1d2b1e73345bd7a00c3d755f2c45c14d050a8203969163d60
drh [Mon, 19 Mar 2018 16:06:11 +0000 (16:06 +0000)]
Improved ".selecttrace" output formatting. No changes in non-debug code.
FossilOrigin-Name:
30704d2a52d37717d8b34a402c99ea32453e5c1a9840037dba96591f4acc1503
drh [Sat, 17 Mar 2018 16:26:36 +0000 (16:26 +0000)]
Do not use sqlite3_column_decltype() in the CLI if it is compiled with
SQLITE_OMIT_DECLTYPE.
FossilOrigin-Name:
442e816b5fed80ebeb58c7c0ab9c2ef999bf488519bf5da670e9cec477034540
mistachkin [Sat, 17 Mar 2018 02:13:13 +0000 (02:13 +0000)]
For 'zipfile', detect attempts to cause a duplicate entry via UPDATE.
FossilOrigin-Name:
cf78a882799424610209e9ac5e76771db3f5e6704ffa181f9598eb0986d93eb8
mistachkin [Sat, 17 Mar 2018 00:44:29 +0000 (00:44 +0000)]
Another Win32 portability fix for the 'zipfile' tests.
FossilOrigin-Name:
9f604418ca21472d84d754f4c3b7f170e5c2bff05e8cee86640e45b43bc53a49
drh [Fri, 16 Mar 2018 23:59:36 +0000 (23:59 +0000)]
Detect corruption in the form of the sqlite_sequence table pointing to the
wrong type of btree.
FossilOrigin-Name:
525deb7a67fbd64726c89d5cc36a54b090111e31239431efeeb2bda9836828e0
mistachkin [Fri, 16 Mar 2018 23:54:36 +0000 (23:54 +0000)]
Win32 portability fixes to the 'fileio' extension.
FossilOrigin-Name:
9d2b0f8b84aac862b0572b183e3ba53ea8c0d8742aaa3c3fbe59f6036054fd1a
mistachkin [Fri, 16 Mar 2018 23:54:26 +0000 (23:54 +0000)]
mistachkin [Fri, 16 Mar 2018 23:54:12 +0000 (23:54 +0000)]
Make a couple tests less sensitive to timing.
FossilOrigin-Name:
bc2af8e0aa28d8d10612ab9464c008a970348b4720bb34d0c546d341e2bc09e0
mistachkin [Fri, 16 Mar 2018 23:53:47 +0000 (23:53 +0000)]
Fix a duplicate test number and cleanup a bit of Makefile whitespace.
FossilOrigin-Name:
56d11c250961790579a7aeee65e83fdb29462ae37f9de93da13fbd890fc0a01d
drh [Fri, 16 Mar 2018 20:23:01 +0000 (20:23 +0000)]
Detect databases whose schema is corrupted using a CREATE TABLE AS statement
and issue an appropriate error message.
FossilOrigin-Name:
d75e67654aa9620b9617786553a002f54e8c6dcbbcc58948a06bd98a0916d75a
drh [Fri, 16 Mar 2018 20:15:58 +0000 (20:15 +0000)]
Better error message text when the schema is corrupted by a CREATE TABLE AS
entry.
FossilOrigin-Name:
e13993cf833423eec5f94082cee7213b2d97bcf40dddb2683cf5a8ebf50a33e3
mistachkin [Fri, 16 Mar 2018 19:10:05 +0000 (19:10 +0000)]
Fix a parsing issue associated with a corrupt sqlite_master table.
FossilOrigin-Name:
5f779ff6b48ec97efacd49b1715b7e5272694fa839be349c90667812bbffe22b
drh [Fri, 16 Mar 2018 18:46:30 +0000 (18:46 +0000)]
Avoid writing the sqlite_sequence table when it has not actually changed.
FossilOrigin-Name:
3e3849a9d1a06673e6c713a42194f5da339fbf6533fa418c38f63d09bc045867
dan [Fri, 16 Mar 2018 18:02:47 +0000 (18:02 +0000)]
Fix a problem with handling rebasing UPDATE changes for REPLACE conflict
resolution.
FossilOrigin-Name:
f7bf71f1d47044e3cbc74018294b8af5ad52c2bb84954e99bbd4e9b8c36fc077
dan [Fri, 16 Mar 2018 07:48:43 +0000 (07:48 +0000)]
Fix a problem in test script thread001.test causing a spurious "-1 files were
left open" error when run separately.
FossilOrigin-Name:
1774f1c3baf0bc3d83a53c52702696ff21814fa1de07cc38fd098832e6757b09
dan [Thu, 15 Mar 2018 19:25:40 +0000 (19:25 +0000)]
Add simple tests for the sessions module rebase API.
FossilOrigin-Name:
cf0d1abb44cf170d747e9c11f49ec03a29f00ab4821c613ca1e05b883a568211
drh [Thu, 15 Mar 2018 17:46:42 +0000 (17:46 +0000)]
Fix a typo in a comment used to generate documentation. No code changes.
FossilOrigin-Name:
f1784aff4e6ff1c84d3fa0069034290154220fd2fa85c7df342c717ad54f4b91
drh [Thu, 15 Mar 2018 15:09:45 +0000 (15:09 +0000)]
Fix an issue with the fsdir() table-valued function not resetting correctly
after each pass of a join.
FossilOrigin-Name:
7ce4e71c1b7251be9e922b21dfeba1f9aef6a47ce6495ecb7f94fd785ab564f2
mistachkin [Thu, 15 Mar 2018 05:25:57 +0000 (05:25 +0000)]
Draft fix for an fsdir() issue reported via the mailing list.
FossilOrigin-Name:
48641010c24bf37f13d68c4d19c5c3e9b41404af12a4947705cc53a31db04178
dan [Wed, 14 Mar 2018 21:06:58 +0000 (21:06 +0000)]
Add largely untested APIs for rebasing changesets.
FossilOrigin-Name:
39915b683b3f8d3bf872af1dede96bf2818b488a8638a1d248395023fc4bd0ef
drh [Wed, 14 Mar 2018 15:25:43 +0000 (15:25 +0000)]
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status().
FossilOrigin-Name:
48a06eb02b42a021b835ff9766535805723259b9701b87fb17fa488b133cb53a
drh [Wed, 14 Mar 2018 15:06:42 +0000 (15:06 +0000)]
Disable one of the test cases from check-in [
21ecbce1378f3cc4 ] when
API_ARMOR is not enabled.
FossilOrigin-Name:
8fb23d4281915b4507e4d42a300f4b5f958ad88ad408218659c7459775d7b114
drh [Wed, 14 Mar 2018 14:53:50 +0000 (14:53 +0000)]
Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status()
FossilOrigin-Name:
3faeb851374471a6f94a6fab3a62c73d03330eae6fc72cd1a277b03ad12dcdd0
dan [Wed, 14 Mar 2018 08:27:39 +0000 (08:27 +0000)]
Improve detection of out-of-range parameters in sqlite3_stmt_status() for
SQLITE_ENABLE_API_ARMOR builds.
FossilOrigin-Name:
21ecbce1378f3cc4b1051628b8c1580bb807c8745a1f525bc089036af93a54af
dan [Tue, 13 Mar 2018 20:31:23 +0000 (20:31 +0000)]
Add sqlite3_changeset_apply_v2() and apply_v2_strm() to the sessions module.
FossilOrigin-Name:
445bfe977d9f3a891e08ef33237862ed047fe83e134ef3ed8b47ee0f5abd8cd6
dan [Mon, 12 Mar 2018 21:09:16 +0000 (21:09 +0000)]
Fix a typo causing SQLITE_LOG_CACHE_SPILL builds to fail.
FossilOrigin-Name:
0171d4a71ca7911a9fd409a42eeed0eda4521b6e48df5cd058364c0a736313b7
mistachkin [Sat, 10 Mar 2018 20:45:44 +0000 (20:45 +0000)]
Add more tests for the profile output of the Tcl trace_v2 method.
FossilOrigin-Name:
61eeb48f03f8a9a32330a5cae4387bb4e5618078cf669a5831910f99126900ec
drh [Sat, 10 Mar 2018 20:25:08 +0000 (20:25 +0000)]
Fix the second callback argument to the "profile" response of the
"trace_v2" method in the TCL interface so that it shows the actual
number of nanoseconds for the command, not the address of the variable
containing the number of nanoseconds.
FossilOrigin-Name:
8f9a12518642e5be9760956ff345fe54ed5bd3cab55328e88312278d3d78bc76
drh [Sat, 10 Mar 2018 14:17:01 +0000 (14:17 +0000)]
Add support for INSERT OR REPLACE and INSERT OR IGNORE on the zipfile
extension.
FossilOrigin-Name:
8ad35d483e4293d5571eeacc20fd26cdc4064fbee7b63d974879d507a0ee5792
drh [Sat, 10 Mar 2018 13:21:41 +0000 (13:21 +0000)]
Improved error messages from the zipfile extension.
FossilOrigin-Name:
f634a7e386918b829389f20c330d312315fdd61125cd2c5f66cf17a5d74bce49
drh [Sat, 10 Mar 2018 12:53:20 +0000 (12:53 +0000)]
Avoid harmless left-shifts of negative numbers in the zipfile extension
when building ZIP archives of files with pre-DOS dates.
FossilOrigin-Name:
16bba8650cc24a0fd606944422bb31f2b8bdbe0a5a483678989e400b751eab4d
drh [Sat, 10 Mar 2018 12:34:08 +0000 (12:34 +0000)]
Fix the zipfile extension so that it is able to create symbolic link entries
in the ZIP file even on systems like Win32 that do not support symbolic links
on the native filesystem.
FossilOrigin-Name:
2a4493f4ad2d09c1097e98e7086623669f3f252571884d515e51a98b1c6855e1
drh [Fri, 9 Mar 2018 22:18:53 +0000 (22:18 +0000)]
Fix the .archive command in the CLI so that it actually compresses content.
FossilOrigin-Name:
3c2e3c2d3dd5d951099ad8d9f74d3c20dae11dd5615d86a6e2283b28ff5b19aa
drh [Fri, 9 Mar 2018 21:54:01 +0000 (21:54 +0000)]
Enhance the ".ar" command in the CLI so that it is able to update and
create ZIP Archives.
FossilOrigin-Name:
9404765ef7487013f01ecf24c0a1f70040cd11e7dbb6378646d15de4e5660a40
drh [Fri, 9 Mar 2018 16:37:05 +0000 (16:37 +0000)]
Setting ".stats 2" in the CLI causes column metadata for each
prepared statement to be displayed.
FossilOrigin-Name:
7fea00fd96a8ab7e65734540edb907b6224659ae95d7e0504755f2610c545587
drh [Fri, 9 Mar 2018 15:24:33 +0000 (15:24 +0000)]
Simplification to the shell_exec() mechanism in the CLI.
FossilOrigin-Name:
72e8f529ac8a268611f16456b13d55cc6c62df7f1a0aaa78a169338a0d95b960
dan [Fri, 9 Mar 2018 14:11:36 +0000 (14:11 +0000)]
Fix a problem in test file nockpt.test causing errors with
SQLITE_DEFAULT_AUTOVACUUM builds.
FossilOrigin-Name:
e547c83f3eb71175574d4b49a0981b048bf525f57d36a2410d955cf1832bec22
drh [Fri, 9 Mar 2018 14:06:11 +0000 (14:06 +0000)]
Fix a test case in zipfilefault.test so that it only runs if JSON1 is
available.
FossilOrigin-Name:
072b244790893a699dc49d7a2cead85bed016f8e28d18ae7662fbeb3298cb235
drh [Fri, 9 Mar 2018 12:46:34 +0000 (12:46 +0000)]
Attempt to fix a harmless compiler warning from Clang.
FossilOrigin-Name:
bba1bfbde62733e14f458bf3b71cb00d4899a4ebae2553d6ed24d48495cdced1
mistachkin [Thu, 8 Mar 2018 19:56:52 +0000 (19:56 +0000)]
Enable API armor handling for the new deserialize APIs.
FossilOrigin-Name:
0798c91aa9d5d347680a9d80d420224297360e03341365d48aca829cd7c423db
drh [Thu, 8 Mar 2018 18:14:41 +0000 (18:14 +0000)]
Add the --append and --zip options of the CLI to the --help message.
FossilOrigin-Name:
f010c86ecef4a1aaad986fa8ceb8230814d6c909cc28ce19e55d63f592fee9d0
mistachkin [Thu, 8 Mar 2018 18:09:22 +0000 (18:09 +0000)]
Include the 'sessionfuzz' tool in the clean target for MSVC.
FossilOrigin-Name:
0f5a8666b8b479bb6e470590659c1775fb9b0d6a9eee931cb48f98651cd7ffcb
drh [Thu, 8 Mar 2018 16:36:23 +0000 (16:36 +0000)]
Updates to documentation on sqlite3_serialize() and sqlite3_deserialize().
No changes to code.
FossilOrigin-Name:
e71ceb6089695c651aaf1fa8662c5caf771ac9efc2f2e8efa0eddae6a6a389ea
mistachkin [Wed, 7 Mar 2018 21:39:25 +0000 (21:39 +0000)]
Fix harmless compiler warnings in the 'dbdump' tool.
FossilOrigin-Name:
2b9bb2664c56dd3280b4aad05b7f64dd23e5b992b5621a48dbfdb7c358d0f3ae
mistachkin [Wed, 7 Mar 2018 21:29:15 +0000 (21:29 +0000)]
mistachkin [Wed, 7 Mar 2018 21:13:49 +0000 (21:13 +0000)]
Enable compilation of 'sessionfuzz' tool using MSVC.
FossilOrigin-Name:
c58de43b8f2723d659fc9820caf667e215fdfa9aa2d7337fc82ba5b6f8db2e4c
drh [Wed, 7 Mar 2018 20:48:21 +0000 (20:48 +0000)]
Add the sessionfuzz test program and data obtained from a week of running
AFL. Automatically run this test program on any "make test" on unix.
FossilOrigin-Name:
ecaedfe596d4c05546bfd798fdca94aff6a81f55be7b17ddb65fc5547c4b5aa6
mistachkin [Wed, 7 Mar 2018 15:54:39 +0000 (15:54 +0000)]
mistachkin [Wed, 7 Mar 2018 15:19:22 +0000 (15:19 +0000)]
Fix various compilation issues seen with MSVC.
FossilOrigin-Name:
d6fa938919dbb3fe73ccdd3cbf0e9264d524ed79125f93f977a7d91c425db821
mistachkin [Wed, 7 Mar 2018 14:53:36 +0000 (14:53 +0000)]
mistachkin [Wed, 7 Mar 2018 14:49:32 +0000 (14:49 +0000)]
mistachkin [Wed, 7 Mar 2018 14:42:17 +0000 (14:42 +0000)]
drh [Wed, 7 Mar 2018 13:01:54 +0000 (13:01 +0000)]
Add the sqlite3_serialize() and sqlite3_deserialize() interfaces, enabled
when the -DSQLITE_ENABLE_DESERIALIZE compile-time option is used.
FossilOrigin-Name:
fc42d31d6fca21abc5377a463ed800e3066b2f3fbd2d85cb486f402d2ae7cb15
drh [Wed, 7 Mar 2018 01:37:05 +0000 (01:37 +0000)]
drh [Tue, 6 Mar 2018 21:43:19 +0000 (21:43 +0000)]
Improved documentation for sqlite3_serialize() and sqlite3_deserialize().
Change the name of the compile-time option to enable these interfaces
from SQLITE_ENABLE_MEMDB to SQLITE_ENABLE_DESERIALIZE.
FossilOrigin-Name:
f07e97aed435b02e1473053c0257ec5c89bf0b3e46076b7a9382de432bbc2497
drh [Tue, 6 Mar 2018 20:54:27 +0000 (20:54 +0000)]
Handle some boundary cases in memdb associated with OOM faults.
FossilOrigin-Name:
b58ca4cb0c921e81efad527c80b220be120263cfdb04528ae26ecf8b8f66f44a
drh [Tue, 6 Mar 2018 19:14:32 +0000 (19:14 +0000)]
dan [Tue, 6 Mar 2018 11:46:34 +0000 (11:46 +0000)]
Avoid running a couple of tests in crash8.test that depend on the presence of
the journal file if running on an F2FS file-system that does not require a
journal file.
FossilOrigin-Name:
797e02e0ee703ab0fd53e26ba5c96ac7429b8022522bec201423718d508acf24
drh [Tue, 6 Mar 2018 04:01:08 +0000 (04:01 +0000)]
drh [Tue, 6 Mar 2018 02:00:20 +0000 (02:00 +0000)]
drh [Mon, 5 Mar 2018 23:23:28 +0000 (23:23 +0000)]
Fix walIteratorInit() so that it always leaves the iterator as a NULL pointer
if an OOM occurs. This fixes an assertion fault introduced by
check-in [
044b0b65e716bff ].
FossilOrigin-Name:
e5ce256aa1f7a8ae995b79c9da895827bee5d8d0724fc15413ff203dc9e2602d
drh [Mon, 5 Mar 2018 21:19:57 +0000 (21:19 +0000)]
dan [Mon, 5 Mar 2018 21:17:20 +0000 (21:17 +0000)]
Fix another crash in the sessions module triggered by malformed input.
FossilOrigin-Name:
7e70c9b86af557e86152748ddf1da467e62817b35df1da0d7d3b67941b198897
drh [Mon, 5 Mar 2018 20:21:50 +0000 (20:21 +0000)]
Improved command-line help for the -A option on the CLI.
FossilOrigin-Name:
d937ac181c5c78b9e5068db4ff1dab6becdba8c22cd27a3cfa0d4c12da1ec7ad
drh [Mon, 5 Mar 2018 20:20:22 +0000 (20:20 +0000)]
A new way of doing archive commands on the command-line for the CLI. The -A
option means that everything that follows is a ".archive" command, including
any suffix on the -A option.
FossilOrigin-Name:
9d8081fabc491ba75d26ea81b3548bd10aeeb3334b0ad1462d7ab656c8d7c35e
drh [Mon, 5 Mar 2018 19:34:05 +0000 (19:34 +0000)]
In the CLI, add a new command-line option "--archive" (also "--ar") that
passes all subsequent arguments to the ".archive" command.
FossilOrigin-Name:
a5c4d30af1271dea2d322b0679fe963bbd0d5db6bba8904caf5e30e510d01832
drh [Mon, 5 Mar 2018 18:20:35 +0000 (18:20 +0000)]
dan [Fri, 2 Mar 2018 20:00:42 +0000 (20:00 +0000)]
In sqlite3_checker, wrap the call to "SELECT checkfreelist()" in a
transaction.
FossilOrigin-Name:
02906e55d73ea3521ad1e6807cffed5c759147f7b2d89efc4add984e53e3ad49
dan [Fri, 2 Mar 2018 16:52:47 +0000 (16:52 +0000)]
In a checkpoint, figure out if it is possible to checkpoint any frames at all
before creating the wal-iterator.
FossilOrigin-Name:
044b0b65e716bffeddedbd1b0360c4c332f6d2359167c1d327a5ff96539474cb
dan [Fri, 2 Mar 2018 15:42:20 +0000 (15:42 +0000)]
Optimize the obscure case of running a checkpoint against a very large wal
file for which a large percentage of the frames have already been checkpointed.
FossilOrigin-Name:
0f5057dffa9be1bccab04894709d25bf1f066c4b1aef50d67ee635d46d300a4d
drh [Thu, 1 Mar 2018 22:18:26 +0000 (22:18 +0000)]
Allow the zSchema argument to sqlite3_serialize() to be NULL to mean the
main database.
FossilOrigin-Name:
5b01b9914fb612ceece34f40d45c7eb97c3504fc5a0a5ff0e67120bdee67f6ee
mistachkin [Thu, 1 Mar 2018 18:09:02 +0000 (18:09 +0000)]
dan [Thu, 1 Mar 2018 15:20:33 +0000 (15:20 +0000)]
Fix further crashes in sqlite3changeset_apply() caused by corrupt changeset
blobs.
FossilOrigin-Name:
2c01c72e357296d761493aac47329f15d87afcada2b39606fc018af0e0011bb5
drh [Thu, 1 Mar 2018 13:44:40 +0000 (13:44 +0000)]
dan [Thu, 1 Mar 2018 12:05:51 +0000 (12:05 +0000)]
Fix some crashes in the sqlite3changeset_apply() function that could be caused
by corrupt changeset blobs.
FossilOrigin-Name:
745a9a7fef0f28a57ea3f44899058993f6ecdedda52c81a09a4a9ce09c9004d6
drh [Wed, 28 Feb 2018 22:21:29 +0000 (22:21 +0000)]
Enhance the sessions documentation to show the methods of the various objects.
FossilOrigin-Name:
e01177754ad6d9e2d38adddddd2e2e212094dac1154bda5fcee61ca8b678ae0f