]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Wed, 28 Aug 2013 13:46:09 +0000 (13:46 +0000)]
Increase the version number to 3.8.1 due to the addition of STAT4 support.
FossilOrigin-Name:
41c089e2a21f52b3d6d850eccba60be17010c9fe
drh [Wed, 28 Aug 2013 13:33:40 +0000 (13:33 +0000)]
Fix an off-by-one error that causes a quoted empty string at the end of
a CRNL-terminated line of CSV input to be misread by the shell.
FossilOrigin-Name:
b5617e4fdadc4cded93c985008e90982dd48bc3b
drh [Wed, 28 Aug 2013 11:57:52 +0000 (11:57 +0000)]
Add a test case for empty quoted field in CSV import in the shell.
FossilOrigin-Name:
3df56e849164811117f9ac8ee2aee1eee188bb96
drh [Wed, 28 Aug 2013 11:43:49 +0000 (11:43 +0000)]
Label a certain branch as NEVER() only for non-STAT3/4 builds.
FossilOrigin-Name:
b5ccf6e995ac2fe010f49d46d40b487ddbd28e5a
drh [Tue, 27 Aug 2013 23:15:44 +0000 (23:15 +0000)]
Adjust ANALYZE for improved test coverage. Use the SQLITE_ENABLE_STAT3_OR_STAT4
macro (created in sqliteInt.h) to conditionally include code, instead of
a boolean specifying both macros separately.
FossilOrigin-Name:
67a9a392edd62ef5a5a1ad3010b20a39b285793d
drh [Tue, 27 Aug 2013 20:16:48 +0000 (20:16 +0000)]
Reduce the amount of code run and memory used for ANALYZE in the common case
where neither STAT3 and STAT4 are enabled.
FossilOrigin-Name:
9d1424c91a21ed740aca53e437b8f7c1f0823c03
dan [Tue, 27 Aug 2013 15:41:09 +0000 (15:41 +0000)]
Update sqlite3.pc.in to use @PACKAGE_VERSION@ instead of @RELEASE@.
FossilOrigin-Name:
2460dfd8825d251e622e866e8dc1c0bf7fe7ec9f
drh [Tue, 27 Aug 2013 14:14:14 +0000 (14:14 +0000)]
In the ANALYZE command implementation make statInit() a 2-value function
since the 3rd parameter was always the same constant.
FossilOrigin-Name:
959bb5acdc3b4e2b481e3c38f20867131bfc9dbc
drh [Mon, 26 Aug 2013 23:18:06 +0000 (23:18 +0000)]
Merge the STAT4 capability into trunk.
FossilOrigin-Name:
a32af0abe5fa6d570604fa3534e8230d5b6042fc
dan [Mon, 26 Aug 2013 14:30:25 +0000 (14:30 +0000)]
Fix for builds with both SQLITE_OMIT_WAL and SQLITE_MAX_MMAP_SIZE=0 defined.
FossilOrigin-Name:
edd5dbdc3239fc88799b822941603fcc828ecbb6
drh [Mon, 26 Aug 2013 04:50:08 +0000 (04:50 +0000)]
drh [Fri, 23 Aug 2013 17:33:46 +0000 (17:33 +0000)]
Adjust #ifdefs to get SQLITE_OMIT_AUTOMATIC_INDEX and SQLITE_OMIT_PAGER_PRAGMAS
to build.
FossilOrigin-Name:
ed310201628cf79c0f57674ae7478ee6738b1c6e
drh [Fri, 23 Aug 2013 16:47:40 +0000 (16:47 +0000)]
Fix a requirements comment in a test case. No changes to the testcase
itself nor to any code.
FossilOrigin-Name:
3ad1f998e5db044849b528c31c4a7e1f3d527320
dan [Fri, 23 Aug 2013 12:04:52 +0000 (12:04 +0000)]
Modify script mkautoconfamal.sh to use the download.html naming convention for the tar.gz it creates.
FossilOrigin-Name:
375b4e3db0e0c9e83034d1c33d7c57aca48e87b6
drh [Thu, 22 Aug 2013 02:56:28 +0000 (02:56 +0000)]
Defer the creation of automatic indices until the index is actually used.
FossilOrigin-Name:
0775501acf152dcbf4dd039f4511f3d8c4330d85
drh [Wed, 21 Aug 2013 23:42:32 +0000 (23:42 +0000)]
Simplify the btreeGetPage() routine so that it uses a single flag parameter
in place of two boolean parameters.
FossilOrigin-Name:
617e23ec283d3147fc3fd29c474ccedf4915cdc7
drh [Wed, 21 Aug 2013 22:54:55 +0000 (22:54 +0000)]
Minor performance tweaks to the pager.
FossilOrigin-Name:
9ae1f9ce7ea6beaeddc3711080b3796e05acc4f8
drh [Wed, 21 Aug 2013 22:09:25 +0000 (22:09 +0000)]
Refactor the sqlite3_randomness() implementation for improved performance.
FossilOrigin-Name:
4144dffb57b5ed791d7a6d2f26fab5e7dc77fbd1
drh [Wed, 21 Aug 2013 21:12:10 +0000 (21:12 +0000)]
Simplification to the StrAccum object and the sqlite3StrAccumAppend()
method that also results in slightly better performance.
FossilOrigin-Name:
700dbbea8647e0fdaee6d0aba3d3dd8ebfbac04a
dan [Wed, 21 Aug 2013 20:04:54 +0000 (20:04 +0000)]
Minor fixes for test cases. No code changes.
FossilOrigin-Name:
ef2a6a37366f91889dc2f1ba9cb6d1257d9b05db
mistachkin [Wed, 21 Aug 2013 19:59:14 +0000 (19:59 +0000)]
drh [Wed, 21 Aug 2013 19:13:53 +0000 (19:13 +0000)]
Update sqlite3MemCompare() to try common cases first, for a modest speed
improvement.
FossilOrigin-Name:
b25bac79191975149d88fe34618c74354de62c5e
dan [Wed, 21 Aug 2013 17:35:48 +0000 (17:35 +0000)]
If a virtual table xSync() returns an error message, copy it into a buffer allocated by sqlite3DbMalloc() before transfering it to Vdbe.zErrMsg.
FossilOrigin-Name:
854ba3049005adf033e07e6740a36e63f2a56758
drh [Wed, 21 Aug 2013 15:52:22 +0000 (15:52 +0000)]
Performance enhancement in btreeParseCellPtr().
FossilOrigin-Name:
a17190a2296e8cd5e59524ff5914fc5ea3560697
dan [Wed, 21 Aug 2013 15:45:27 +0000 (15:45 +0000)]
Fix an FTS4 problem introduced by [
361084e1eb ].
FossilOrigin-Name:
5f35c8cb8f8b67121c70f98c02c4aa7c25327690
dan [Wed, 21 Aug 2013 12:04:32 +0000 (12:04 +0000)]
dan [Wed, 21 Aug 2013 07:25:03 +0000 (07:25 +0000)]
Fix a minor problem in progress.test. No code changes.
FossilOrigin-Name:
a95ae93b32a9ad2ae017124ed0881802c3c741c0
dan [Tue, 20 Aug 2013 20:25:03 +0000 (20:25 +0000)]
Fix a couple of test scripts to work with DEFAULT_AUTOVACUUM and OMIT_VIRTUALTABLE.
FossilOrigin-Name:
356c6c59311eaf7d5633476f635e94a12b8b3924
dan [Tue, 20 Aug 2013 17:14:57 +0000 (17:14 +0000)]
Fix an invalid assert() in where.c. Also a crash that can occur in the EXPLAIN QUERY PLAN code under obscure circumstances.
FossilOrigin-Name:
ef192abb82c2fc31135f875d7a19908d67c076b0
drh [Tue, 20 Aug 2013 17:00:55 +0000 (17:00 +0000)]
Ignore IS NOT NULL and NOT NULL constraints on NOT NULL columns.
FossilOrigin-Name:
e476408e3c5ba5f3ba5e98ff264167c163d72e3f
dan [Tue, 20 Aug 2013 16:08:39 +0000 (16:08 +0000)]
Test script changes to support testing sqlite3_interrupt().
FossilOrigin-Name:
0cede9f898bcd13dab51b25cb0e72213d988d3d2
drh [Tue, 20 Aug 2013 03:13:51 +0000 (03:13 +0000)]
Performance optimizations in the VDBE and especially to the OP_Next and
related opcodes and in the sqlite3BtreeNext() and sqlite3BtreePrevious()
routines. This is a cherrypick of [
6f99b54aedeb ], [
d2efea1682a7 ], and
[
d78c5d89de4b ].
FossilOrigin-Name:
7f72fc4f47445a2c01910b268335873de9f75059
drh [Mon, 19 Aug 2013 20:04:10 +0000 (20:04 +0000)]
Performance improvement in sqlite3BtreeNext() and sqlite3BtreePrevious()
for the common case of a valid cursor.
FossilOrigin-Name:
dc65ad8c4c67b21e3b042b8df6580d02b634a90b
dan [Mon, 19 Aug 2013 19:29:50 +0000 (19:29 +0000)]
Initialize a variable in fts3_write.c on the grounds that the argument required to show that it does not require initialization with is complicated. Add an assert() to where.c to silence a clang scan-build warning.
FossilOrigin-Name:
d6c4d48a002a6d7057fccc30064ce0b049678f0c
dan [Mon, 19 Aug 2013 18:37:18 +0000 (18:37 +0000)]
Fix test script pragma2.test so that it works with ENABLE_MEMORY_MANAGEMENT.
FossilOrigin-Name:
6acf728100ff339e4451bcefd3a20fd5c3cfd662
dan [Mon, 19 Aug 2013 18:17:03 +0000 (18:17 +0000)]
Add some extra assert() statements to silence a few clang warnings.
FossilOrigin-Name:
1c63e9515b5f5cb9169928b108d002dcd18ad4fd
drh [Mon, 19 Aug 2013 14:23:31 +0000 (14:23 +0000)]
Remove unused variables from the command-line shell sources.
FossilOrigin-Name:
753a402e90f3c9f675155ea96ee048dbe7a68700
drh [Mon, 19 Aug 2013 14:19:00 +0000 (14:19 +0000)]
Fix a potential reference off the end of an array in the query planner.
FossilOrigin-Name:
f15591f80212dd6d4ed8e0f14be691cd578d4cdf
drh [Mon, 19 Aug 2013 11:15:48 +0000 (11:15 +0000)]
Fixes for harmless compiler warnings.
FossilOrigin-Name:
a0d9ca4f07f1dc3a189864f8ed9cdb0b1d791b1a
drh [Sat, 17 Aug 2013 18:57:15 +0000 (18:57 +0000)]
Adjustments to #ifdefs in analyze.c to all a clean compile with no
extra code with both ENABLE_STAT3 and ENABLE_STAT4 and with neither.
FossilOrigin-Name:
f86b75b6c7290ee6ddb3636090b00e99fc68c45e
drh [Sat, 17 Aug 2013 16:37:04 +0000 (16:37 +0000)]
Add the cache_spill pragma. Change the fullfsync and checkpoint_fullfsync
pragmas to apply to all attached databases.
FossilOrigin-Name:
65a85a156f3c827890e9f1fd22484a2f875c3b6f
drh [Sat, 17 Aug 2013 15:42:29 +0000 (15:42 +0000)]
The fullfsync, checkpoint_fullfsync, and cache_spill pragmas apply to all
files of a database connection, including those opened by future ATTACH
statements.
FossilOrigin-Name:
d07c4331a28d44deca1ece8a34118f5b121b3ee2
drh [Sat, 17 Aug 2013 00:25:07 +0000 (00:25 +0000)]
Test cases for the cache_spill pragma.
FossilOrigin-Name:
b85c9ec5e02c1b92faa8eeb9e56e02a576a43a96
drh [Fri, 16 Aug 2013 20:42:20 +0000 (20:42 +0000)]
Add the cache_spill pragma.
FossilOrigin-Name:
cdb181c04fa99c6c29f23eb68ccb5475e7f6bf9c
dan [Fri, 16 Aug 2013 17:46:49 +0000 (17:46 +0000)]
Add a test for the problem fixed by [
91733bc485 ].
FossilOrigin-Name:
5c591104813a7e55e59f4f557cbb3e500fa817c2
drh [Fri, 16 Aug 2013 17:18:02 +0000 (17:18 +0000)]
In sqlite3Stat4ProbeSetValue() change a local variable name iVar to iBindVar
to avoid confusion with iVal, and fix a place where the name was actually
confused.
FossilOrigin-Name:
91733bc4856034c10bc2ba0acdae1970b05d62b9
drh [Fri, 16 Aug 2013 14:51:32 +0000 (14:51 +0000)]
Merge the fork that resulted from a check-in race.
FossilOrigin-Name:
b7fe4f362bdf7b233a7b09eb9ce16d296165f82a
drh [Fri, 16 Aug 2013 14:49:00 +0000 (14:49 +0000)]
Fix valueFromExpr() so that it returns SQLITE_NOMEM following an OOM when
changing text encodings. Also fix some asserts to accommodate OOM errors.
FossilOrigin-Name:
dc1ccd09c443cebc4731dbe1a0dea84a9ccf6a9b
dan [Fri, 16 Aug 2013 14:48:23 +0000 (14:48 +0000)]
Fixes for test code that was not working with utf16 databases. Run the analyze*.test scripts as part of the 'utf16' permutation test.
FossilOrigin-Name:
fe99494d99df95f699ffab07b1e212800b5ff00d
dan [Fri, 16 Aug 2013 14:23:02 +0000 (14:23 +0000)]
Add extra tests. No code changes.
FossilOrigin-Name:
949127d53e0a907ed6f73c6828637d94b265468c
dan [Fri, 16 Aug 2013 14:09:43 +0000 (14:09 +0000)]
Avoid buffer overreads and false OOM error reports that could be caused by corrupted sample records in the sqlite_stat4 table.
FossilOrigin-Name:
9f85b6a52a0b9b1524daa6f24d85257e7f591e95
drh [Fri, 16 Aug 2013 13:34:50 +0000 (13:34 +0000)]
Fix a potential segfault following an OOM while running ANALYZE.
FossilOrigin-Name:
0118797823c9093e68113578f3f3aae65de41453
drh [Fri, 16 Aug 2013 12:26:33 +0000 (12:26 +0000)]
Merge recent trunk changes into the STAT4 branch.
FossilOrigin-Name:
c69b512af276a438399747af22659415af3a5d4d
drh [Thu, 15 Aug 2013 22:40:21 +0000 (22:40 +0000)]
Make sure that GROUP BY terms select input column names in preference to
output column names, in compliance with the SQL standard.
Ticket [
1c69be2dafc28 ].
FossilOrigin-Name:
f2d175f975cd0be63425424ec322a98fb650019e
drh [Thu, 15 Aug 2013 20:24:27 +0000 (20:24 +0000)]
Bare identifiers in ORDER BY clauses bind more tightly to output column name,
but identifiers in expressions bind more tightly to input column names.
This is a compromise between SQL92 and SQL99 behavior and is what
PostgreSQL and MS-SQL do. Ticket [
f617ea3125e9c ].
FossilOrigin-Name:
c78b357c00a35ed48ce2ffbc041de8d22570d1e2
mistachkin [Thu, 15 Aug 2013 20:05:03 +0000 (20:05 +0000)]
Make it easy to attach a debugger the test fixture process prior to any tests being run.
FossilOrigin-Name:
53cd9ebfaf401c7932bf591e134a527c9962b88e
dan [Thu, 15 Aug 2013 19:56:32 +0000 (19:56 +0000)]
Fix a crash that can occur if the sqlite_stat3 or sqlite_stat4 table is corrupt.
FossilOrigin-Name:
d51df8a8fcc31c37f6e1c9612204af5738ed865e
dan [Thu, 15 Aug 2013 18:43:21 +0000 (18:43 +0000)]
Fix a crash that can occur following an OOM fault.
FossilOrigin-Name:
9f80b2687012ab7c4d6d654fe19f40878bd78bd8
dan [Thu, 15 Aug 2013 16:18:39 +0000 (16:18 +0000)]
Change some assert() statements in vdbe.c to ensure that a memory cell used to store a VdbeCursor object is not also used for some other purpose.
FossilOrigin-Name:
71070c9fce86103f174220e07771df99b2e01405
drh [Thu, 15 Aug 2013 16:15:00 +0000 (16:15 +0000)]
Make sure the ANALYZE command allocates enough VDBE registers.
FossilOrigin-Name:
46fec9b1a1c4616df5a634dbf9235bd13408d3a9
dan [Thu, 15 Aug 2013 14:39:09 +0000 (14:39 +0000)]
Add tests for sqlite_stat4 sample selection. And a fix for the same.
FossilOrigin-Name:
1fb4d9d6f2675515feb8e3d971bbd54716372549
drh [Thu, 15 Aug 2013 14:27:42 +0000 (14:27 +0000)]
Clarification and typo fixes in comments related to name resolution.
No changes to code.
FossilOrigin-Name:
f30abdf9d814d6c75bf1c803054737c737ad636f
mistachkin [Thu, 15 Aug 2013 08:06:15 +0000 (08:06 +0000)]
Make it easy to attach a debugger the test fixture process prior to any tests being run.
FossilOrigin-Name:
c23acba11bfefc019b5945cfb345f9afcf4b6242
dan [Wed, 14 Aug 2013 19:54:12 +0000 (19:54 +0000)]
Change the way ANALYZE works to use a single cursor when scanning indices.
FossilOrigin-Name:
bdce612b35193abf72de1a563ea7962375b3574e
mistachkin [Wed, 14 Aug 2013 00:20:23 +0000 (00:20 +0000)]
Fix a few more minor comment typos. No changes to code.
FossilOrigin-Name:
9e999081a59b161a0a1f968fbc01a1db9ea43b93
mistachkin [Tue, 13 Aug 2013 22:33:41 +0000 (22:33 +0000)]
Fix an outdated comment and a comment typo. No changes to code.
FossilOrigin-Name:
ac336959490083ffeaaf25aaec97ecb59a2f4536
dan [Mon, 12 Aug 2013 20:14:04 +0000 (20:14 +0000)]
If ENABLE_STAT3 is defined but ENABLE_STAT4 is not, have ANALYZE create and populate the sqlite_stat3 table instead of sqlite_stat4.
FossilOrigin-Name:
cca8bf4372ab7a0258aa5c9397818415c6cf0abf
dan [Mon, 12 Aug 2013 17:31:32 +0000 (17:31 +0000)]
If there is data in both the sqlite_stat4 and sqlite_stat3 tables for a single index, ignore the sqlite_stat3 records.
FossilOrigin-Name:
2a41736728d83a777ea8112da927cb047ec6684e
drh [Mon, 12 Aug 2013 17:00:08 +0000 (17:00 +0000)]
Handle a NULL input to decodeIntArray() that can result from a prior OOM.
FossilOrigin-Name:
fa1588adab6759fd3d1be02524aa19a0d1c6adaa
dan [Mon, 12 Aug 2013 16:34:32 +0000 (16:34 +0000)]
Re-enable reading from the sqlite_stat3 table (as well as sqlite_stat4).
FossilOrigin-Name:
6d45078e621526fc2bac0eaefbb0f9602b9a8ec5
dan [Mon, 12 Aug 2013 11:21:10 +0000 (11:21 +0000)]
Fix a bug in calculating the average number of entries for keys not present in the sqlite_stat4 table.
FossilOrigin-Name:
ec3ffb174844406a6186c3dcc41b76d0331b502c
dan [Mon, 12 Aug 2013 09:29:04 +0000 (09:29 +0000)]
Fix minor problems caused by adding the rowid to the records in stat4.
FossilOrigin-Name:
088d1ff94890ada50d43e6a366a58167ec5a8e96
dan [Sat, 10 Aug 2013 19:08:30 +0000 (19:08 +0000)]
Add the rowid field to the end of sample records stored in the sqlite_stat4 table.
FossilOrigin-Name:
3a5e8ab7ddbe1d943b35ef329fe4e5a1bfdb0d9d
dan [Fri, 9 Aug 2013 19:04:07 +0000 (19:04 +0000)]
Fix a couple of typos in a comment in analyze.c. No code changes.
FossilOrigin-Name:
5bcccb93df98f5dfee0ea4d797b07fe0257258a9
drh [Fri, 9 Aug 2013 14:07:55 +0000 (14:07 +0000)]
Update the header comment on analyze.c to describe the sqlite_stat4 table
format.
FossilOrigin-Name:
4d97809d6b29809f12d753043bda1976bdb1bd3b
dan [Thu, 8 Aug 2013 19:38:40 +0000 (19:38 +0000)]
Fix problems in estimating the number of rows visited by a range query using sqlite_stat4 data when the column subject to the range query is not the leftmost of the index.
FossilOrigin-Name:
9228aaf54dd2700c4f460f94f9c2309407578983
dan [Thu, 8 Aug 2013 16:17:12 +0000 (16:17 +0000)]
Use a binary search instead of a linear scan when comparing a sample key against data from the sqlite_stat4 table.
FossilOrigin-Name:
e50dc30523210ba12324d5d8379503610f13aa34
drh [Thu, 8 Aug 2013 14:38:45 +0000 (14:38 +0000)]
If the SQLITE_EXTRA_INIT function is defined, make sure it is called only
once by the effective sqlite3_initialize() call.
FossilOrigin-Name:
e2b597cafe7c8a8313b051d6a302fed54f235727
dan [Thu, 8 Aug 2013 12:21:32 +0000 (12:21 +0000)]
Fix a segfault in "ALTER TABLE t1 ADD COLUMN b DEFAULT (-+1)". Also an assert() failure that could occur if SQLITE_ENABLE_STAT4 were not defined.
FossilOrigin-Name:
9fec3e38287067d60874530300fbeb602958c951
dan [Thu, 8 Aug 2013 11:48:57 +0000 (11:48 +0000)]
Fix a bug in using stat4 data to estimate the number of rows selected by a range constraint.
FossilOrigin-Name:
f783938ea999731ea073cd2c78e278095f7bea6d
drh [Wed, 7 Aug 2013 23:15:52 +0000 (23:15 +0000)]
If the SQLITE_ALLOW_URI_AUTHORITY compile-time option is set, then allow
non-localhost authorities on URI filenames and pass them through as a UNC
to the underlying VFS.
FossilOrigin-Name:
3adb6c1bfda897859dc9cf9ae7f1e6719855ee68
dan [Wed, 7 Aug 2013 19:46:15 +0000 (19:46 +0000)]
Replace variable Index.avgEq (average number of rows in keys for which there is no sample in sqlite_stat4) with vector Index.aAvgEq.
FossilOrigin-Name:
7b70b419c43b2c3b2daf11d833a1d60245bfaef5
dan [Wed, 7 Aug 2013 18:42:27 +0000 (18:42 +0000)]
Merge latest trunk changes with this branch.
FossilOrigin-Name:
08f74c45ecf711a2373af578d44470add9082377
dan [Wed, 7 Aug 2013 16:38:33 +0000 (16:38 +0000)]
Fix typos in a comment in analyze.c. No code changes.
FossilOrigin-Name:
812ed0c58fc5f729a2d4f16775fad6724cc367a6
dan [Wed, 7 Aug 2013 16:15:32 +0000 (16:15 +0000)]
Change the way samples for the sqlite_stat4 table are collected.
FossilOrigin-Name:
13ed5ac13562e7a39905d70fd47059f4d8001bba
drh [Wed, 7 Aug 2013 16:04:27 +0000 (16:04 +0000)]
Fix the ".dump" command on the command-line shell so that it works for
"sqlite_stat4" in addition to "sqlite_stat1".
FossilOrigin-Name:
1e80c4b12dbb5beab422e2a33a8782ac9d767321
drh [Wed, 7 Aug 2013 15:57:24 +0000 (15:57 +0000)]
Remove the unused sqlite3Utf8to16() utility function.
FossilOrigin-Name:
9159b43eb2cb5d6ed18a5ad168fa27134fec2553
dan [Wed, 7 Aug 2013 15:52:41 +0000 (15:52 +0000)]
When estimating the number of rows scanned using data from the sqlite_stat4 table, avoid allocating UnpackedRecord and KeyInfo structures until they are definitely required.
FossilOrigin-Name:
353950a5269fa439cc3e57b62e16558a84ea2557
drh [Wed, 7 Aug 2013 14:18:45 +0000 (14:18 +0000)]
Add a guard #ifndef to test_intarray.h to prevent harm if it is #included
more than once. Add a comment on the closing #endif of the guards on
sqlite3.h and test_multiplex.h.
FossilOrigin-Name:
0ad83ceb79767738bd06a28840cf84da0464ab4f
drh [Wed, 7 Aug 2013 01:18:38 +0000 (01:18 +0000)]
Fix typos and add clarification to comments in where.c. No code changes.
FossilOrigin-Name:
f8d8790ede0fcaf6c5b60ac22919c1d97c74e838
dan [Tue, 6 Aug 2013 20:15:06 +0000 (20:15 +0000)]
Fixes for builds without SQLITE_ENABLE_STAT4.
FossilOrigin-Name:
84999e27cc0d14b89d9fe024e29d287c69285369
dan [Tue, 6 Aug 2013 20:01:43 +0000 (20:01 +0000)]
When possible, use the multi-column samples in sqlite_stat4 to estimate the number of index rows scanned by a query plan.
FossilOrigin-Name:
2973f5ca736c4a6f13c653d54b6a29d7cae8d0ed
drh [Tue, 6 Aug 2013 19:18:17 +0000 (19:18 +0000)]
Fix a test case related to partial indices so that it works even if
STAT3 is disabled.
FossilOrigin-Name:
153c645025637bbff14dfce793e4b92210ded7e8
drh [Tue, 6 Aug 2013 18:35:31 +0000 (18:35 +0000)]
Adjust #ifdefs in test_autoext.c so that it compiles with
SQLITE_OMIT_LOAD_EXTENSION. Fix compiler warnings in two other
test modules. No changes to the core.
FossilOrigin-Name:
89930ea3c3b3bd078f641b2c5203d851083bbf1a
drh [Tue, 6 Aug 2013 18:21:21 +0000 (18:21 +0000)]
Update the configure script to use the latest version number (3.8.0).
FossilOrigin-Name:
52e8ec5e24730efa6d89cbaf1e03bc1d5c59cc05
drh [Tue, 6 Aug 2013 17:24:23 +0000 (17:24 +0000)]
Add a testcase() macro to verify OOM coverage.
FossilOrigin-Name:
d43dcbc488120aeb7104ab9e6a27f62bb348bf6a
drh [Tue, 6 Aug 2013 16:56:44 +0000 (16:56 +0000)]
Remove unreachable branches in expr.c, replacing them with assert() and
testcase() statements.
FossilOrigin-Name:
9103c27ceb3f4023ea3a41b679a10717d3f80210
drh [Tue, 6 Aug 2013 14:36:36 +0000 (14:36 +0000)]
For the ".import" command of the command-line shell, start a transaction
if there is not one active already.
FossilOrigin-Name:
5dcc2d91bd343cd0fac79d3c8f079a5ce534cdf7
drh [Tue, 6 Aug 2013 14:01:46 +0000 (14:01 +0000)]
Clean up the input reader in the command-line shell for improved legibility
and performance.
FossilOrigin-Name:
2b1743d60171635c1e5a6ede6b4928f4671f948d
drh [Tue, 6 Aug 2013 07:45:08 +0000 (07:45 +0000)]
More than double the speed of the resolveP2Values() routine in vdbeaux.c by
moving from an extended if-else on every opcode to a switch. Opcodes are
reordered in mkopcodesh.awk to put the switched opcodes close together,
for additional performance and to reduce code footprint.
FossilOrigin-Name:
924f7e4d7a8fa2fe9100836663f3733b6e1a9084