]>
git.ipfire.org Git - thirdparty/sqlite.git/log
dan [Mon, 30 Mar 2015 09:58:38 +0000 (09:58 +0000)]
Remove some unnecessary code from vdbesort.c.
FossilOrigin-Name:
b58191e91736b1d978db4127f22867dfe2302f7c
dan [Sat, 28 Mar 2015 19:56:41 +0000 (19:56 +0000)]
Further optimizations for sorting records that begin with integer or text values.
FossilOrigin-Name:
24fe9f25d64ee516633fed1ae7ebc21554aa69ca
mistachkin [Fri, 27 Mar 2015 18:22:01 +0000 (18:22 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
45acf6a85150839d591316418dad59ae20ce3aa4
mistachkin [Fri, 27 Mar 2015 18:20:25 +0000 (18:20 +0000)]
Enhancements to OSTRACE usage in the Win32 VFS.
FossilOrigin-Name:
ab5800291e1908b5b51d912feeacf748dc9be14b
drh [Fri, 27 Mar 2015 02:27:20 +0000 (02:27 +0000)]
Fix the ".testctrl imposter" command in the command-line shell to be
consistent in error reporting and results with the other .testctrl
commands.
FossilOrigin-Name:
0ec08ba8a0fa188146b071a489908332693ba59a
mistachkin [Fri, 27 Mar 2015 00:21:52 +0000 (00:21 +0000)]
Using MSVC, get the sqlite3IoTrace variable working with the USE_STDCALL and/or DYNAMIC_SHELL options.
FossilOrigin-Name:
fe976c9130f6eecfa0a10347ee3f800f32051b89
mistachkin [Fri, 27 Mar 2015 00:19:31 +0000 (00:19 +0000)]
In the MSVC Makefile, make the DYNAMIC_SHELL option work without USE_STDCALL.
FossilOrigin-Name:
25b46a9c7e03a84bee2ffddc6d7fd6ae280e9d7b
mistachkin [Thu, 26 Mar 2015 23:36:35 +0000 (23:36 +0000)]
When syncing a memory mapped file on Windows, flush the mapped view as well.
FossilOrigin-Name:
df204049b9ec8dd3e43ed7dc251eaecedc05af4b
mistachkin [Thu, 26 Mar 2015 18:24:26 +0000 (18:24 +0000)]
Revise Win32 locking test to account for recent log message changes.
FossilOrigin-Name:
1bc76339e8542770bff7829a3dd346680950c0a5
drh [Thu, 26 Mar 2015 17:04:23 +0000 (17:04 +0000)]
Avoid leaving the malloc subsystem in a partially initialized state if
the low-level initialization callback fails.
FossilOrigin-Name:
3e872011ff5e27738c282f46d2b5803d94fe4b76
drh [Thu, 26 Mar 2015 15:27:32 +0000 (15:27 +0000)]
Provide source code line numbers for errors in the Windows VFS generated
by the winLogIoerr() routine.
FossilOrigin-Name:
b5da0d93cd1a3c0917399af3775a32327b883c8e
drh [Thu, 26 Mar 2015 14:29:51 +0000 (14:29 +0000)]
Fix a harmless compiler warning in FTS3.
FossilOrigin-Name:
1688f60c08cc9270948402d98a2333382aa32681
dan [Thu, 26 Mar 2015 11:55:03 +0000 (11:55 +0000)]
Optimize cases where all the sorter is sorting a set of records that all begin with integer values, or that all begin with text values to be compared using BINARY.
FossilOrigin-Name:
ce5ad17c25cf2f8274ce304c51e4421faae0b32b
drh [Wed, 25 Mar 2015 18:29:10 +0000 (18:29 +0000)]
Change an unreachable branch into an assert().
FossilOrigin-Name:
fb076b28c36975ff2e41440f22fe5de115c195da
drh [Wed, 25 Mar 2015 17:35:01 +0000 (17:35 +0000)]
Fix the saveCursorPosition() routine in btree.c so that it works
correctly for a eState=CURSOR_SKIPNEXT cursor.
FossilOrigin-Name:
37866b4d483296ab9b7fcb9f5486695d4c2b8ddd
dan [Wed, 25 Mar 2015 15:23:00 +0000 (15:23 +0000)]
Extend [
52e73eec ] so that the IS optimization may be used on primary keys with more than 3 columns.
FossilOrigin-Name:
4e8796af7d40d6ca423e07c68877035e4aa2485c
drh [Wed, 25 Mar 2015 13:06:54 +0000 (13:06 +0000)]
Reactivate an older assert() (adding an "|| CORRUPT_DB" term) and add a
new assert() in btree.c.
FossilOrigin-Name:
1e96520ac1d12ca83f019a60482efa0a074f2f94
drh [Wed, 25 Mar 2015 12:05:49 +0000 (12:05 +0000)]
Add two new assert()s to the sqlite3BtreeDataSize() method.
FossilOrigin-Name:
42d1793d6516e285a8925bbfd96b3d3375603d15
mistachkin [Tue, 24 Mar 2015 22:00:26 +0000 (22:00 +0000)]
Add SQLITE_STDCALL and SQLITE_CDECL macros on public function definitions.
FossilOrigin-Name:
cae3239aa58b4f7016fc9dcac3966fe6ef833879
drh [Tue, 24 Mar 2015 21:54:42 +0000 (21:54 +0000)]
Further simplifications to the amalgamation builder.
FossilOrigin-Name:
e826cd7db6b3ab010533d81a759794c2470343d2
mistachkin [Tue, 24 Mar 2015 21:52:12 +0000 (21:52 +0000)]
Update the 'mksqlite3c-noext' tool as well.
FossilOrigin-Name:
a532256688c3a7a6385e041ec73913842e2c3ab3
mistachkin [Tue, 24 Mar 2015 21:34:53 +0000 (21:34 +0000)]
Fix a couple comment typos in a tool script. No changes to code.
FossilOrigin-Name:
83421af67063825981f6051eb415944d90e9b2f6
mistachkin [Tue, 24 Mar 2015 21:27:27 +0000 (21:27 +0000)]
Add SQLITE_STDCALL and SQLITE_CDECL macros on public function definitions.
FossilOrigin-Name:
242f09d4d1c92ee9058857a5e780442f4b7bad55
drh [Tue, 24 Mar 2015 19:02:13 +0000 (19:02 +0000)]
Merge all recent trunk enhancements into the sessions branch.
FossilOrigin-Name:
54aaa6f29ad1bf84148c2403eed77e8311f68d66
dan [Tue, 24 Mar 2015 18:21:41 +0000 (18:21 +0000)]
Merge the latest trunk changes into this branch.
FossilOrigin-Name:
9d9b6c883b4f7d69c615cedfb59a2385aac47b74
drh [Tue, 24 Mar 2015 18:19:39 +0000 (18:19 +0000)]
Suppress a compiler warning that was appearing with SQLITE_THREADSAFE=0.
FossilOrigin-Name:
436314b5728c9413f9ac2d837e1c19364f31be72
dan [Tue, 24 Mar 2015 18:03:29 +0000 (18:03 +0000)]
When the OTA module updates or deletes a row, save only those fields that are part of an index or primary key to the ota update database.
FossilOrigin-Name:
6326fd3249bee267da0172f8afd1e7b3f71521b9
drh [Tue, 24 Mar 2015 16:43:34 +0000 (16:43 +0000)]
Prevent a virtual table from being destroyed while it is in use.
Also: replace Vdbe.inVtabMethod with sqlite3.nVDestroy. Simplify the
EXPLAIN output for P4.pVtab to only show the sqlite3_vtab pointer.
FossilOrigin-Name:
cbeb9a1aed8ce3fb569a7717ad03c7c058b68de6
dan [Tue, 24 Mar 2015 14:57:21 +0000 (14:57 +0000)]
Add tests to check that attempting to DROP a virtual table while it is use does not cause problems.
FossilOrigin-Name:
5ee625b1980f9fab6294d308349dfd9ba960b60b
drh [Tue, 24 Mar 2015 14:57:02 +0000 (14:57 +0000)]
Simplify the EXPLAIN output of virtual table P4 parameters to only show the
pointer to the sqlite3_vtab object and omit the sqlite3_module object.
FossilOrigin-Name:
85610bbbc60cb4a6ec856123447fdb2ba948e52f
drh [Tue, 24 Mar 2015 14:05:50 +0000 (14:05 +0000)]
More defenses against virtual table being deleted out from under a running
statement.
FossilOrigin-Name:
116c99823022c017946b6088878a2d46759deb6e
drh [Tue, 24 Mar 2015 13:32:53 +0000 (13:32 +0000)]
Prevent a virtual table from being destroyed while it is in use.
FossilOrigin-Name:
fba674c083286dabb37fed9357b67593b56ed3a5
drh [Tue, 24 Mar 2015 12:51:52 +0000 (12:51 +0000)]
Replace the Vdbe.inVtabMethod field with the sqlite3.nVDestroy counter.
FossilOrigin-Name:
9faefb96272967e731e83ef516a8c1e1b876391b
drh [Mon, 23 Mar 2015 21:32:50 +0000 (21:32 +0000)]
Disable loadable extensions in the command-line shell on VxWorks user-space.
FossilOrigin-Name:
0ee2d38deb35aefc55395e86984a9a773caf6218
drh [Mon, 23 Mar 2015 19:55:21 +0000 (19:55 +0000)]
Track total memory usage using a 64-bit integer on 64-bit systems. Add
the sqlite3_status64() interface. Make the sqlite3_status() and
sqlite3_status64() interfaces atomic using mutexes and verify correct
mutex operation using assert() statements.
FossilOrigin-Name:
6fc4e79a2350295a15ac464593ad39d904953041
drh [Mon, 23 Mar 2015 19:16:30 +0000 (19:16 +0000)]
Fix a non-C89 variable declaration that causes problems for MSVC.
FossilOrigin-Name:
3de085eab2fbe491f2242b340851e8af8f61ad13
drh [Mon, 23 Mar 2015 19:03:51 +0000 (19:03 +0000)]
Fix datetype size asserts in btree.c.
FossilOrigin-Name:
ff4812d0e8e6322ca8b6992925fd4ef4aee463e6
drh [Mon, 23 Mar 2015 18:52:56 +0000 (18:52 +0000)]
Add the SQLITE_PTRSIZE macro. Use it to help sqlite3_status() run faster
on 32-bit systems.
FossilOrigin-Name:
c742bd6047bc6d0319a5a8c31d97f6b9229507f6
drh [Mon, 23 Mar 2015 17:25:18 +0000 (17:25 +0000)]
Add the sqlite3_status64() interface. Make the new interface and the legacy
sqlite3_status() both atomic and threadsafe. Check threadsafety using
assert()s.
FossilOrigin-Name:
1ce8e8fa4b866aafa12b1da0eb4d02321af9293e
dan [Mon, 23 Mar 2015 17:10:51 +0000 (17:10 +0000)]
Fix a broken assert() in the ota module.
FossilOrigin-Name:
858de8a5e7925bd96d7b9c0f00bc16358cf3b295
drh [Sun, 22 Mar 2015 10:23:17 +0000 (10:23 +0000)]
Fix a potential NULL pointer dereference following a syntax error.
FossilOrigin-Name:
8d27e3e16a9be79fe227e833f4770ebe09a9d90b
mistachkin [Sat, 21 Mar 2015 23:38:59 +0000 (23:38 +0000)]
Fix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both enabled.
FossilOrigin-Name:
9513dbd4860c8dd391f831982d09aff227d16f5c
mistachkin [Sat, 21 Mar 2015 22:23:46 +0000 (22:23 +0000)]
Add more comments to the MSVC batch build tool.
FossilOrigin-Name:
03522da37821958c647d49bf8189a5affa3f6720
mistachkin [Sat, 21 Mar 2015 22:13:47 +0000 (22:13 +0000)]
Increase the debugging level for the debug configuration in the MSVC batch build tool.
FossilOrigin-Name:
041484ff91fd4615368ccb2257ab50acc2cd4fea
drh [Sat, 21 Mar 2015 20:59:43 +0000 (20:59 +0000)]
Do not invoke a C preprocessor macro with an empty argument, as (reportedly)
some versions of GCC are unable to deal with that.
FossilOrigin-Name:
de9da317d4df3efefe9a1a48f954af8a19e7d098
drh [Sat, 21 Mar 2015 20:50:58 +0000 (20:50 +0000)]
Add a missing "int" on a constant declaration.
FossilOrigin-Name:
235157de5113ac4c750e36a498e2a1f1cf461751
dan [Sat, 21 Mar 2015 19:35:09 +0000 (19:35 +0000)]
Avoid a segfault if NULL is passed as the first argument to SQL scalar function fts3_tokenizer().
FossilOrigin-Name:
6d0989695b486275824c14d5f88357267c1e8104
dan [Sat, 21 Mar 2015 16:40:24 +0000 (16:40 +0000)]
Change walblock.test to block an external process for 10 seconds, not 5. 5 seconds is not long enough to tell the difference between a blocking lock and a series of retries.
FossilOrigin-Name:
717335fcdb15430ed977cbc98d30345b71728b66
drh [Sat, 21 Mar 2015 16:36:03 +0000 (16:36 +0000)]
Fix the blocking WAL lock so that it works and so that it compiles on a Mac.
FossilOrigin-Name:
67d69d21de32816894be53e4b446656d4174eb0d
dan [Sat, 21 Mar 2015 15:45:24 +0000 (15:45 +0000)]
Merge trunk changes with this branch.
FossilOrigin-Name:
142743918fd5a6d79fa10c44398360c3684a255a
dan [Sat, 21 Mar 2015 15:37:19 +0000 (15:37 +0000)]
When scanning the full-text index as part of the fts5 integrity-check, also run a point query for every term and verify that these results are consistent with those found by the linear scan.
FossilOrigin-Name:
ce972f6aab90f6929d018696f1ab3c2649eca802
dan [Sat, 21 Mar 2015 12:25:23 +0000 (12:25 +0000)]
Remove an unreachable branch from the OP_VCreate opcode (merge accidental fork in trunk).
FossilOrigin-Name:
2fbfec62fc03d42ee240dfefaa0aeb59a3f04d88
dan [Sat, 21 Mar 2015 12:22:51 +0000 (12:22 +0000)]
Avoid an integer overflow in fts3 causing gcc 4.7.1 with -O2 to behave counter-intuitively (perhaps because the behaviour is undefined). Add an "ifcapable trace" to a test in shell4.test.
FossilOrigin-Name:
e3e234649616f20610abce9ae9da1c572d3a4377
drh [Sat, 21 Mar 2015 12:22:16 +0000 (12:22 +0000)]
Remove an unreachable branch from the OP_VCreate opcode.
FossilOrigin-Name:
5fca41a3811766b48f5f23d5d49cc4e6e79fa867
dan [Sat, 21 Mar 2015 10:53:01 +0000 (10:53 +0000)]
Add a missing "ifcapable fts3" to a test case in vtab2.test.
FossilOrigin-Name:
d845b0f69093178517d66e1fc5060e8f62c681c7
drh [Sat, 21 Mar 2015 03:18:22 +0000 (03:18 +0000)]
Correctly detect the error of having a "*" wildcard on a SELECT without
a FROM clause on the left-hand side of a recursive CTE.
FossilOrigin-Name:
b11d1793a06a44931edcbf12a615b49794d53a62
drh [Sat, 21 Mar 2015 02:58:20 +0000 (02:58 +0000)]
If a column is both UNIQUE and a PRIMARY KEY, make sure the PRIMARY KEY
designation takes precedence.
FossilOrigin-Name:
d871a7921722bb0fef6d51e1110a9703ddff78c8
mistachkin [Sat, 21 Mar 2015 02:34:17 +0000 (02:34 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
441a00e70d8c0a3d09b7f283a65a2918791ad1bb
mistachkin [Sat, 21 Mar 2015 02:25:29 +0000 (02:25 +0000)]
Remove superfluous define from the MSVC makefile.
FossilOrigin-Name:
880d2513a0fb084fae82080401b108fb13e61478
mistachkin [Sat, 21 Mar 2015 02:22:37 +0000 (02:22 +0000)]
Improvements to the MSVC build. Fix harmless compiler warnings. Enable use of 'stdcall'.
FossilOrigin-Name:
737630b87314283b2c38790ace9d25ec05f81f4a
drh [Fri, 20 Mar 2015 16:54:29 +0000 (16:54 +0000)]
Provide the BTREE_SEEK_EQ hint to the b-tree layer.
FossilOrigin-Name:
3c367004dab0a1a24d955482c97b0f2d84129ab6
drh [Fri, 20 Mar 2015 16:34:49 +0000 (16:34 +0000)]
Fix to get SQLITE_SMALL_STACK working correctly again after the previous change.
FossilOrigin-Name:
78df0ce13d4f35226f2571bd7de78484ccbee4bb
drh [Fri, 20 Mar 2015 14:57:50 +0000 (14:57 +0000)]
Provide the BTREE_SEEK_EQ hint to the b-tree layer.
FossilOrigin-Name:
e750830f1e61160c0c67e35b13e50b35a95b50e1
dan [Fri, 20 Mar 2015 08:43:59 +0000 (08:43 +0000)]
Fix a problem causing collation sequence names to be dequoted multiple times under some circumstances.
FossilOrigin-Name:
eddc05e7bb31fae74daa86e0504a3478b99fa0f2
drh [Thu, 19 Mar 2015 20:09:16 +0000 (20:09 +0000)]
If a virtual table is created with a malformed UTF8 name in a UTF16 database,
make sure that does not cause problems.
FossilOrigin-Name:
b74cb0a92bba69f8ea705adf4695d03ea4470984
dan [Thu, 19 Mar 2015 19:59:30 +0000 (19:59 +0000)]
Fix a crash that can occur following an OOM condition within a CREATE VIRTUAL TABLE statement on a utf-16 database.
FossilOrigin-Name:
9453e7da046c55715631f10f018e97a336197969
dan [Thu, 19 Mar 2015 18:56:17 +0000 (18:56 +0000)]
Fix a problem with creating virtual table with names specified using malformed utf-8 within utf-16 databases.
FossilOrigin-Name:
9969cff2d0553c9bfa88a437e1bb0cc4200d49d7
dan [Thu, 19 Mar 2015 16:25:42 +0000 (16:25 +0000)]
Fix an FTS3/4 problem with handling empty tokenizer declarations (e.g. "CREATE VIRTUAL TABLE t(tokenize=);").
FossilOrigin-Name:
26d2def8a53094356008861636d66f9ae8f2448a
dan [Thu, 19 Mar 2015 15:52:07 +0000 (15:52 +0000)]
Silently ignore any attempt to add a prefix index for prefixes zero bytes in size to an fts3/4 table. Or any prefix index size so large that it overflows a 32-bit signed integer.
FossilOrigin-Name:
ad4b19d2ac0889a23fe3b0fd844286efc10cdd82
dan [Thu, 19 Mar 2015 15:04:23 +0000 (15:04 +0000)]
Add an assert() to check that the database mutex is held in sqlite3BtreeLeave().
FossilOrigin-Name:
31f54d7b0798e70da6a60b8ea3c5d9e35dce164c
mistachkin [Thu, 19 Mar 2015 14:48:38 +0000 (14:48 +0000)]
Fix typo in shell error message.
FossilOrigin-Name:
775a02d597549567a0634483525664643064b3fd
mistachkin [Thu, 19 Mar 2015 14:46:52 +0000 (14:46 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
3e363f405655e2e39588029d797496a952cca11d
drh [Thu, 19 Mar 2015 13:30:41 +0000 (13:30 +0000)]
Fix a bug in error handling in the ".trace" command of the command-line shell.
FossilOrigin-Name:
6a48b5d794e891fdd167547c76835d677eb5e31d
dan [Wed, 18 Mar 2015 20:03:27 +0000 (20:03 +0000)]
Allow whereShortCut() to use the PRIMARY KEY index of a WITHOUT ROWID table to optimize a vector of "IS" operators in a WHERE clause.
FossilOrigin-Name:
52e73eeca063bb30092ce600068bf487641399a0
dan [Wed, 18 Mar 2015 19:04:40 +0000 (19:04 +0000)]
Clarify that OTA is unable to update or delete rows with NULL values in primary key fields.
FossilOrigin-Name:
2e7c1e0a0d128d9bac119692b2505b5ed0abe87a
drh [Wed, 18 Mar 2015 16:00:44 +0000 (16:00 +0000)]
Add another sqlite3FaultSim() to the multi-threaded sorter logic to
improve testability.
FossilOrigin-Name:
49ea2cded4a76596f85419c820cdaf4a1751d7ac
drh [Tue, 17 Mar 2015 20:39:11 +0000 (20:39 +0000)]
Clarify the documentation on sqlite3_errcode(). No changes to code.
FossilOrigin-Name:
2c0e0d87fb418d684fba1c83d9fd8e4e96588c54
drh [Tue, 17 Mar 2015 18:54:10 +0000 (18:54 +0000)]
Merge all recent trunk enhancements into the sessions branch.
FossilOrigin-Name:
1d1c57c3566d86cd44f146688b620131b3b57e52
drh [Tue, 17 Mar 2015 17:08:35 +0000 (17:08 +0000)]
Also merge the WAL blocking lock tests that were somehow missed on the
previous check-in.
FossilOrigin-Name:
7214dab7443d35c105904dd69635c1f8b45b2fc8
drh [Tue, 17 Mar 2015 16:59:57 +0000 (16:59 +0000)]
Transient locks in WAL mode can now block in order to resolve priority
inversions.
FossilOrigin-Name:
ec2f46de531ec8ef91981b19b48ab64db7727264
dan [Tue, 17 Mar 2015 16:01:29 +0000 (16:01 +0000)]
Add a test for the change on this branch.
FossilOrigin-Name:
e22dde187eb0b389d6d93e2e39a26fd0f4e6196e
dan [Mon, 16 Mar 2015 20:40:00 +0000 (20:40 +0000)]
Make SQLite slightly more likely to use an auto-index within a sub-query.
FossilOrigin-Name:
ab832336f4a28193c4d2b61e833564822a7b86a8
mistachkin [Mon, 16 Mar 2015 18:08:56 +0000 (18:08 +0000)]
Fix typo of test prefix in the new WHERE test file.
FossilOrigin-Name:
34779c528f1817d6ec34216b58fb4277956b5167
drh [Mon, 16 Mar 2015 17:48:12 +0000 (17:48 +0000)]
When the WHERE clause contains two OR-connected terms with identical
operands but different operators, try to combine them into a single term.
Example: (X=A OR X>A) becomes (X>=A).
FossilOrigin-Name:
8bdda827a3d268009297a0216e3d94bf0eceeb2e
drh [Mon, 16 Mar 2015 17:07:09 +0000 (17:07 +0000)]
Modify the fts3query.test script so that it works even when testfixture is
built using a version of TCL that is unable to sort the
integer -
9223372036854775808
FossilOrigin-Name:
f61fd24b4d3b686911ea578f77612309099f0cc6
drh [Mon, 16 Mar 2015 16:44:55 +0000 (16:44 +0000)]
When deleting the master journal to commit a multi-database transaction, do
not sync the directory if PRAGMA synchronous=OFF for all participating
database files.
FossilOrigin-Name:
018d7671402a0f8103d1306641655b69f9fa235d
dan [Mon, 16 Mar 2015 16:28:43 +0000 (16:28 +0000)]
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples. This generates more accurate estimates.
FossilOrigin-Name:
3e0590dee0e68cc1599858757c650a7378026170
drh [Mon, 16 Mar 2015 13:48:23 +0000 (13:48 +0000)]
Use #ifdef to omit code that is only used for STAT3 and STAT4.
FossilOrigin-Name:
f2c9c5b57b7739daafc44e8ec36d4a2beacd5f17
drh [Mon, 16 Mar 2015 13:12:34 +0000 (13:12 +0000)]
Improved comments. No code changes.
FossilOrigin-Name:
23f71a26386ff2aff9800fe96cec1dc9c805b5b6
drh [Mon, 16 Mar 2015 12:13:31 +0000 (12:13 +0000)]
When a WHERE clause contains disjuncts with the same operands, try to
combine them into a single operator. Example: (x=A OR x>A) becomes
(x>=A).
FossilOrigin-Name:
7a3097689d17625fb0dfc4372712f375f3bdb9a1
dan [Mon, 16 Mar 2015 09:21:30 +0000 (09:21 +0000)]
Another test case for the planner change on this branch.
FossilOrigin-Name:
f2207a0691ed361061719f4dacf021a677a9d892
dan [Sat, 14 Mar 2015 18:59:58 +0000 (18:59 +0000)]
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples.
FossilOrigin-Name:
e1caf93c9ad0ee15d42030af95619f212d3fcf9d
dan [Fri, 13 Mar 2015 15:44:36 +0000 (15:44 +0000)]
Add tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental" handle corrupt databases correctly.
FossilOrigin-Name:
1c2166cb2a387a0856f41b399c3648bf8c5fce73
dan [Fri, 13 Mar 2015 08:31:54 +0000 (08:31 +0000)]
drh [Fri, 13 Mar 2015 00:11:09 +0000 (00:11 +0000)]
Remove debugging logic accidently included in the previous check-in.
FossilOrigin-Name:
2887fb38ffc28712c34028cd38db2b7993d864eb
drh [Thu, 12 Mar 2015 23:48:27 +0000 (23:48 +0000)]
Fix the "now" option for date-time functions for cases when STAT4 is disabled.
FossilOrigin-Name:
3ac1f6a3cf1a8fd3ab1ca96b2564c13c4b8d2234
drh [Thu, 12 Mar 2015 21:22:08 +0000 (21:22 +0000)]
When STAT4 is enabled, allow probes of the STAT4 table using the value
of constant functions computed at compile-time.
FossilOrigin-Name:
0f250957cd82be63e44eb99be6cc10760f4fdfc4
drh [Thu, 12 Mar 2015 21:02:36 +0000 (21:02 +0000)]
Always disallow functions as the DEFAULT of a column. Add assert()s and
FossilOrigin-Name:
a991bb1a9eb54bdbd45bd623e8b304bdfeb481a3
dan [Thu, 12 Mar 2015 19:12:30 +0000 (19:12 +0000)]
Disable multiplexing of master-journal files in the test_multiplex.c module.
FossilOrigin-Name:
b8684df395b5585a9428417c2bfd076515560f19
drh [Thu, 12 Mar 2015 18:38:51 +0000 (18:38 +0000)]
If an error occurs in the compile-time evaluation of an application-defined
function, then propagate back out the exact error code, not just the
generic SQLITE_ERROR.
FossilOrigin-Name:
93f42586cc9db63c5a4599ce06630e60204a5bc9