]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Fri, 4 Mar 2011 15:43:57 +0000 (15:43 +0000)]
Handle EINTR errors from open().
FossilOrigin-Name:
a7d176b27cd73791d45eb3a31df78187ae10ce20
drh [Wed, 2 Mar 2011 19:06:42 +0000 (19:06 +0000)]
Add additional VFS methods to retrieve system call pointers and to get a
list of all changeable system calls.
FossilOrigin-Name:
38558363494e3a736dcb091dd859e76b7ccd78b0
drh [Wed, 2 Mar 2011 18:01:10 +0000 (18:01 +0000)]
Add more system calls to the set that can be overridden in os_unix.c.
Also merge in recent fixes from trunk.
FossilOrigin-Name:
80fac2a6e07221bb67613af84ab9dda3e18b5ceb
drh [Wed, 2 Mar 2011 17:54:32 +0000 (17:54 +0000)]
Fix bugs in [
7b6e30e6a7 ] that only show up on Mac.
FossilOrigin-Name:
ec55e8c6bb4f2419b3813aa2fd1a20d8f5016159
drh [Wed, 2 Mar 2011 15:44:35 +0000 (15:44 +0000)]
Make sure the rtreenode() testing and analysis routine in the RTREE extension
can handle 64-bit rowids. This fix is in response to a message on the
mailing list.
FossilOrigin-Name:
24602557fc3295fe2836d269175f12ec680ac011
drh [Wed, 2 Mar 2011 15:09:07 +0000 (15:09 +0000)]
Proof-of-concept prototype for the proposed xSetSystemCall extension method
on the VFS.
FossilOrigin-Name:
92b5a76abc53290e1bb87b6b55bc64bb1b331dfc
drh [Wed, 2 Mar 2011 02:08:13 +0000 (02:08 +0000)]
Log all error from close() in os_unix.c to sqlite3_log() but do not attempt to
report errors back up to the application. Update the unix error logging to
put the most important information earlier in the message.
FossilOrigin-Name:
7b6e30e6a712311d4ef275253b085b85e6e17116
drh [Fri, 25 Feb 2011 03:25:07 +0000 (03:25 +0000)]
Comment out some code in os_unix.c that only runs on MacOSX with
SQLITE_ENABLE_LOCKING_STYLE.
FossilOrigin-Name:
4e50b0362ab6604a4b6c9f4ad849ec1733d6ce1a
drh [Thu, 24 Feb 2011 21:10:00 +0000 (21:10 +0000)]
Fix a typo in a comment. No changes to code.
FossilOrigin-Name:
af4756184a255f5d8a5cd276bf9f2fc3b38d9169
drh [Wed, 23 Feb 2011 22:39:23 +0000 (22:39 +0000)]
Reserve a range of bits in the SQLITE_OPEN_xxxx bit vector for future
expansion.
FossilOrigin-Name:
9b9046546db5b060e37e7ba01c23bb7e9528d861
drh [Wed, 23 Feb 2011 14:00:12 +0000 (14:00 +0000)]
Fix a typo in the robust_flock() macro for systems without EINTR.
FossilOrigin-Name:
af9ba2a6d2c37915e799eec52bb827de46afd34d
drh [Wed, 23 Feb 2011 13:33:46 +0000 (13:33 +0000)]
Retry selected system calls on unix when they fail with EINTR.
FossilOrigin-Name:
b9d29ea385bafcf87c7dd07822ce9ec3d3892bd1
drh [Tue, 22 Feb 2011 03:34:56 +0000 (03:34 +0000)]
When a stale schema-cookie is seen, expire only the one statement that
encountered the bad cookie, not every statement on the database
connection. Ticket [
b72787b1a7cea1f ]
FossilOrigin-Name:
1bca0a7e198391202fd2bc1650c0a62028a9aaa5
dan [Mon, 21 Feb 2011 17:49:49 +0000 (17:49 +0000)]
Fix a problem with "EXPLAIN QUERY PLAN SELECT count(*) FROM tbl".
FossilOrigin-Name:
9f9f32882501ac9b6e60f81195a64bdbf6e4497b
dan [Mon, 21 Feb 2011 11:46:24 +0000 (11:46 +0000)]
Have os_unix.c call sqlite3_log() following errors in certain system calls.
FossilOrigin-Name:
01076528a43b61ae20ef6969b7d326de9b5313e4
drh [Sat, 19 Feb 2011 23:18:12 +0000 (23:18 +0000)]
An SQLITE_PROTOCOL error counts as a locking error for verification
purposes.
FossilOrigin-Name:
e87d499a4f8a456111c1f96ca6da31d0810fb7c8
drh [Sat, 19 Feb 2011 17:02:44 +0000 (17:02 +0000)]
Change a testcase() added by the previous checkin into an assert().
FossilOrigin-Name:
6f3dad32aa0e1e9ee374302c82bea9bd60d5854b
drh [Sat, 19 Feb 2011 16:51:45 +0000 (16:51 +0000)]
Add testcase macros to verify that all return values from
walTryBeginRead() are tested.
FossilOrigin-Name:
262b6fca0b7a251c02604c684a9f7e7a1434d630
drh [Sat, 19 Feb 2011 15:22:14 +0000 (15:22 +0000)]
Changes to make WAL more robust against SQLITE_PROTOCOL errors.
FossilOrigin-Name:
fd578a32f8e9f04957359e73f244a60f02afe08c
drh [Fri, 18 Feb 2011 17:23:23 +0000 (17:23 +0000)]
Fix the sqlite3ValueFromExpr() routine so that it returns SQLITE_NOMEM
on an OOM when trying to extract a NULL.
FossilOrigin-Name:
1061e94fa983a441b289753b873559163ab849e6
drh [Thu, 17 Feb 2011 15:58:20 +0000 (15:58 +0000)]
Remove a no-op code path from sqlite3ExprIsInteger(). Replace it with an
assert() that proves it always does nothing.
FossilOrigin-Name:
7af66d1bd53fd5973281646511e4e1d3b16601a3
drh [Thu, 17 Feb 2011 13:52:02 +0000 (13:52 +0000)]
Remove an assert() that was made redundant by the previous checkin.
FossilOrigin-Name:
21db719156deef9fb26aff27a01e324da255c825
drh [Thu, 17 Feb 2011 13:33:15 +0000 (13:33 +0000)]
Add an ALWAYS() around a always-true test in where.c.
FossilOrigin-Name:
8123283ee1a360586a1721a56b4db15718c25ee0
drh [Wed, 16 Feb 2011 23:32:24 +0000 (23:32 +0000)]
Fix harmless compiler warnings in the query planner.
FossilOrigin-Name:
31fc4ba66e76876b2e7b6b2b74c07f47571938ce
shaneh [Wed, 16 Feb 2011 01:23:50 +0000 (01:23 +0000)]
Add "do_not_use_codec" logic to some of the TCL based test cases that read/write directly to the DB.
FossilOrigin-Name:
edd27669f3d0ec8c878267fb5cae9b73fcdfd2b8
shaneh [Mon, 14 Feb 2011 03:49:40 +0000 (03:49 +0000)]
Skip some tests in capi3e.test when compiled with SQLITE_OMIT_UTF16.
FossilOrigin-Name:
b04304b9677b84c4bfca011bf7fa0488e7d56d08
drh [Fri, 11 Feb 2011 22:54:28 +0000 (22:54 +0000)]
Add a NEVER() around a test that is believed to always be false.
FossilOrigin-Name:
f7e2ea33d5b37e5b133d96e96a11d2842504355c
shaneh [Fri, 11 Feb 2011 20:52:20 +0000 (20:52 +0000)]
Skip flattening if subquery has LIMIT and outer query is DISTINCT. Fix for ticket
752e1646fc .
FossilOrigin-Name:
559739998833643f589fa76d8360080691f83c18
drh [Fri, 11 Feb 2011 06:59:02 +0000 (06:59 +0000)]
Fix a bug in the new WHERE-clause processing that tries to use an
index to resolve IS NOT NULL constraints when SQLITE_ENABLE_STAT2 is
defined. The bug could cause memory overruns and segfaults. The bug
was new to the code and has not appeared in an official release.
Found during structural testing.
FossilOrigin-Name:
a5c36b9f39ab9629b857ec9c550f3892c0d94fb4
drh [Fri, 11 Feb 2011 03:56:11 +0000 (03:56 +0000)]
Allow an index paired with a NOT NULL constraint to be used for sorting
under the condition that the index be treated as a non-unique index.
FossilOrigin-Name:
d78949fc93077e1aa7f05cf9f7e947727939cc96
drh [Fri, 11 Feb 2011 02:43:14 +0000 (02:43 +0000)]
Disable unused NULL tests when SQLITE_ENABLE_STAT2 is not in use.
FossilOrigin-Name:
5ecd11788269e78dc26639b2503a10b7e25b2483
shaneh [Thu, 10 Feb 2011 21:08:58 +0000 (21:08 +0000)]
Add .testctrl option to CLI.
FossilOrigin-Name:
f85afa0ecc7b31d32659ae53e70771cd42abda38
drh [Thu, 10 Feb 2011 18:56:09 +0000 (18:56 +0000)]
Split the documentation for sqlite3_wal_checkpoint_v2() and its constants
onto separate pages. No changes to code.
FossilOrigin-Name:
0ef8ffd12fce47c3c89e851e5116e2777ea9f435
drh [Thu, 10 Feb 2011 17:46:14 +0000 (17:46 +0000)]
Prevent a segfault when automatic indices try to use a column with an
unknown collating function. Ticket [
77aa3b1e6592582e38605d36 ]. This
check-in also removes some stray \r characters unrelated to the problem.
FossilOrigin-Name:
f01030a0df4f94f886ab209ee8766b095da28c1e
drh [Thu, 10 Feb 2011 00:08:47 +0000 (00:08 +0000)]
Refactor the cost function in the query planner. Give extra cost (thus
reduce likelihood of selection) to full table scans.
FossilOrigin-Name:
878da276ebf643b716ddd650d4d0ca3595fe5bf2
shaneh [Wed, 9 Feb 2011 19:55:20 +0000 (19:55 +0000)]
Make sure code *compiles* with each OMIT and ENABLE option. Mostly changes to test modules.
FossilOrigin-Name:
7cc515edc9cade2bc6c74699b3e4153bf2b74ebb
dan [Wed, 9 Feb 2011 18:19:20 +0000 (18:19 +0000)]
Do not report corruption if the the db size header field is greater than the file size on disk unless the two change-counter header fields are identical. Fix for ticket [
89b8c9ac54 ].
FossilOrigin-Name:
00c4596f0b270120848ab8d06dcdec7813a9a315
shaneh [Wed, 9 Feb 2011 15:25:17 +0000 (15:25 +0000)]
Update Makefile.in for fts3_aux changes.
FossilOrigin-Name:
38b7cb33c55c1498618721b3a11a35559b755fb2
drh [Wed, 9 Feb 2011 03:04:27 +0000 (03:04 +0000)]
Use macros to define the relative costs of search and seek operations when
computing costs in the query planner. Current constants seems wrong and
need to be fixed, but doing so will alter test results. Need more
experimentation to determine accurate relative costs.
FossilOrigin-Name:
5f2ec44b22062ee9d31e20806fcec0101675aced
drh [Wed, 9 Feb 2011 03:03:16 +0000 (03:03 +0000)]
Simplifications to the sqlite3_wal_checkpoint_v2() logic.
FossilOrigin-Name:
652b8835c58fc9d474c9837fc966d8857bec4a91
drh [Mon, 7 Feb 2011 23:56:01 +0000 (23:56 +0000)]
Cleanup to the OP_Checkpoint opcode.
FossilOrigin-Name:
f611a5a879b7dec1ed1d8bf32413c8a6b81c3172
dan [Mon, 7 Feb 2011 16:24:39 +0000 (16:24 +0000)]
Fix some test cases in walfault.test. Extend one test case to restore code coverage. Add wal5.test to the "coverage-wal" permutation.
FossilOrigin-Name:
f83b07ace340c9dd3e0cbe3cd3c106db003b0bd4
dan [Mon, 7 Feb 2011 15:12:12 +0000 (15:12 +0000)]
Change blocking-checkpoint tests so that they run once using "PRAGMA wal_checkpoint" and once using calls to sqlite3_wal_checkpoint_v2(). Also fix edge cases surrounding the output variables set by wal_checkpoint_v2().
FossilOrigin-Name:
5a4b6652cf3780ffed6fe0fe669e8090b0b71e81
dan [Sat, 5 Feb 2011 15:47:12 +0000 (15:47 +0000)]
Ensure fts4aux can handle a table name in single or double quotes as a constructor argument.
FossilOrigin-Name:
929d62e496bb36a3ee0e19ec4609329d79aaeddc
dan [Sat, 5 Feb 2011 14:37:57 +0000 (14:37 +0000)]
Add test cases for fts4aux. Fix a bug affecting fts3 tables with multiple columns.
FossilOrigin-Name:
dc511e60a65232a7087e12ff40b63506cf37a634
dan [Fri, 4 Feb 2011 18:56:25 +0000 (18:56 +0000)]
Change fts4aux to (additionally) report on term frequency in individual columns of an fts table.
FossilOrigin-Name:
3996f92a9aca9ac2628be003eca83c8f954c71de
drh [Fri, 4 Feb 2011 14:28:34 +0000 (14:28 +0000)]
Significant changes have occurred since the 3.7.5 release so go ahead and
increase the version number to 3.7.6.
FossilOrigin-Name:
999c915a4a075a4d1736ae786cbe7d1587809fee
drh [Fri, 4 Feb 2011 06:36:44 +0000 (06:36 +0000)]
Merge the stat2 query planner enhancements into the trunk.
FossilOrigin-Name:
499edcbc8ab70fcf35431d4e672c68dbcb6c5aad
drh [Fri, 4 Feb 2011 05:47:51 +0000 (05:47 +0000)]
If a deferred foreign key constraint fails on a statement that is not part
of a larger transation, make sure that the statement fully ends so that
subsequent invocations of the same statement will not pass the constraint
because they think the transaction is not closed. This is a merge of
the deferred-fk-quirk branch together with a test case.
FossilOrigin-Name:
2f94d4623f9aae1b5bc7041bd85f4e3a7462c60e
drh [Fri, 4 Feb 2011 00:51:16 +0000 (00:51 +0000)]
Fix the ATTACH command so that the filename argument can be any expression
and so that if authorizer callback gets a NULL pointer for the filename
if the filename argument is anything other than a string literal.
Ticket [
9013e13dba5b58c7 ]
FossilOrigin-Name:
e64e1453a9c204d93de1af92dc0b3ca26762b024
dan [Thu, 3 Feb 2011 12:48:17 +0000 (12:48 +0000)]
Extra tests for fts4 compress/uncompress hooks. Fix some minor problems with the same.
FossilOrigin-Name:
80225abe79b0a7723b922ec129954438af95855a
dan [Thu, 3 Feb 2011 10:56:00 +0000 (10:56 +0000)]
Extra tests for the fts4aux module.
FossilOrigin-Name:
cfc475690d85ea7e3547424289d9837f46ab7ef4
drh [Thu, 3 Feb 2011 01:26:32 +0000 (01:26 +0000)]
Fix a superlock test case to conform to the new wal_checkpoint returns.
FossilOrigin-Name:
8bf2d51b6a50da84cf6b0d2bd78e633d6810160b
dan [Wed, 2 Feb 2011 19:17:39 +0000 (19:17 +0000)]
Fix minor problems with the output of "PRAGMA wal_checkpoint". In both code and tests.
FossilOrigin-Name:
aef61036b31963e4c3ff4e8acf8c1734dc9394af
dan [Wed, 2 Feb 2011 17:30:43 +0000 (17:30 +0000)]
Optimize handling of equality and range constraints on the "term" column of an fts4aux table.
FossilOrigin-Name:
386701ded2bcee5309ec9f285d94e6eb1eade193
drh [Wed, 2 Feb 2011 16:34:08 +0000 (16:34 +0000)]
Merge in the blocking-checkpoint enhancement, including the new
sqlite3_wal_checkpoint_v2() interface and the
PRAGMA wal_checkpoint(full) statement.
FossilOrigin-Name:
bac7342c368a7c4f5f2878e08d9581dcbf57dd58
dan [Wed, 2 Feb 2011 04:40:07 +0000 (04:40 +0000)]
Merge fts4aux branch.
FossilOrigin-Name:
c6d9f7d8c48e1ff405e1c1d98a166974fc829f58
dan [Wed, 2 Feb 2011 04:26:46 +0000 (04:26 +0000)]
Add missing file fts3_aux.c.
FossilOrigin-Name:
0147d9739f318a02721d3ae0e7be339a19231f60
dan [Tue, 1 Feb 2011 18:59:34 +0000 (18:59 +0000)]
Remove extra instances of the text "checked out." from sqlite.h.in. Also add new file fts3_aux.c to mksqlite3c.tcl.
FossilOrigin-Name:
9897da22c5b51611597350efbe8d5dcaf39d748b
dan [Tue, 1 Feb 2011 18:00:43 +0000 (18:00 +0000)]
Fix a problem causing builds with SQLITE_OMIT_WAL defined to fail.
FossilOrigin-Name:
b9b48dd8ddceec009b5a22a3699e1524542c004a
dan [Tue, 1 Feb 2011 17:55:48 +0000 (17:55 +0000)]
Fix a case in fts4 where a corrupt %_stat table could lead to a crash.
FossilOrigin-Name:
4ade96ce974244fc34bb97713d3cba10e3d33056
dan [Tue, 1 Feb 2011 16:34:32 +0000 (16:34 +0000)]
Add virtual table module "fts4aux", used to inspect the full-text index of an fts4 table directly. Also add the "compress" and "uncompress" fts4 options.
FossilOrigin-Name:
b010ddcc52889160af2183a33c5f483bb0ae91b9
drh [Fri, 28 Jan 2011 17:03:50 +0000 (17:03 +0000)]
SQLite version 3.7.5 release candidate 2
FossilOrigin-Name:
ed759d5a9edb3bba5f48f243df47be29e3fe8cd7
dan [Fri, 28 Jan 2011 16:45:42 +0000 (16:45 +0000)]
Add test script pagerfault3.test. No changes to code or existing tests.
FossilOrigin-Name:
682fe41efd3578e8c9abc7138b61f361c3adbe95
drh [Fri, 28 Jan 2011 15:46:14 +0000 (15:46 +0000)]
Change pager_truncate() to a different method for extending files while
also ensuring that writes are page-size and page-aligned.
FossilOrigin-Name:
874bc8844f6494cdbf700bd884dee67d40f11fc0
dan [Fri, 28 Jan 2011 15:07:55 +0000 (15:07 +0000)]
When extending a database file, do so by writing one or more page-size chunks of data to the file, instead of just a single byte to the end.
FossilOrigin-Name:
58577135a81d3f19667b1de6167d2e3f1b74cd53
drh [Fri, 28 Jan 2011 03:13:58 +0000 (03:13 +0000)]
Reactivate the analyze5.test script.
FossilOrigin-Name:
a2a9f6401c927f6259cda3ba35219cabef24e84d
drh [Fri, 28 Jan 2011 01:57:41 +0000 (01:57 +0000)]
Change the weighting of binary searches on tables to 1/10th the cost of a
search on an index. Change the assumed reduction in search space from a
indexed range constraint from 1/3rd to 1/4th. Do not let the estimated
number of rows drop below 1.
FossilOrigin-Name:
4847c6cb71423248b186ab7842b97c83e2f5fefd
drh [Thu, 27 Jan 2011 14:35:01 +0000 (14:35 +0000)]
SQLite version 3.7.5 release candidate 1
FossilOrigin-Name:
35ac78f55159705af140b949ee33852aedd62816
drh [Wed, 26 Jan 2011 19:46:22 +0000 (19:46 +0000)]
Update all built-in VFSes to return SQLITE_OK for the
SQLITE_FCNTL_SYNC_OMITTED file-control operation. Also change the
xFileControl methods to return SQLITE_NOTFOUND for unrecognized
operation codes.
FossilOrigin-Name:
6f2c72a0f6579db3f40c079436ca40e3e52bd6d9
dan [Wed, 26 Jan 2011 15:23:22 +0000 (15:23 +0000)]
Update test file mutex1.test to account for [
e3b500fb5d ].
FossilOrigin-Name:
c86e46f4fd8f485fa1d34c70e17ea3aa1b334ce3
drh [Wed, 26 Jan 2011 13:28:06 +0000 (13:28 +0000)]
More mutexes around another sqlite3StatusAdd() call.
FossilOrigin-Name:
e3b500fb5d93d98e6e1ddf6d494a841274d1b68d
drh [Wed, 26 Jan 2011 13:24:40 +0000 (13:24 +0000)]
Add a mutex around an sqlite3StatusAdd() call to prevent the pagecount
overflow measurements from getting off in multithreaded applications.
FossilOrigin-Name:
3d8b298dc24fe13a3f390da41f79b8613a6f25a7
dan [Wed, 26 Jan 2011 07:25:32 +0000 (07:25 +0000)]
Update mutex1.test so that it works with the memsubsys1 permutation (pagecache memory). Change a few instances of SQLITE_MUTEX_STATIC_LRU2 in comments and test code to STATIC_PMEM.
FossilOrigin-Name:
456bd5c63b41bae8e389df81e318b830aa314000
dan [Wed, 26 Jan 2011 06:13:14 +0000 (06:13 +0000)]
Changes to exclusive2.test to make it more deterministic.
FossilOrigin-Name:
84b0c2bc7125623be2ee526b5ca75e1b72debb93
drh [Wed, 26 Jan 2011 00:07:03 +0000 (00:07 +0000)]
Rename the PCache1.mxPinned field to n90pct (since it is 90% of nMax) in order
to distinguish it from PGroup.mxPinned. Fix the computation of n90pct so that
it does not overflow adversely on excessively large cache sizes.
FossilOrigin-Name:
c85202baac49b22a4be36b9733d44f01d83edb28
drh [Tue, 25 Jan 2011 18:30:51 +0000 (18:30 +0000)]
Fix new compiler warnings in pcache1.c that were introduced by the recent
performance enhancement patches of [
e14649301138b684 ].
FossilOrigin-Name:
c17703ec1e604934f8bd5b1f66f34b19d17a6d1f
dan [Tue, 25 Jan 2011 18:19:24 +0000 (18:19 +0000)]
Add a missing call to sqlite3PagerSync() removed by [
ce552d975 ] to the backup code.
FossilOrigin-Name:
1965b85318c1fac62fae9691059021b298c17dde
drh [Tue, 25 Jan 2011 16:48:56 +0000 (16:48 +0000)]
Make sure the return code from doing an xSync is correctly initialized
so that a valid return code is produced regardless of the path taken through
the logic.
FossilOrigin-Name:
f12b5d76854c2f294ac60afe38a6dac37eb5b174
drh [Tue, 25 Jan 2011 16:20:16 +0000 (16:20 +0000)]
Change the name of SQLITE_FCNTL_SYNC to SQLITE_FCNTL_SYNC_OMITTED and only
send it when PRAGMA synchronous=OFF. Add better documentation to explain
what that file-control opcode is used for.
FossilOrigin-Name:
64914980855dbbf19512642836ca962a507b3ddb
dan [Tue, 25 Jan 2011 13:43:35 +0000 (13:43 +0000)]
Fix a couple of typos in comments. No changes to actual code.
FossilOrigin-Name:
9167fdb3560b1567a0bdc9a1906a87ec98e161f1
dan [Tue, 25 Jan 2011 11:33:01 +0000 (11:33 +0000)]
Fix a broken assert() in pager.c.
FossilOrigin-Name:
13108ce13c281f31aa60b403567710ae3d925797
dan [Tue, 25 Jan 2011 09:54:53 +0000 (09:54 +0000)]
Fix a problem in memsubsys1.test. Modifications to test code only.
FossilOrigin-Name:
7ef3f7cba768ef0c4782a6c80424833b4df6a059
drh [Tue, 25 Jan 2011 04:34:51 +0000 (04:34 +0000)]
Shave a few cycles so that performance is better than 3.7.4 in speed tests.
FossilOrigin-Name:
e14649301138b6840e24a4bbd2cf5205c0f72409
drh [Mon, 24 Jan 2011 20:18:05 +0000 (20:18 +0000)]
Modify the test_quote.c demonstration shim so that it works when
SQLITE_THREADSAFE=0 is defined.
FossilOrigin-Name:
b70bcccaf5597c8a59cccb64fb997523f7b8fe4f
drh [Mon, 24 Jan 2011 19:45:07 +0000 (19:45 +0000)]
Fix a typo in the documentation for sqlite3_snprintf(). No changes to code.
FossilOrigin-Name:
8d1065411aadf189880606c48ab63dd2a56b9793
drh [Mon, 24 Jan 2011 19:14:06 +0000 (19:14 +0000)]
Fix a harmless compiler warning (a shadowed local variable) in analyze.c.
FossilOrigin-Name:
a1ad7fb38bb38909ca2fddee31c7a8001f10686f
drh [Mon, 24 Jan 2011 17:46:35 +0000 (17:46 +0000)]
Restructuring and generalizing analyze5.test. The whole script is
currently disabled and will need to be reenabled prior to merging with trunk.
FossilOrigin-Name:
31fcc7067bd76da4bf19232811b90cf8b76eed74
dan [Mon, 24 Jan 2011 16:00:58 +0000 (16:00 +0000)]
Ensure that if a deferred FK constraint is violated by a statement that creates its own implicit transaction, the statement is not an "active-write" after sqlite3_step() returns.
FossilOrigin-Name:
8063197ef141c0c62ba710efdd2b3421fbee4e5d
drh [Mon, 24 Jan 2011 15:11:23 +0000 (15:11 +0000)]
Change the cost estimator in the query planner to take into account the
logN rowid lookup cost when going from an index to a table.
FossilOrigin-Name:
b442525b0ba642bb8d57b87b7b9e373b6046454a
dan [Sat, 22 Jan 2011 13:32:29 +0000 (13:32 +0000)]
Modify the trace callback mechanism so that SQL commands executed from within virtual table or user function callbacks are passed to the trace callback without parameter expansion and enclosed in SQL comments.
FossilOrigin-Name:
a764915b87564fa91ee68e9b1f41394ce0f1fc7e
drh [Sat, 22 Jan 2011 00:10:45 +0000 (00:10 +0000)]
Add the ability to use indices for constraints of the form "x IS NOT NULL"
when sqlite_stat2 is available and most entries for column x are NULL.
FossilOrigin-Name:
5d5bddd290e71a7b03bcc23ff29881c23233cbff
dan [Fri, 21 Jan 2011 18:25:29 +0000 (18:25 +0000)]
Change sqlite3StrAccumAppend() to use realloc instead of malloc.
FossilOrigin-Name:
380f61df0754ceec6b3f6a758d04e951cce8c3d9
drh [Fri, 21 Jan 2011 18:18:13 +0000 (18:18 +0000)]
Adjustments to the result row estimator for the IN operator so that it gives
the same estimates as the equivalent OR operator. Test cases for the same.
FossilOrigin-Name:
c82cb9c028b3ba5463ae50c30196dbf157a7a305
drh [Fri, 21 Jan 2011 16:27:18 +0000 (16:27 +0000)]
Make use of histogram data to make better estimates for the number of rows
that will be returned from "x IN (v1,v2,v3,...)" constraints.
FossilOrigin-Name:
fd3977a27ae68e694df12a4713e55515c1e87c5d
dan [Fri, 21 Jan 2011 15:52:02 +0000 (15:52 +0000)]
Add options to test command [do_faultsim_test] to support testing VFS implementations.
FossilOrigin-Name:
503ad889da675b3dd83da7338e2902e42f69acac
drh [Fri, 21 Jan 2011 14:37:04 +0000 (14:37 +0000)]
Add the ability to use indices when a range contraint is bounded on
the lower end by NULL.
FossilOrigin-Name:
f73a167b434fadcbbd15e3891c4b7f4f87f6363c
drh [Thu, 20 Jan 2011 20:36:13 +0000 (20:36 +0000)]
Update ANALYZE test cases to check out the use of histograms for equality
constraints.
FossilOrigin-Name:
c7b59afaf0c0bf85dbaf0a122cc8d65fca93680f
drh [Thu, 20 Jan 2011 16:52:09 +0000 (16:52 +0000)]
Use histogram data to improve the row-count estimates on equality constraints.
FossilOrigin-Name:
6bfc5c69eb22938972bbf4e60179952dc215f770
drh [Thu, 20 Jan 2011 02:56:37 +0000 (02:56 +0000)]
The first of a planned series of enhancements to the query planner that
enable it to make better use of sqlite_stat2 histograms when the table
has many repeated values.
FossilOrigin-Name:
2cd374cd23fa2fd38f49090d6eeb9b1e521d51d5