]>
git.ipfire.org Git - thirdparty/sqlite.git/log
dan [Tue, 7 May 2019 16:28:50 +0000 (16:28 +0000)]
Remove some redundant code from sqlite3rbu.c. Add test cases for RBU vacuum.
FossilOrigin-Name:
7b051698d8a763d9db190fd662931266d24a4982f34f100a28641934c222e37b
dan [Mon, 6 May 2019 20:40:23 +0000 (20:40 +0000)]
Optimize further cases of restarting an RBU vacuum.
FossilOrigin-Name:
6b3261bfa1d762aa29a57244a30cf5e35655f1fe9c30ee682c186dec29d7a2c2
dan [Sat, 4 May 2019 20:04:42 +0000 (20:04 +0000)]
Optimize some cases of restarting an RBU vacuum.
FossilOrigin-Name:
cdc09867ed6522026ae7bfac1f59cd79b60fba6d07d49b99b030a501a7059ee4
drh [Sat, 4 May 2019 17:32:07 +0000 (17:32 +0000)]
Fix the NOT NULL logic in the theorem prover that determines when a partial
index can be used. Ticket [
5c6955204c392ae763a95 ].
FossilOrigin-Name:
c2e439bccc40825e211bfa9a88e6a251ff066ca7453d4e7cb5eab56ce7332635
mistachkin [Sat, 4 May 2019 03:56:47 +0000 (03:56 +0000)]
Fix harmless compiler warning seen with MSVC.
FossilOrigin-Name:
5862b83eb36b93016d37e5b86ebb183d891bb553901facab1e5d83e114a38ec3
drh [Sat, 4 May 2019 01:41:18 +0000 (01:41 +0000)]
In the sqlite3_value or Mem object, make the MEM_IntReal type completely
independent from MEM_Int and MEM_Real. This helps avoid problems when
inserting non-float values into a "REAL" column.
FossilOrigin-Name:
5a8a23ee5f60a31dbd167a0966d1ab3d0f1c07df2251906cb73f23d1f5466b46
drh [Sat, 4 May 2019 01:29:13 +0000 (01:29 +0000)]
New testcase macros to ensure that MEM_IntReal is fully tested.
FossilOrigin-Name:
8b8ef445ccccc148af2cda5975986af0d134352fe16283f65d0f8a91c9ffa932
drh [Fri, 3 May 2019 21:17:28 +0000 (21:17 +0000)]
Add the SQLITE_TESTCTRL_RESULT_INTREAL test-control and use it to create
the intreal() SQL function in testfixture. Write a few simple tests to
prove this all works. TH3 will hold most of the INTREAL tests, probably.
FossilOrigin-Name:
c9838731325e0ca73bd8784c10c74ae043fed7861e6de269fd90e29fa4a19955
drh [Fri, 3 May 2019 19:34:41 +0000 (19:34 +0000)]
Ensure that UTF16 strings are properly zero-terminated before returning them
in an sqlite3_value_text16() request, even if the string is invalid UTF16
because it was formed from an arbitrary and/or odd-length BLOB.
FossilOrigin-Name:
3a16ddf91f0c9c516a7fc2a9d4a4f69a8326f9b8ea66421e9ef1a2d663687b70
dan [Fri, 3 May 2019 18:50:24 +0000 (18:50 +0000)]
Fix a memory-leak/segfault caused by using OP_OpenDup and OP_OpenEphemeral on the same VM cursor.
FossilOrigin-Name:
a9b90aa12eecdd9f2a8b2d23da8b7cac43d8b1789f5cefa3f4e939d9f2b59269
dan [Fri, 3 May 2019 17:19:10 +0000 (17:19 +0000)]
Fix a problem where self-joins on views that are aggregate queries may return the wrong result.
FossilOrigin-Name:
74ef97bf51dd531a277cf22fa4d42043d93799d5a5bd550812648834460fe0b7
drh [Fri, 3 May 2019 17:08:16 +0000 (17:08 +0000)]
Improved comments on the elements of the array constant used to implement
the sqlite3_value_type() interface.
FossilOrigin-Name:
f73a7de7a53f6aa6517221550a9c9882893206edfd7433e80e5fc0f441db9fc4
drh [Fri, 3 May 2019 02:41:36 +0000 (02:41 +0000)]
Fix the ".open --hexdb" command in the CLI so that it works even with
terminal input.
FossilOrigin-Name:
9b5d943426c9273162ecb4c561eb3b25e843318dd438239c882c9db50f788454
drh [Thu, 2 May 2019 21:36:26 +0000 (21:36 +0000)]
Make MEM_IntReal a completely independent type, meaning a floating point
value stored as an integer. This fixes a problem with arithmetic within
arguments to string functions on indexes of expressions. But it is a big
change and needs lots of new testcase() macros for MC/DC and so it is
initially put on this branch.
FossilOrigin-Name:
dba836e31cb29d339b4520acb06188a892a52e45c50aba9742966b01108e251a
drh [Thu, 2 May 2019 17:45:52 +0000 (17:45 +0000)]
Ensure that the typeof() function always returns SQLITE_FLOAT for floating
point values even when the value is stored as an integer to save space.
FossilOrigin-Name:
48889530a9de22fee536edfd1627be62396ed18d842d5fd6d91e010b4337be95
dan [Thu, 2 May 2019 17:06:01 +0000 (17:06 +0000)]
Add options to wapptest.tcl similar to those supported by releasetest.tcl. Also add the -noui switch, for running without wapp altogether.
FossilOrigin-Name:
005a169406ccea6e3cc42271620870d985e8bada1ad49a63656003db4911cb51
drh [Thu, 2 May 2019 15:56:39 +0000 (15:56 +0000)]
Earlier detection of a database corruption case in balance_nonroot(), to
prevent a possible use of an uninitialized variable.
FossilOrigin-Name:
c509d8a8aebe0da4847e95cf737c21313a665de9a540da2db57b8ed22f98a402
drh [Thu, 2 May 2019 01:41:53 +0000 (01:41 +0000)]
The collating sequence of the column must be TEXT if the LIKE or GLOB pattern
starts with a "+" sign. This is another case of ticket
[
c94369cae9b561b1f996d005 ] that was discovered by Manuel Rigger.
FossilOrigin-Name:
b043a54c3de54b286c4eae564eab6b99118a410d99bdb63480faba3123d2ca11
drh [Thu, 2 May 2019 00:52:50 +0000 (00:52 +0000)]
Fix an issue (discovered by OSSFuzz) in the enhanced OP_Concat operator
from check-in [
713caa382cf7dd ] earlier today.
FossilOrigin-Name:
3e897702f8f789fe5119b9042fb93eca3fbfcc44564fbfa66c65628725b1157d
drh [Wed, 1 May 2019 19:01:27 +0000 (19:01 +0000)]
drh [Wed, 1 May 2019 18:59:33 +0000 (18:59 +0000)]
When values have real affinity and are converted into strings for CHECK
constraints or index expressions, do the conversions into a real-number format
even if the values are stored as integers for efficiency.
This appears to fix ticket [
ae0f637bddc5290b446 ].
FossilOrigin-Name:
5997d075665faca6b70fa647e877ebc84c473b32887b96235865d59ce80247f8
dan [Wed, 1 May 2019 17:36:56 +0000 (17:36 +0000)]
Fix an incompatibility with -DSQLITE_OMIT_LOAD_EXTENSION=1 in dbdata.test.
FossilOrigin-Name:
a77cd85b1a8b86e71b511f05f8c67faa046d24a48684139d2f64e51249203411
dan [Wed, 1 May 2019 17:32:36 +0000 (17:32 +0000)]
Fix a case in wapptest.tcl where a failed test might report 0 errors.
FossilOrigin-Name:
2be1ed70df605663822d1afdde757f426ccf2ee38add8dc6b6bb4fc4d90a31dc
drh [Wed, 1 May 2019 15:32:40 +0000 (15:32 +0000)]
Avoid unwelcomed side effects on the input operands in the OP_Concat
operator. Fix for ticket [
3be1295b264be2fac49b681 ]
FossilOrigin-Name:
713caa382cf7ddef872e510a76a5fca40be1a8d8876ce2f91b632bb0810a6630
dan [Wed, 1 May 2019 15:25:38 +0000 (15:25 +0000)]
Update wapptest.tcl so that it deletes extra files if the "Keep files:" checkbox is clear. Set it by default.
FossilOrigin-Name:
09623cc4cc82e3c123d1fd5d88b2f4b50ec5f2cc7e579a7203258bf0c246a74f
drh [Wed, 1 May 2019 14:41:47 +0000 (14:41 +0000)]
In "PRAGMA vdbe_trace" output, show the results of OP_Affinity opcodes.
FossilOrigin-Name:
56604bb60a8ebac8d2854628d1b052d594d7effe14be8333977995dc07b65114
dan [Wed, 1 May 2019 08:48:44 +0000 (08:48 +0000)]
Fix an incompatibility with auto-vacuum mode in new test script recover.test.
FossilOrigin-Name:
36dd5b0804797a35d0dc596b6ca4f71813a155c5a470237ab6e3d1bcd9ccc6be
dan [Tue, 30 Apr 2019 20:43:10 +0000 (20:43 +0000)]
Update wapptest.tcl to use a simpler slave script. And to leave scripts wapptest_configure.sh and wapptest_make.sh in each test directory.
FossilOrigin-Name:
07e527d781838412b2a434e64baaa49cbf7410a51c7393f54adc7b8eaffd5229
dan [Tue, 30 Apr 2019 15:36:32 +0000 (15:36 +0000)]
Fix a problem allowing a Table object to be deleted from within a call to the xDestroy method of the associated virtual table, causing a use-after-free error.
FossilOrigin-Name:
1dbbb0101e8213b92b9a4c78c0fd2f9d0240a8ea3b40dff1033d1b8d71fb04ef
drh [Tue, 30 Apr 2019 14:26:31 +0000 (14:26 +0000)]
Fix an error message in the Lemon parser generator.
FossilOrigin-Name:
b6d7d42b7426622a26b67809cd1f21285fea120aa1897377b9946840463b41f1
drh [Tue, 30 Apr 2019 11:54:36 +0000 (11:54 +0000)]
Small performance increase and size reduction in the implementation of the
LIKE and GLOB operators.
FossilOrigin-Name:
f97626f921dafe596b615a168ef31987f4a1c0b52956443e1a5c1148b49cab74
drh [Tue, 30 Apr 2019 01:08:42 +0000 (01:08 +0000)]
Slightly smaller and faster implementation of the OP_MakeRecord opcode.
FossilOrigin-Name:
3bdce7ef1a6bb03affe978243fec603d5a55c071aa6d87c469a3c199d23f3b5e
drh [Mon, 29 Apr 2019 16:44:11 +0000 (16:44 +0000)]
Changes to oserror.test so that it works even on systems that allow
an unusually large number of file descriptors.
FossilOrigin-Name:
a27b0b880d76c6838c0365f66bcd69b1b49b7594470993b608f4e490cbdc4882
drh [Mon, 29 Apr 2019 13:48:45 +0000 (13:48 +0000)]
Do not de-duplicate columns index columns associated with a WITHOUT ROWID table
if the columns have different collating sequences. This is the fix for
ticket [
3182d3879020ef3b2 ]. There is one test case added, but most of the
tests are done in TH3.
FossilOrigin-Name:
1b1dd4d48cd79a585e1fa7ee79128e9f2a9ee9846339dc56bbd67b75112dcad5
drh [Mon, 29 Apr 2019 13:30:16 +0000 (13:30 +0000)]
Improved header comment and precondition checking for the new isDupColumn()
function.
FossilOrigin-Name:
740d5ff6cc9bf7b151dfb8b27409e5923cfb2789b5398fe13d89563aff8ffc07
dan [Mon, 29 Apr 2019 11:41:46 +0000 (11:41 +0000)]
Fix a buffer overwrite in shell.c.in (part of the new .recover code).
FossilOrigin-Name:
92facbc73a940d2844ac88fafd2d2dadb10886fb0b7c53e23f346d18fa6d6327
dan [Mon, 29 Apr 2019 11:27:58 +0000 (11:27 +0000)]
Fix a stack overflow that could occur when renaming a table that has a trigger containing a window function invocation that itself contains a specific syntax error.
FossilOrigin-Name:
c621fc668c6538f9f5bdac204f012c64998679a61aa8e224d212503820224c09
drh [Sun, 28 Apr 2019 19:27:02 +0000 (19:27 +0000)]
Take collating sequence into account when removing redundant columns from
indexes on WITHOUT ROWID tables. This is the first proof-of-concept fix
for ticket [
3182d3879020ef3 ]. More testing needed.
FossilOrigin-Name:
b34fa5bff40d3d364bd8c80e7de55c606ef3caac47b14b5265ebcb38857eb85e
dan [Sat, 27 Apr 2019 20:30:19 +0000 (20:30 +0000)]
Add the ".recover" command to the shell tool. For recovering as much data as possible from corrupt databases.
FossilOrigin-Name:
50fe48458942fa7a6bcc76316c6321f95b23dc34f2f8e0a483826483b2fb16f6
drh [Sat, 27 Apr 2019 20:16:42 +0000 (20:16 +0000)]
Fix a minor typo in a comment. No changes to code.
FossilOrigin-Name:
95209072176ff21a91e96d5bd014b35ef100da2b0b93958baf6df4294a8daa85
dan [Sat, 27 Apr 2019 20:15:15 +0000 (20:15 +0000)]
Fix building the shell with SQLITE_OMIT_VIRTUAL_TABLE. And without SQLITE_ENABLE_DBPAGE_VTAB.
FossilOrigin-Name:
425d708c3908fe74f69b62e6dd1722a0018088977e12f14b312dad1df0fbb804
dan [Sat, 27 Apr 2019 19:36:49 +0000 (19:36 +0000)]
Add comments and fix formatting issues in new code in shell.c.in.
FossilOrigin-Name:
b91d819bd16de43fc99e379da0ba9c915b0c5afc68e804a50c3c1662c1f9a740
dan [Sat, 27 Apr 2019 18:47:03 +0000 (18:47 +0000)]
Add the "--lost-and-found" option to the ".recover" command. For setting the name of the orphaned rows table.
FossilOrigin-Name:
67bb88e24c74d02ae0c4ac6ff2f873f6b0035ccefe5cccfc71c5686cbc76b4c3
dan [Sat, 27 Apr 2019 15:35:45 +0000 (15:35 +0000)]
Fix a problem in the .recover command with recovering WITHOUT ROWID tables where the PK columns are not the leftmost in the CREATE TABLE statement.
FossilOrigin-Name:
91df4b8e0386105d01614921e8410994b621404a3d46ec4af8687b8743c52d52
dan [Fri, 26 Apr 2019 21:11:37 +0000 (21:11 +0000)]
Have .recover store all orphaned rows in a single table, with extra columns to indicate the orphaned page and sub-tree they were discovered within.
FossilOrigin-Name:
7221f6e33ed6a5a96ec61e25f2a1f70b84aae66e503d897eb7b7ff1aec42355d
dan [Fri, 26 Apr 2019 17:08:50 +0000 (17:08 +0000)]
Omit tests of the LIKE optimization in like3.test when SQLITE_ENABLE_ICU is defined.
FossilOrigin-Name:
af53c41a127c314c0608f3fd016d3a26896783745e46cd180976a188400cdb75
dan [Fri, 26 Apr 2019 15:40:27 +0000 (15:40 +0000)]
Fix another problem with database freelist handling in the ".recover" command.
FossilOrigin-Name:
bee2652ac26370e612a8c81dd7554befc2d523442a2fbbc77dc73479e6a0d7fd
dan [Fri, 26 Apr 2019 15:14:53 +0000 (15:14 +0000)]
Fix a locking-page related problem with the ".recover" command.
FossilOrigin-Name:
afdae10424f0f3d0f10a4b73e9732aa55c5ee664814d8ca0edd372cfb17c2445
dan [Thu, 25 Apr 2019 20:06:34 +0000 (20:06 +0000)]
Merge latest trunk changes into this branch.
FossilOrigin-Name:
1da302d85d7ad4ba54f877117a45d667439fd2ef31dc70ea1d54dc1fba196e68
dan [Thu, 25 Apr 2019 19:23:15 +0000 (19:23 +0000)]
Unless the "--freelist-corrupt" option is specified, do not have the .recover command attempt to recover data from pages that are on the database free-list.
FossilOrigin-Name:
8d2f52bb640d6d0f84b18d746043e56f45a73ace93239be1d036701f7f4018fd
dan [Thu, 25 Apr 2019 16:20:40 +0000 (16:20 +0000)]
Fix a bug preventing .recover from working on databases where the final page of the db is corrupt.
FossilOrigin-Name:
959bbd11e92cc789973daf20dfcb8a6d8dc724dd603b286cbdd59e5d1fdb2909
dan [Wed, 24 Apr 2019 20:48:55 +0000 (20:48 +0000)]
Improve the performance of the .recover command.
FossilOrigin-Name:
a50768314d10d743a0cc013b434b516f0763e0a6c5b79655d8fefde7de53e869
drh [Wed, 24 Apr 2019 17:04:02 +0000 (17:04 +0000)]
dan [Wed, 24 Apr 2019 16:13:52 +0000 (16:13 +0000)]
Fix another instance in fts3 where a corrupt record can cause a buffer overflow.
FossilOrigin-Name:
e1724f1d618cfbcfd1e495d8965a395656cfc1114e1bffd4bc3be0bd5cdb6550
dan [Wed, 24 Apr 2019 15:57:25 +0000 (15:57 +0000)]
Fix a problem in fts5 where a corrupt position list could lead to a buffer overwrite.
FossilOrigin-Name:
516ca8945150bdc1363603e234be5f3f4a3861f581d7cc9455da3e87b9974309
dan [Wed, 24 Apr 2019 15:13:02 +0000 (15:13 +0000)]
Fix an error in fts3_write.c allowing a corrupt database to cause a crash.
FossilOrigin-Name:
6e4a5f22811bcd1485e27073ec96821d448b91b6d1ff1659cc3772449d19a762
mistachkin [Wed, 24 Apr 2019 04:53:01 +0000 (04:53 +0000)]
Correction to the #if in the previous check-in.
FossilOrigin-Name:
30dc05ac12910d318a737f8d7a0e895e5c42ff4c53472aeebc89f052eac05deb
mistachkin [Wed, 24 Apr 2019 00:37:11 +0000 (00:37 +0000)]
Fix for 8-byte alignment asserts that can trigger in some circumstances with 32-bit MSVC.
FossilOrigin-Name:
4c02832e0c4351ced9d2391f09ee071c65a74b85a0509bf58f045afeb166f48c
drh [Tue, 23 Apr 2019 22:00:39 +0000 (22:00 +0000)]
Make no atttempt to generate VDBE code for VACUUM after a syntax error.
FossilOrigin-Name:
930842470da27d72650033ef2c1df413e70f7c40eb46f91027b35f5ee156af38
dan [Tue, 23 Apr 2019 20:48:32 +0000 (20:48 +0000)]
Have ".recover" handle "\r" and "\n" in the same way as ".dump".
FossilOrigin-Name:
f95f0f02ab6c6cf45f25b613c7ab57f68249689d0a9eddf4c9518ddf0edad365
dan [Tue, 23 Apr 2019 18:03:02 +0000 (18:03 +0000)]
drh [Tue, 23 Apr 2019 15:30:58 +0000 (15:30 +0000)]
Changes to the --hexdb decoder option in the shell (and also in the TCL
test code) so that it works on systems where sscanf() does not recognize
"%hhx" as wanting to delivery results into a character-size variable.
FossilOrigin-Name:
4258e42d92b0113ba59f407197fc24f21734900e5b02952deed07818be3e3e5d
mistachkin [Tue, 23 Apr 2019 15:08:11 +0000 (15:08 +0000)]
Minor simplification of NULL value handling for STAT4.
FossilOrigin-Name:
69bad9257f8db6a2a761bdd298d972eb48d4f845ec11dedc802ba3bafb979915
drh [Tue, 23 Apr 2019 12:31:41 +0000 (12:31 +0000)]
drh [Tue, 23 Apr 2019 12:30:15 +0000 (12:30 +0000)]
Improvement on the previous check-in. Parse.rc is less reliable than
Parse.nErr for detecting SQLITE_TOOBIG errors.
FossilOrigin-Name:
8d478cfb92fdeb87591403fe1713b290fee309a38b71abee0002012935d1db98
dan [Mon, 22 Apr 2019 20:52:12 +0000 (20:52 +0000)]
Enhance the ".recover" command. Fix a problem with overflow pages in dbdata.c.
FossilOrigin-Name:
f193ca587f9e4f925f4f2343b0b07053bd6f93dd87fc6f8f41cf4479e90cf562
drh [Mon, 22 Apr 2019 20:05:54 +0000 (20:05 +0000)]
Early detection of SQLITE_TOOBIG when processing nested queries.
FossilOrigin-Name:
5d85d80ef8b216639244c6f4e6a2c0050af3cf9c3998f372bae4a19c0430f2fd
dan [Mon, 22 Apr 2019 11:47:40 +0000 (11:47 +0000)]
Fix an assert() that may be false for corrupt databases.
FossilOrigin-Name:
b2ce5ed175cb5029ac07392ae371c86eeec23c74624aad007dee51cf359f3eeb
dan [Sat, 20 Apr 2019 20:57:28 +0000 (20:57 +0000)]
Add the ".recovery" command to the shell tool. For recovering the maximum amount data from corrupt databases. Still needs work.
FossilOrigin-Name:
7461d2e120f2149315ddac2676d51d7445bcdb8e97543effd9c30603517ef9da
drh [Fri, 19 Apr 2019 23:05:56 +0000 (23:05 +0000)]
Mark a single branch as no longer reachable.
FossilOrigin-Name:
4f35b3b78a461b0617a5cd04f60d2ab277bcc7c994dae463851a3cb5d041a723
drh [Fri, 19 Apr 2019 22:01:10 +0000 (22:01 +0000)]
Increase the version number to 3.29 for the next development cycle.
FossilOrigin-Name:
6cf16703fd4a835c249c947006ae4a4bf81873c8ca1803945453c9845f882dc1
drh [Fri, 19 Apr 2019 17:26:19 +0000 (17:26 +0000)]
Improved optimization of the AND and OR operators.
FossilOrigin-Name:
0fbd154eb419b57b9c064c1f47346835d6324388b966b73f8a0122de065f08b1
dan [Fri, 19 Apr 2019 16:34:22 +0000 (16:34 +0000)]
Fix a problem with renaming a table that starts with "sqlite". Fix for ticket [
f00d7b65 ].
FossilOrigin-Name:
a2ead8aa4517b63cda7bf84464326e9cb5e228224caa603568c0e04ea44e6588
drh [Fri, 19 Apr 2019 16:21:51 +0000 (16:21 +0000)]
Use macros to determine if an expression is always true or always false.
FossilOrigin-Name:
6de980a09c3a7adf71f2c9a63a242673b5e1f246e8ee071b26844275f0dad0fc
drh [Fri, 19 Apr 2019 13:38:34 +0000 (13:38 +0000)]
Streamline the processing of the AND operator. Slightly smaller and faster.
FossilOrigin-Name:
7713996aa99ce6dd35b5a2db74dd26658fb8d9817169b2a7531cdef6edb41403
dan [Thu, 18 Apr 2019 21:14:11 +0000 (21:14 +0000)]
Add the sqlite_dbptr virtual table to the dbdata extension. For querying the links between b-tree pages.
FossilOrigin-Name:
3213a15f2133afbb0a4fec3b8f6e0eeca8c0befafd6658c41074e84f589d5d32
mistachkin [Thu, 18 Apr 2019 19:21:19 +0000 (19:21 +0000)]
Minor simplification of NULL value handling for STAT4.
FossilOrigin-Name:
5718a9d5fc3fdfc89db869501c81fda39b3ec5c7e11fa0038fc258e316f5d8a1
dan [Wed, 17 Apr 2019 21:17:22 +0000 (21:17 +0000)]
drh [Wed, 17 Apr 2019 21:12:05 +0000 (21:12 +0000)]
Small performance and size optimization in sqlite3WalFindFrame().
FossilOrigin-Name:
03f2e78899fad99b0a0951b3a408268276954d4cd785389ed9a0192c9217f6fe
drh [Wed, 17 Apr 2019 13:58:07 +0000 (13:58 +0000)]
Fix a typo in the CLI help output for the ".dump" command.
FossilOrigin-Name:
57638248de147efe8d663b3ae1389f590c7b2b7225ecfe295699d68c2893cd09
drh [Wed, 17 Apr 2019 13:23:28 +0000 (13:23 +0000)]
In the "pgidx" report from "showdb", also show the number of rows on each
database btree page.
FossilOrigin-Name:
2bda9dc41c07092ae37d0c6001c1271e0622bfff7151201fc2bb4c95422c087b
drh [Wed, 17 Apr 2019 12:29:45 +0000 (12:29 +0000)]
In the "pgidx" command of the showdb utility, try to identify orphaned pages
and show when pages have been zeroed out.
FossilOrigin-Name:
eed701ef919c70d891727250be6a1b626aeb894c562d221e319ae6d74fc71d3d
drh [Wed, 17 Apr 2019 12:07:08 +0000 (12:07 +0000)]
Small performance improvement on the variable-length integer decoder:
sqlite3GetVarint().
FossilOrigin-Name:
5df2bf62fcd4dfdaa195062dddbd5ce5420bc239b2649ac8f547e0db34e7f0bb
drh [Wed, 17 Apr 2019 11:34:44 +0000 (11:34 +0000)]
Faster and smaller implementation of sqlite3StrICmp().
FossilOrigin-Name:
7ac500fb5abfe1ad60f2ffdcc8fbe5ccc1c641bbeed53f00940e9ff78788e53d
drh [Tue, 16 Apr 2019 19:49:53 +0000 (19:49 +0000)]
dan [Tue, 16 Apr 2019 11:21:13 +0000 (11:21 +0000)]
Avoid a sanitizer error (pointer arithmatic overflow) in vdbesort.c.
FossilOrigin-Name:
af61a2fc45a0fa1277d7453779238b77de4c298a9f60714b7dc62ddca5874f80
dan [Tue, 16 Apr 2019 10:51:29 +0000 (10:51 +0000)]
Avoid a sanitizer error in test1.c. Have releasetest.tcl/wapptest.tcl create a file called "makecommand.sh" that can be used to rerun a test from the command line.
FossilOrigin-Name:
4de4480ffdea1e923c4b964692ccde92d713c8b6c056bb04bddf1ff55ee891ec
dan [Mon, 15 Apr 2019 19:17:50 +0000 (19:17 +0000)]
Fix a bug in test module test_fs.c causing a segfault on OpenBSD.
FossilOrigin-Name:
ee886600297c2a03d9d1d10db88d3d107b48e5d4de5e5d91b0ab16cc7c447ede
dan [Mon, 15 Apr 2019 15:41:33 +0000 (15:41 +0000)]
Fix a problem with the user-auth extension and deserializing in-memory databases.
FossilOrigin-Name:
09fa0b3c4adf7f81a777975762029ad43dbdc76b02dc32d2307e1c42465213c9
dan [Mon, 15 Apr 2019 13:59:08 +0000 (13:59 +0000)]
Fix a test script problem in fts5corrupt3.test.
FossilOrigin-Name:
734192d876e0489cb34e454aaa4a9c6858145791a49959b31dee2917a8e41a7d
drh [Mon, 15 Apr 2019 13:51:27 +0000 (13:51 +0000)]
Update tool/symbols.sh to ignore symbols from sessions and rebaser and to not
try to compile with ICU which is not available on all platforms.
FossilOrigin-Name:
0bab4ece6e81916d0f7255a8e553b8ca040cb8a96ab21e294212e232119f8ddc
drh [Sun, 14 Apr 2019 00:40:29 +0000 (00:40 +0000)]
drh [Sun, 14 Apr 2019 00:34:20 +0000 (00:34 +0000)]
Fix an obsolete comment and other minor issues from code inspection.
FossilOrigin-Name:
cd084427319394386844d6651479256a2fd57a412fccb79ba53172ce76693eb1
drh [Sat, 13 Apr 2019 16:50:21 +0000 (16:50 +0000)]
Fix a harmless compiler warning in test logic.
FossilOrigin-Name:
c3932e66040bf4c82727a26a976291fab219e8bc8a6d7579e19304538cc6df18
drh [Sat, 13 Apr 2019 16:43:58 +0000 (16:43 +0000)]
Fix the fts3varint.test script so that it works even on versions of TCL
for which Tcl_GetWideIntFromObj() does not work.
FossilOrigin-Name:
53f787ad298756027f630bfefade98b46f01539eb152f7e359b280335c77379e
dan [Sat, 13 Apr 2019 16:35:02 +0000 (16:35 +0000)]
Fix a test script problem in fts5corrupt3.test.
FossilOrigin-Name:
858f62274eb727109d0452ad2d80c0e0acab0f569494b1218c404501e103ed39
dan [Sat, 13 Apr 2019 15:07:00 +0000 (15:07 +0000)]
Partially revert the test file changes in [
4371a0c46e ]. It is no longer required following [
93ae382e97c23c90 ].
FossilOrigin-Name:
593a7e6e20a2f91fe3497edd7effad50ac876f7f03c9222e332dfeb43d26882e
drh [Sat, 13 Apr 2019 14:17:09 +0000 (14:17 +0000)]
Fix additional compiler warnings introduced by the previous check-in and found
by MSVC.
FossilOrigin-Name:
6fc0deffa4eed902fd13eefe6d2765f338f3dadc5b29f7cae5064e135417746b
drh [Sat, 13 Apr 2019 14:07:57 +0000 (14:07 +0000)]
drh [Sat, 13 Apr 2019 04:38:32 +0000 (04:38 +0000)]
Use the 64-bit memory allocator interfaces in extensions, whenever possible.
FossilOrigin-Name:
07ee06fd390bfebebc014b47583d489747b0423bb96c810bed5c605ce0e3be71