drh
762dffa54a
Size and performance optimization on sqlite3VdbeMemGrow().
...
FossilOrigin-Name: 4b3f7eacb862fbb5b75cf50b72fb60dfbd0acb5818e9f83383a6a63c8bbeacdf
2017-09-20 18:47:51 +00:00
drh
63d1632f1e
The BLOB returned by sqlite3VdbeMemFromBtree() does not need to be
...
zero-terminated.
FossilOrigin-Name: e0af9a9040768adf8bba42a8780adeb6304bc442afb1f35d239d019db1624f40
2017-09-20 18:07:50 +00:00
drh
97397a70e4
Small size and performance optimization in the bytecode engine.
...
FossilOrigin-Name: 3b3e32d4cd07a1d2d1708fffa47819345ae6b39205a9f548280d499c8f481d64
2017-09-20 17:49:12 +00:00
drh
84d4f1a328
Improved resolution of large integer values in "CAST(x AS NUMERIC)".
...
FossilOrigin-Name: 7f2bd4ff45fba29528c18cac6da983bd9b164303525d3965056f5b40f85dc83f
2017-09-20 10:47:10 +00:00
drh
9a243e69c2
Updates to the "lemon.html" document received from Andy Goth.
...
FossilOrigin-Name: 5b2002f3df1902aaa571a0efd01ab8bae7f4d37ac4819cc51595277f4de93433
2017-09-20 09:09:34 +00:00
drh
cf51255c44
Add the sqlite3_mmap_warm() function as an extension in the ext/misc/mmapwarm.c source file.
...
FossilOrigin-Name: 1b2de41453ac33de82f9cd6cbb92eee4fe184fb282c27e5efa5243c8cb239630
2017-09-18 18:17:01 +00:00
drh
262d55121f
Fix a typo in the MSVC makefile.
...
FossilOrigin-Name: 3235835babb49b4dd1acaabd1aa6cfb0b7fe19a914db1cb511e8cc872d3c0c39
2017-09-18 18:08:54 +00:00
dan
460f1fa55c
Add extension "mmapwarm.c". Provides function sqlite3_mmap_warm(), used to
...
"warm up" the memory mapping used by SQLite in mmap mode to access db file
content.
FossilOrigin-Name: d4a30b91f9aad93510baead8c04ee51b82c98763be5a224ed4873298214c963a
2017-09-18 16:28:56 +00:00
drh
63347e7df8
Minor simplification of error message generation during compound query
...
code generation.
FossilOrigin-Name: a944719314e0ac2f1954b65668815769eba3ab3e39a74666293b8dea52a184b2
2017-09-18 13:16:10 +00:00
drh
edea4a7cc9
The out-of-bounds read on recovery fix of check-in [378afa16381a222a] caused
...
problems for some corner-case error conditions. This alternative fix appears
to work better.
FossilOrigin-Name: 74f399d81fe250e09fde730ac0c17fe8b2b776ed32a3f576adaad56090f2b7fa
2017-09-18 09:40:46 +00:00
drh
2acd24d90c
Fix the CSV virtual table extension so that it works when the default character
...
is unsigned.
FossilOrigin-Name: 42f07775556758754e92e29a759d200d0d81d16eee83ab982b840db11292f834
2017-09-18 00:18:31 +00:00
drh
97258194a2
Do not make the assumption (as check-in [4da49a95c0f07] incorrectly did) that
...
the ExprList returned by sqlite3ExprListDup() would never be passed into
sqlite3ExprListAppend(). Include a new test case that shows this sometimes
does happen.
FossilOrigin-Name: 29227d00a9999f0f28a0b55ef70183799a667c3b9d81d2e5ac0ab1840bef98b1
2017-09-17 19:45:28 +00:00
drh
559656196b
Simplify the sqlite3VdbeGet() routine. Smaller, faster, and easier to maintain.
...
FossilOrigin-Name: 5dbb255a9377a6c2619fbac519f18caa4d8cb23257dfba0ffb9e36dd9dc16627
2017-09-16 20:58:41 +00:00
drh
2def2f7e0a
Remove an unnecessary parameter from selectInnerLoop().
...
FossilOrigin-Name: dd95887f82739d05585edfb70913fdaaab154de46c4d3113dd32d283767fb6fc
2017-09-15 17:40:34 +00:00
drh
3df6c3b1c5
Improved the header-comment documentation on sqlite3ExprCodeExprList().
...
No changes to code.
FossilOrigin-Name: 5dc3ecb5f67968545fb35ceed61ad625e069c4e744c5c3ebaea65e2fee347a5f
2017-09-15 15:38:01 +00:00
drh
a19543fe70
Optimization to the ExprList object to make it slightly smaller and faster.
...
FossilOrigin-Name: 4da49a95c0f07ed7790169e8833c3e2dacda504a3d997f567572020148abe30b
2017-09-15 15:17:48 +00:00
drh
154896e8d2
Fix a harmless comment typo. No changes to code.
...
FossilOrigin-Name: f7f0bf1da03f7fc1647ef172d9cb71a2ac46f136d4dee8e3a24e39313a981eb5
2017-09-15 14:36:13 +00:00
dan
3ed0f1c936
Add another test case for the problem fixed by the previous commit.
...
FossilOrigin-Name: 1a7e0b61c8a6bdd3ed105b9bc8a3732668fd7a897d2ed16c99445498e3c87089
2017-09-14 21:12:07 +00:00
dan
629ec14abc
Avoid an out-of-bounds read that can be caused by a specially constructed
...
journal file.
FossilOrigin-Name: cf5bf42cad6e019a38dc0a36ff1f53ada619eef5259e175c3554a16669e03202
2017-09-14 20:41:17 +00:00
drh
263a8b660f
Avoid an out-of-bounds read on a recovery attempt using a carefully crafted
...
database and rollback journal with mismatched page sizes. The test case for
this is in TH3.
FossilOrigin-Name: 378afa16381a222aafa6009dbbbc92473a69683537f1c265694678b0595a42c8
2017-09-14 02:36:27 +00:00
drh
bb6896226f
Test case update due to PRAGMA integrity_check enhancements in [8525c30c].
...
No changes to code.
FossilOrigin-Name: 43c6023bbf6b808ab4cfdbd1a63a516cbe2f1794c7787f8230632bae12e2ff59
2017-09-13 20:20:36 +00:00
drh
4c08735732
Disable FTS3 matchinfo() tests that assume a littleEndian platform when
...
running on bigEndian.
FossilOrigin-Name: 87ccdf9cbb9284553330683d4971be4f523ce922089aee6dffccfc18b3004263
2017-09-13 12:55:59 +00:00
drh
d33bcb8a3c
Improvements to PRAGMA integrity_check for better detection of malformed
...
records. Integrity_check now avoids returning SQLITE_CORRUPT on a corrupt
record. Also includes microoptimizations that I stumbled over while working
on integrity_check.
FossilOrigin-Name: 8525c30c1d6676e51b9d9c642450aae3722c129edafdbc39b8435fcfe09b1817
2017-09-13 00:33:36 +00:00
drh
74588ceb31
PRAGMA integrity_check returns SQLITE_OK even if it encounters corruption
...
while scanning indexes.
FossilOrigin-Name: 81f62e99f27dedf3dc10fa1593c4cd9fc158680867206aee853e503a0cc8df71
2017-09-13 00:13:05 +00:00
mistachkin
77187faf5a
Fix test script comment. No changes to code.
...
FossilOrigin-Name: a5a1949259a26c3330d7b1dcf38a8dd2e9b2c3af8d52f937e8537df138c9a55a
2017-09-13 00:01:26 +00:00
mistachkin
bf60baa985
Remove use of the rand_s() function (added by [139081bef9f63c3e]) as it appears to cause issues with some third-party DLLs.
...
FossilOrigin-Name: 3a2793aa65727cbbf8c4678d478cf8fb02350f19ff98201934a984727368d64d
2017-09-12 23:58:47 +00:00
drh
3ba18adde5
Fix an error in [b22cdd67] that can cause a negative infinity to be (rarely)
...
reported as a positive infinity.
FossilOrigin-Name: 9780b23ca375de6a542516fbc03eb39d5a393ca577718fda231d0d0ccf3b1c7e
2017-09-12 15:05:34 +00:00
drh
b9772e7fe8
Changes to (hopefully) get the build working with recent Intel compilers.
...
FossilOrigin-Name: b22cdd6734ecda2b2b9749668f353abc2660f192d6a40c5d266309d30e25695e
2017-09-12 13:27:43 +00:00
drh
3e1e14d818
Make sure all connections are closed in the pragma.test script.
...
Test change only - no changes to code.
FossilOrigin-Name: d7b7f038a2c5e81a58c1dd4b556096b58ce10c30eb74fd4b770445927fdb62f3
2017-09-12 00:24:45 +00:00
drh
68262d85ec
New test case for ticket [b899b6042f97f52d].
...
FossilOrigin-Name: 9d91ee5ee3f316a8804b02eb3c34b175b8f87b28c22df56f481af708c54e297c
2017-09-11 23:46:59 +00:00
drh
fa7b471c35
Add support for new operators in virtual tables: !=, IS, IS NOT, IS NULL, and NOTNULL.
...
FossilOrigin-Name: 3b7dbe9da90b7db336eed597a73a5364d8a691e57c1febd60908349f57a539ad
2017-09-11 20:54:54 +00:00
drh
303a69b5ad
Refactor names of constants and functions associated with the auxiliary
...
operators for xBestIndex.
FossilOrigin-Name: 0fb992af669e765760a94d2b6e2330b21a98f39f18445a94b0a2290560368d58
2017-09-11 19:47:37 +00:00
drh
33892c11a7
Minor adjustments to indentation and spacing for clarity. No changes to code.
...
FossilOrigin-Name: d3153abda6fd48015b007081734738b9cc4622e3564dc78a7a470a72dc2ca236
2017-09-11 18:37:44 +00:00
dan
09ccaf72d1
Add tests to check that affinities work with != operators on virtual table
...
column values. No changes to code.
FossilOrigin-Name: 8d24e0803d180448e637e33030a4ebf2c20eb1cab1074290c08f2eee0a23f66c
2017-09-11 08:53:54 +00:00
drh
9ecd7086c1
Simplifications to the PRAGMA integrity_check code generator.
...
FossilOrigin-Name: 99b9140c795c0c17c4e9d2547477c9dac056edfd443f2b2bd70edecd43c49ab7
2017-09-10 01:06:05 +00:00
drh
c2c6fd18dd
Simplification and performance improvement to sqlite3_reset().
...
FossilOrigin-Name: b6425d0170721d803a055a958f1823c9c4be925cd93ac47562ff723daf8ce2ed
2017-09-09 22:46:56 +00:00
drh
226cef4ef1
Improved detection of malformed records by PRAGMA integrity_check.
...
FossilOrigin-Name: 8fa923caa1535fc9ebed0214d211fc3d09a015d78afd01f288c215a7980d25f2
2017-09-09 20:38:49 +00:00
dan
d03024d814
Enhance the vtab interface to handle IS, !=, IS NOT, IS NULL and IS NOT NULL
...
constraints.
FossilOrigin-Name: 34c8e952616013deb6fffec701ac5989afac9bef1bf92458a2e4ba92c7ee924f
2017-09-09 19:41:12 +00:00
mistachkin
2158a0c7ac
Fix harmless compiler warnings seen with MSVC.
...
FossilOrigin-Name: faa22e29a5a05a16d46a428d838acedfa7d6fad6239495d59a6a1f4764e1b1b6
2017-09-09 00:51:36 +00:00
dan
7834551c1e
Have the header comment for sqlite3Checkpoint() mention TRUNCATE along with
...
the other three checkpoint types. No changes to code.
FossilOrigin-Name: e1e3ca7ea43a68b9b57dc38d8855f63b63a53feb8128b666a1becf87a2c70341
2017-09-08 17:48:00 +00:00
drh
05f1ba0ef8
Prevent a possible crash when trying to recover using a carefully corrupted \
...
and truncated rollback journal. (Test case in TH3)
FossilOrigin-Name: 02828d717e2d97b1f59e9279cea9c06eed4accd4e262606bd90d060449c5a1a3
2017-09-07 09:56:37 +00:00
dan
3841372350
Update "PRAGMA integrity_check" to detect inconsistencies between a single
...
record's header and body.
FossilOrigin-Name: 9e393a0edf1a578ddecc16a72fe3c54b75c2a650d507bcbc37c9724fbede1494
2017-09-05 20:16:19 +00:00
dan
1273f8dafe
Fix a comment describing the xRowid method of the "series" virtual table. No
...
code changes.
FossilOrigin-Name: 868cd1960015dc1bf003f911dcc417a94540d1948617ea1838a48b5cff59afda
2017-09-05 17:23:39 +00:00
dan
f21124f251
Add experimental API sqlite3rbu_temp_size_limit(). For limiting the amount of
...
temporary disk space RBU uses.
FossilOrigin-Name: 7fdd629830679db620d477df3c206bf84598cc935ccb51547c0d8444a186b63e
2017-09-05 16:24:38 +00:00
mistachkin
88a7973057
Use the SQLITE_CORRUPT_BKPT return code in a couple more places.
...
FossilOrigin-Name: 72d22c226bf4311345e8844fd9801ebddf77aceb80a038dce46608bf4ccae636
2017-09-04 19:31:54 +00:00
mistachkin
050dc5cff4
Add the 'mksourceid' executable to the clean target for MSVC.
...
FossilOrigin-Name: 77854694b2da989aa4dbbdbd3ccf61756c46cc368de9731f5fd1c3aa38d7cad5
2017-09-04 18:44:54 +00:00
drh
7e6f980bd4
Proposed fix for ticket [b899b6042f97f5]
...
FossilOrigin-Name: c7f9f47b239fdd99b555fb0a31eb82b22dbe6c821f1612d67a0d6a822288d9f7
2017-09-04 00:33:04 +00:00
drh
70739addc2
Fix recent test cases in test/indexepxr2.test so that they work even without
...
SQLITE_ENABLE_STAT4 and SQLITE_ENABLE_JSON1.
FossilOrigin-Name: 03f3cc03aaf233ad663d32a0200bfafee24a6c81f6a0ad14094ff014f880f00f
2017-09-04 00:19:29 +00:00
drh
3908fe90b1
Add the new sqlite3PagerUnrefPageOne() pager method to deal with the special
...
case of unreferencing page1.
FossilOrigin-Name: b2e2100cf766da1cb499aec0ca0a9969d7af5d93312ab8cf895fbf4a6ffb9b2f
2017-09-01 14:50:19 +00:00
drh
dfcdc663f2
Remove an obsolete optimization in pcache that due to more recent changes
...
was recently making the code a little slower.
FossilOrigin-Name: c4e7e175eecfd79015f4fae99618dfce6baf97c21bf3c909ea535d4e12dcaaad
2017-09-01 12:57:33 +00:00