drh
ad879ffdb5
Clean up the implementation of constant function factorization.
...
FossilOrigin-Name: 2ab997e47998d261bd6190bbce5c09f3fbd4cfd3
2017-01-04 04:10:02 +00:00
drh
1e9b53f9bc
Attempt to factor out constant functions from the interior of table scans,
...
since functions can often be expensive to compute.
FossilOrigin-Name: 62e9270a8057d758621da33adb27fad14225f95d
2017-01-04 01:07:24 +00:00
drh
a3a40211bd
Use compiler intrinsic functions for signed integer math when overflow
...
detection is needed.
FossilOrigin-Name: d3ac32a6e7f1823450feb3d1089802542090d164
2017-01-03 21:57:11 +00:00
drh
7433ae5df6
Back out the use of __sync_fetch_and_sub() as it does not appear to work.
...
FossilOrigin-Name: 4c2efd4239bf07eb4b92d4af54edd68ee6312670
2017-01-03 21:50:49 +00:00
drh
5c6b944d16
Fix a typo in a comment.
...
FossilOrigin-Name: ae087123db8e7d47b25a8d0a98cfd62e85e42fc6
2017-01-03 21:03:37 +00:00
drh
b94f2eccc1
Use the CLANG_VERSION macro to control clang-specific features.
...
FossilOrigin-Name: f8ebeec211483503e135104ef977b3c384a1d789
2017-01-03 20:01:24 +00:00
drh
eea46aeafc
Use the GCC built-in __sync_fetch_and_sub() to make the sqlite3StatusDown()
...
routine atomic, and thereby avoid some mutexing.
FossilOrigin-Name: f69ce75b3d94331fdbfa2f3a27d61db24c285d2b
2017-01-03 18:05:04 +00:00
drh
4a47761e0d
Make use of the __buildin_OP_overflow() functions from GCC when doing
...
64-bit signed integer arithmetic.
FossilOrigin-Name: 82cbebb8ee4484f13e5f48d305e20e73063f273e
2017-01-03 17:33:43 +00:00
drh
5c41d00f42
Add the experimental affinity() SQL function when SQLITE_DEBUG is defined.
...
FossilOrigin-Name: bed0eaa5f50112e64fc97a2afdc9d56cf8f5026a
2017-01-03 14:45:35 +00:00
drh
5424075137
Put the affinity() function implementation inside of #ifdef SQLITE_DEBUG.
...
FossilOrigin-Name: f778f58ae4ea3e16f51b94591a2c1e563dcb0cde
2017-01-03 14:39:30 +00:00
drh
01e64a1704
Merge all the latest changes from trunk.
...
FossilOrigin-Name: c27cd8a8127b81d3176f6a5b9915c9b3c69574fb
2017-01-03 14:30:28 +00:00
drh
2710b14c45
Defer size checking on row-value assignments for when the RHS is a SELECT
...
until after the "*" wildcards have been expanded.
FossilOrigin-Name: 36944be6be5c42096f5da84187ff203af26b08ae
2017-01-03 13:45:22 +00:00
drh
b67343d075
Fix a typo on a comment. No code changes.
...
FossilOrigin-Name: abc27b6023e28a717bfa15648ddc152bda9c7b96
2017-01-03 11:59:54 +00:00
dan
f299edb0b0
Add test cases for the fix in [f12ed3ce]. No problems discovered.
...
FossilOrigin-Name: 548532fdcf84d565c17aed79a6b595e8b62a3ab4
2017-01-03 08:11:24 +00:00
drh
966e291160
Improvements to the way vector assignment size checking is done. Size checks
...
when the RHS is a SELECT are deferred until after "*" wildcards are expanded.
FossilOrigin-Name: 696219b11049930cdbc38f574820f4bbaf8621bb
2017-01-03 02:58:01 +00:00
drh
49cd39b48c
Fix the row-values in UPDATE statements within TRIGGER problem identified
...
by ticket [8c9458e7].
FossilOrigin-Name: f12ed3ce0bfb2d94c9baad23fdcbd816c72439a1
2017-01-03 01:24:10 +00:00
drh
b163748e88
Improved assert()s on the sqlite3ExprListDup() logic for TK_SELECT_COLUMN.
...
FossilOrigin-Name: 14da99d41f7968bf816203b4ae11c1f0d1ee0b5d
2017-01-03 00:27:16 +00:00
drh
90a7eae84c
Test cases for the row-value UPDATE TRIGGER fix.
...
FossilOrigin-Name: b9b964373c89a491649f366ad7d70ae4d69b891d
2017-01-02 23:43:03 +00:00
drh
3f50bb84f5
Put an ALWAYS() on an unreachable branch in the sqlite3ExprListDup() routine.
...
FossilOrigin-Name: 2caaaab5e07f6b76d66fbe4e93a4b956937427d8
2017-01-02 23:18:35 +00:00
drh
47073f62bf
Proposed fix for the row-value TRIGGER UPDATE problem described in
...
ticket [8c9458e7].
FossilOrigin-Name: 61a442ea2ceec2cbd327dae0ff5214e1f3c69ec0
2017-01-02 22:36:32 +00:00
drh
63a49ce0b2
Increase the version number to 3.17.0 for the next release cycle.
...
FossilOrigin-Name: 16415b5aad445c9e4e849018b48538d74eec8944
2017-01-02 19:10:14 +00:00
drh
56d65cd7b9
Provide the SQLITE_DEFAULT_LOOKASIDE compile-time option and make it's default
...
value be 1200,100 (raised from 512,125 in the latest release).
FossilOrigin-Name: 584da48f9e818f25134e0a62fb7e84f07019511f
2017-01-02 19:02:20 +00:00
drh
83a4f47d57
Change SQLITE_DEFAULT_PCACHE_INITSZ from 100 to 20, which is experimentally
...
determined to be slightly faster.
FossilOrigin-Name: 12d9493cb29307aec65ceccc68e802e4d0f18112
2017-01-02 18:40:03 +00:00
drh
38eef32172
Avoid unnecessary calls to sqlite3BtreeEnterAll() and sqlite3BtreeLeaveAll()
...
when no btree is using shared-cache.
FossilOrigin-Name: cfb3158204628eb2fd170090a7f212df0e4ce6c9
2017-01-02 18:19:29 +00:00
drh
197231b160
Add the --all option to the wordcount test program.
...
Fix the speedtest1 test program so that it builds on MSVC and so that
the --lookaside 0 0 option works.
FossilOrigin-Name: cb338f367e5408861bd7c0fbf74cebdbd8e3c515
2017-01-02 12:20:15 +00:00
drh
e772bc7d30
Version 3.16.0
...
FossilOrigin-Name: 04ac0b75b1716541b2b97704f4809cb7ef19cccf
2017-01-02 11:57:58 +00:00
drh
245ce62ea2
Detect row-value comparison size mismatches even when the size of one
...
operand is obscured by an unexpanded subquery.
FossilOrigin-Name: 2c4d167ccd4be591487f404de9ee629fd484c8bf
2017-01-01 12:44:07 +00:00
drh
e2b45d1789
Add the --help and --all options to the wordcount test utility.
...
FossilOrigin-Name: 18baeadfc89f6252e38dbc22904b11c5b56347ee
2016-12-31 21:55:23 +00:00
drh
aa430bfb00
In speedtest1.c, make the "--lookaside 0 0" option completely disable lookaside.
...
FossilOrigin-Name: 52b99bcbf18f34196ec29f829c6af539e0d05524
2016-12-31 18:37:50 +00:00
drh
eb25713e91
Minor #include change to speedtest1.c so that it will compile under MSVC.
...
FossilOrigin-Name: 8c28fde004678c85524770969eb001719b109179
2016-12-31 14:33:05 +00:00
dan
3043b53222
Fix a crash that could occur following an OOM in the group_concat() function
...
if the second argument is an SQLITE_BLOB value.
FossilOrigin-Name: 14d855d2b2b5b3485e0673d11405db7266b34c6d
2016-12-30 17:40:14 +00:00
drh
1d081ab39e
Strengthen the defense against OOM in the instr() SQL function.
...
FossilOrigin-Name: a0971e713682a73d8c7c20511db256c20d2f6388
2016-12-30 15:16:20 +00:00
drh
5f4ade0473
Add a test to ensure that the app-defined pcache xFetch() method is never
...
passed a key of zero.
FossilOrigin-Name: 0bdbe49c6d392c4c86a6c01219c9d91d150dea7d
2016-12-30 14:25:42 +00:00
dan
895decf6b5
Avoid passing NULL pointers to memcmp() or memcpy(), even when the
...
"number-of-bytes" argument is passed 0.
FossilOrigin-Name: 56ff72ab44288296efc99a608f7edc4346366a50
2016-12-30 14:15:56 +00:00
drh
d0d7e13511
Fix a harmless compiler warning in fuzzcheck.c
...
FossilOrigin-Name: 2842bc60538369f888c7df8365858c910322277d
2016-12-30 12:10:48 +00:00
drh
9c4dc22926
Disable the pagerAcquireMapPage() routine if memory-mapped I/O is disabled.
...
This fixes a harmless compiler warning on OpenBSD.
FossilOrigin-Name: 3e25ba6e42fba239795a465b8510386a361ee5be
2016-12-30 12:06:22 +00:00
drh
fb4e3a3bbb
Encode a 64-bit integer literal in date.c as a constant expression so that
...
it works on older compilers. Also fix a harmless compiler warning in vdbe.c.
FossilOrigin-Name: f57952bac652901e1bd48b68301941efbcf29dc4
2016-12-30 00:09:14 +00:00
drh
96ada59cbb
Fix harmless compiler warnings in the command-line shell and in Lemon.
...
FossilOrigin-Name: afcdc4a60e357d171156e0de705bf7ad1b37daab
2016-12-29 19:48:46 +00:00
drh
cae20d5cf1
In kvtest.c, use stat() instead of fseek()/ftell() to determine the size of
...
a BLOB to be read directly from disk. This makes the pile-of-files database
more competative against SQLite.
FossilOrigin-Name: a7dca29f03e037fe71cc600db97f8058e3bd28a4
2016-12-29 17:25:06 +00:00
drh
03d0c20bbd
Add the kvtest.c test program used to show that it is many times faster to
...
read thumbnail and similar BLOBs out of an SQLite database than it is to read
them as separate files from the filesystem.
FossilOrigin-Name: 8074d59cf177cb91ee371e2660f2c59ce540b7e2
2016-12-29 16:58:01 +00:00
drh
2f917e05d7
Add more detail to the header command to further explain how to compile and
...
use the kvtest.c utility.
FossilOrigin-Name: 55d29839c9fafe9e6a694f5790151d1f22396b01
2016-12-29 16:49:22 +00:00
drh
d7b9b97c3b
Fix kvtest.c so that it compiles using MSVC.
...
FossilOrigin-Name: e2bbeae7e77cde531885ca492494a02e5322154d
2016-12-29 16:18:35 +00:00
drh
6739c692ba
In kvtest.c: do not show the --cache-size setting on fopen() runs.
...
Show progress for the (potentially slow) "export" command.
FossilOrigin-Name: b0f58d2470e08b9c217afd19fcfde3e6d1007d1d
2016-12-29 15:26:50 +00:00
drh
61c565f63b
Improvements to the kvtest.c utility. Added the --cache-size option.
...
Additional reporting of version and settings at the end of "./kvtest run".
FossilOrigin-Name: f6fcac6ae8b3bffee6bf994eef2064affd301a95
2016-12-29 14:44:43 +00:00
drh
cac028ba19
Add the kvtest.c test program for measuring key/value read performance under
...
various scenarios.
FossilOrigin-Name: 489e0787c1ea47963174387e8ade6295ceff568e
2016-12-29 03:57:43 +00:00
drh
402124de5c
Do not allow the nockpt.test module to run under the inmemory_journal
...
permutation.
FossilOrigin-Name: a6af06f164b1f65779e2171ec4946119c66f9be8
2016-12-27 15:59:15 +00:00
drh
575242f66f
Allow sqlite3_interrupt() to be invoked on a database connection that is in
...
the process of being closed even if SQLITE_ENABLE_API_ARMOR is defined.
FossilOrigin-Name: 7854bee260996087bdb7f8729ba8cfb4f467f93f
2016-12-27 13:33:52 +00:00
drh
5ad74a761d
Adjust a corruption test case to accommodate the sqlite3BtreeInsert()
...
optimization of check-in [0b86fbca66].
FossilOrigin-Name: 4cb0945f13f2040c8b67936b950da48fc951d55d
2016-12-27 12:45:41 +00:00
drh
218c66e0e3
Disable new test modules nockpt.test and interrupt2.test for incompatible
...
permutations. Add a CORRUPT_DB term to an assert() in vdbe.c.
FossilOrigin-Name: a54e619e6f0266932c8873f9ac826fd042a0602f
2016-12-27 12:35:36 +00:00
drh
1aa346950e
Avoid a potential (harmless) signed integer overflow in memory usage
...
accounting when calling sqlite3_realloc() to reduce the size of an
allocation.
FossilOrigin-Name: 2d71cbdf6bc24f0269027c70b39ea7f342436bdb
2016-12-27 12:08:36 +00:00