]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Tue, 20 Mar 2018 13:00:33 +0000 (13:00 +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
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
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
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
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
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 [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
drh [Wed, 28 Feb 2018 21:50:00 +0000 (21:50 +0000)]
Use <pre> around code snippets in the documentation for sessions
interfaces. This is a documentation change only with no changes to code.
FossilOrigin-Name:
c949b915e893e917315ce21092d4c4bbd3e1b88d5326928f71dcc2f18f300702
drh [Wed, 28 Feb 2018 04:30:55 +0000 (04:30 +0000)]
Fix a potential NULL pointer deref following OOM in the new IS TRUE
logic.
FossilOrigin-Name:
48775ec693c21927ff26448acc614dd67d56240fa263499da2a9fe405c546c32
drh [Tue, 27 Feb 2018 15:40:59 +0000 (15:40 +0000)]
Add support for TRUE and FALSE keywords and for operators IS TRUE, IS FALSE,
IS NOT TRUE, and IS NOT FALSE. If there is are columns named TRUE or FALSE,
then the keywords resolve to the column names, for compatibility. The
behavior of the "DEFAULT true" phrase is changed to mean what it says,
rather than being an alias for "DEFAULT 'true'".
FossilOrigin-Name:
9a7f02c50e6c8a3dc3addf4e51b7e04bd31670d6ce58d26d55273c43b5ecc8b0
drh [Tue, 27 Feb 2018 14:49:25 +0000 (14:49 +0000)]
Clean up comments and variable names prior to merge.
FossilOrigin-Name:
6445519e91c4f98b4a9a45d5091d733c31497ebf0eb23a76edce3091f626035d
drh [Tue, 27 Feb 2018 00:58:13 +0000 (00:58 +0000)]
drh [Mon, 26 Feb 2018 21:26:27 +0000 (21:26 +0000)]
drh [Mon, 26 Feb 2018 20:15:54 +0000 (20:15 +0000)]
Get the "DEFAULT true" and "DEFAULT false" phrases working correctly in
CREATE TABLE.
FossilOrigin-Name:
8002f87d96b3f885cd208e7d204907a33ba60c4057ce2338b71e2de41215b0e5
drh [Mon, 26 Feb 2018 19:03:25 +0000 (19:03 +0000)]
Enhance TreeView so that it can display the new IS TRUE expression trees.
FossilOrigin-Name:
7e38305e6f71c3353df3d11d099e255eefbacceafd7ed2ccaba257fe2e7b8c38
drh [Mon, 26 Feb 2018 18:49:05 +0000 (18:49 +0000)]
Refactor for correct NULL handling in the IS TRUE, IS FALSE, IS NOT TRUE,
and IS NOT FALSE operators.
FossilOrigin-Name:
cf2abd59be9971a55bd3d6c5df374c6aaa23bf81819482b42f01ee2484dcd739
mistachkin [Mon, 26 Feb 2018 17:03:03 +0000 (17:03 +0000)]
mistachkin [Mon, 26 Feb 2018 16:49:20 +0000 (16:49 +0000)]
Fix heap issue in the shell on Win32 caused by allocator mismatch.
FossilOrigin-Name:
7b3a75519aa72a6b49a125ee84946ba2c0722dd6644ee0c80ba567eb85daf5c9
drh [Mon, 26 Feb 2018 15:31:39 +0000 (15:31 +0000)]
Merge the fix for determining truth of floating point values from trunk.
FossilOrigin-Name:
003dc140536d0dd4384252ae1b82827b5d8b2b399520f99549b9266a482009fb
drh [Mon, 26 Feb 2018 15:27:31 +0000 (15:27 +0000)]
Always interpret non-zero floating-point values as true even if their
integer part is zero. Fix for ticket [
36fae083b450e3af857a459e20 ].
FossilOrigin-Name:
a983fa857048c748112c2f805f13aadeae43b43b3d27fa55433a3699b51c9a0e
drh [Mon, 26 Feb 2018 03:20:18 +0000 (03:20 +0000)]
Experimental implementation of IS TRUE and IS FALSE operators. All TRUE and
FALSE to act like constants if the names do not resolve to a column name.
FossilOrigin-Name:
40314bc999af08ab10e654241208842b4bb95b19858d11249444372250ea4160
mistachkin [Fri, 23 Feb 2018 13:38:54 +0000 (13:38 +0000)]
Fix harmless compiler warnings in the zipfile extension seen with MSVC.
FossilOrigin-Name:
15c587cf6ffc920dc37f67cacb4f0db6a603fb998a22a639f755387910516414
mistachkin [Fri, 23 Feb 2018 13:38:20 +0000 (13:38 +0000)]
Enable the JSON1 extension when compiling the test fixture with MSVC.
FossilOrigin-Name:
e9e9f27b3d496531905ad7459cf60366ad3798f507266134dd6388cdec50fdc4
drh [Thu, 22 Feb 2018 18:30:53 +0000 (18:30 +0000)]
For the "SQLite archive" link in the README.md file, point to the
CLI .archive command documentation, not the original "sqlar" website.
FossilOrigin-Name:
4290faf5f7223ebe35b8ed5c4f0ba2444c1764501cabc09a79000f9c1d0890c7
drh [Thu, 22 Feb 2018 18:28:19 +0000 (18:28 +0000)]
Updates to the README.md file. Mention the ability to use SQLite-archives for
download.
FossilOrigin-Name:
ab9a7ae4eec0aaa5e0b472998f6de7212055d93c163f0b66da60b956bcc45add
drh [Wed, 21 Feb 2018 01:48:22 +0000 (01:48 +0000)]
Remove an unreachable branch in the walIndexPage() logic.
FossilOrigin-Name:
4e61a9731f5949dcf05c541106b56be16add04a7730613481fc8519d3e4f493b
drh [Wed, 21 Feb 2018 01:05:37 +0000 (01:05 +0000)]
Small performance improvement in sqltie3WalFindFrame().
FossilOrigin-Name:
52013cad0e6ce2d694f25e2984a76d438cef724f0e07c8bb9d3dce8a3caf4350
drh [Wed, 21 Feb 2018 00:48:02 +0000 (00:48 +0000)]
drh [Tue, 20 Feb 2018 22:20:57 +0000 (22:20 +0000)]
Make the walIndexPage() routine about 3x faster by factoring out the seldom
used reallocation logic into a separate subroutine.
FossilOrigin-Name:
e2b107141cd97bd4ab240748a9ce43fc2ec950ea74610697a4a7a3d7a6441e6b
drh [Tue, 20 Feb 2018 17:02:31 +0000 (17:02 +0000)]
In the speed-check.sh script, make WAL mode the default. Add the --legacy
option to do DELETE mode. Continue to use DELETE mode for long-term performance
graphs since WAL mode was not always available, but use WAL mode for
day-to-day performance measurements.
FossilOrigin-Name:
cd81613850c0458b4b5b2460b9b38ce7ff6e557f7add9615058bb96f5a344ccd
drh [Tue, 20 Feb 2018 16:39:11 +0000 (16:39 +0000)]
Remove a superfluous "#if 1". No logic changes.
FossilOrigin-Name:
caaffd32001ff44c31f2d6dbe921f9d294f869c2c4a81e943fdf3f43f8d9313c
drh [Tue, 20 Feb 2018 15:23:37 +0000 (15:23 +0000)]
Optimize calls to sqlite3_mprintf("%z...") so that they attempt to append
text onto the end of the existing memory allocation rather than reallocating
and copying.
FossilOrigin-Name:
4bc8a48e644562f6e6192f4c6fc4a70f6bb59f8126ed6c6dc876bedf65d74cda
drh [Tue, 20 Feb 2018 13:46:20 +0000 (13:46 +0000)]
Remove a lot of the text describing extended format options from the
documentation on sqlite3_mprintf() and friends, since that information is
now covered by the separate printf.html document. Provide links to that
other document. No changes to code.
FossilOrigin-Name:
99eec556f065ad19548e48d1f4ae0a3767b4e82e1c83fa2365062e3c5e0071fb
drh [Mon, 19 Feb 2018 22:46:19 +0000 (22:46 +0000)]
Enhance the string formatter (used by printf()) so that the width and
precision of string substitution operators refer to characters instead of
bytes when the alternate-form-2 flag ("!") is used. Also fix the %c
substition to always work within unicode, regardless of the
alternate-form-2 flag.
FossilOrigin-Name:
c883c4d33f4cd722982aca17eeb355d19eeed793991d923b5494d173b1d0c73a