]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Thu, 3 Apr 2014 16:53:12 +0000 (16:53 +0000)]
drh [Thu, 3 Apr 2014 16:18:57 +0000 (16:18 +0000)]
Increase the version number to 3.8.4.3
FossilOrigin-Name:
f05a49b6e006475c5b2678a1195bf67c6f2f07a4
drh [Thu, 3 Apr 2014 16:16:36 +0000 (16:16 +0000)]
Use OP_Copy instead of OP_SCopy when moving results out of a subquery,
to prevent the subquery results from changing out from under the outer
query. Fix for ticket [
1e64dd782a126f48d78 ].
FossilOrigin-Name:
ec6a06246e04eee5f25f1c28507df73b697099c0
drh [Wed, 26 Mar 2014 18:51:19 +0000 (18:51 +0000)]
drh [Wed, 26 Mar 2014 16:25:42 +0000 (16:25 +0000)]
Increase the version number to 3.8.4.2.
FossilOrigin-Name:
59978a2e425e6f53853a4ad9dc9c7229476091fa
drh [Wed, 26 Mar 2014 16:22:38 +0000 (16:22 +0000)]
Fix a potential buffer overread that could have occurred when searching
a corrupt database file.
FossilOrigin-Name:
db2935473eab91cde3c01353ae29e112ab0c7acb
drh [Tue, 11 Mar 2014 15:27:36 +0000 (15:27 +0000)]
drh [Tue, 11 Mar 2014 15:25:43 +0000 (15:25 +0000)]
Update version number to 3.8.4.1
FossilOrigin-Name:
33f5694fa42d9a521ca081de4ddd1e9dc8952b16
dan [Tue, 11 Mar 2014 09:19:26 +0000 (09:19 +0000)]
Add a test to see what happens if an rtree constructor encounters an SQLITE_BUSY error. No changes to code.
FossilOrigin-Name:
5527e23636eee192030f6a3c41628030b6c50bb8
drh [Mon, 10 Mar 2014 20:12:31 +0000 (20:12 +0000)]
Adjustments to the cost computation for the skip-scan query plan, to take
into account the fact that a seek has to occur on each skip.
FossilOrigin-Name:
0769eebd028ce31375cf93509a1d3687f7b117eb
drh [Mon, 10 Mar 2014 18:03:09 +0000 (18:03 +0000)]
Attempt to work around MSVC's treatment of __LINE__ as a non-constant value
in "Edit and Continue" mode by avoiding the use of __LINE__ when
SQLITE_VDBE_COVERAGE is not defined.
FossilOrigin-Name:
0a5318bc272b844e937cb1df3a07224034bc3450
drh [Mon, 10 Mar 2014 12:20:37 +0000 (12:20 +0000)]
dan [Sat, 8 Mar 2014 19:07:03 +0000 (19:07 +0000)]
Fix a bug causing "SELECT char()" to return SQLITE_NOMEM.
FossilOrigin-Name:
ba39df9d4f7ffc6475ae0dc794f7d3f58c486de8
drh [Fri, 7 Mar 2014 14:57:07 +0000 (14:57 +0000)]
Improved comment on the pager.c PERSIST rollback journal delete logic
inside of hasHotJournal(). No changes to code.
FossilOrigin-Name:
e5b17a9d07a35c9b44ff977ba81b93d745d26a11
mistachkin [Fri, 7 Mar 2014 03:31:35 +0000 (03:31 +0000)]
Revise change from the previous check-in to clarify the situation when handling open journal files, regardless of journal mode.
FossilOrigin-Name:
1c318ef3b76e9a9a5ff2f156a9acddfc1bda0949
mistachkin [Fri, 7 Mar 2014 02:29:56 +0000 (02:29 +0000)]
Avoid calling sqlite3OsDelete() on a file that is open, since this causes Windows to run *very* slowly. Comes up on error recovery in journal_mode=PERSIST.
FossilOrigin-Name:
fdc651e2ec7a0babee669e24fd56632e7cd5f0e9
dan [Thu, 6 Mar 2014 18:16:45 +0000 (18:16 +0000)]
Do not run corruptH.test in mmap mode.
FossilOrigin-Name:
c0d54b4e41cba84dc5934e0fcd03fe422fe5c92b
drh [Thu, 6 Mar 2014 13:38:37 +0000 (13:38 +0000)]
Improved EXPLAIN indentation of a loop in the ANALYZE logic for STAT4.
Mark the not-found jump of a seek operation in that loop as never taken.
FossilOrigin-Name:
0a4200f95cf46ad620b9fd91f4444114a0c74730
dan [Thu, 6 Mar 2014 12:36:26 +0000 (12:36 +0000)]
Remove a branch that is never taken from where.c.
FossilOrigin-Name:
4a4997221f3d61c1411a993053b40c787beea736
mistachkin [Thu, 6 Mar 2014 02:15:42 +0000 (02:15 +0000)]
Cosmetic change to the shell in-memory database warning to skip coloring the trailing period.
FossilOrigin-Name:
c87d8e07ec596d5f0ef3003cfeb226d4b7c49549
drh [Thu, 6 Mar 2014 01:56:33 +0000 (01:56 +0000)]
Fix some incorrect comments and typos in comments. Add testcase() macros
to some of the new record comparison code.
FossilOrigin-Name:
b83cfe899d84fe9d61540e9984321ca30401638c
mistachkin [Thu, 6 Mar 2014 00:30:27 +0000 (00:30 +0000)]
Better loadable extension handling in the Win32 VFS when compiled for Cygwin.
FossilOrigin-Name:
29b0a4f158785449b6f3da6fcceeb63442c9711c
mistachkin [Thu, 6 Mar 2014 00:28:57 +0000 (00:28 +0000)]
Better support for MinGW 4.x.
FossilOrigin-Name:
170e0585202eec6882e9513eba05e6d5767bfc5b
drh [Wed, 5 Mar 2014 19:36:52 +0000 (19:36 +0000)]
Always include the ctype.h header in the spellfix.c extension.
FossilOrigin-Name:
bfd75f471a607b442d8cd8a7070491a158e8fb1a
dan [Wed, 5 Mar 2014 19:13:32 +0000 (19:13 +0000)]
Avoid running a couple of test cases that use realloc() extensively if SQLITE_MEMDEBUG is defined.
FossilOrigin-Name:
e406d4bb786a34cdd5dd23ed39f35dfce3e1cabd
drh [Wed, 5 Mar 2014 19:04:46 +0000 (19:04 +0000)]
Fix a harmless compiler warning on MSVC.
FossilOrigin-Name:
0723effc9ccae7c660fb847b36ce9324e0cb5042
dan [Wed, 5 Mar 2014 17:29:34 +0000 (17:29 +0000)]
Add SQLITE_OMIT_CTE to the list of compile options that might be returned by "PRAGMA compile_options".
FossilOrigin-Name:
f33f2b3f924347e3da26741d153749330cb645ec
dan [Wed, 5 Mar 2014 16:15:07 +0000 (16:15 +0000)]
Add tests to join.test to verify that it is not possible to use more than 64 tables in a join.
FossilOrigin-Name:
ef1a998625e1fc051732228844388d6c59665382
drh [Wed, 5 Mar 2014 15:52:43 +0000 (15:52 +0000)]
Count the number of elements in a SrcList object using an "int" rather than
a "u8", to avoid overflows and to work around an issue in the C compiler on
AIX.
FossilOrigin-Name:
eee2a13f2caa48b7b8a693680edc2bbc9275292c
dan [Wed, 5 Mar 2014 15:04:36 +0000 (15:04 +0000)]
Add a test case for the problem fixed by [
1d134ba2ed ].
FossilOrigin-Name:
d4fbc05df9501a09623d420fcd5b2bce3a57201b
drh [Wed, 5 Mar 2014 14:40:22 +0000 (14:40 +0000)]
When converting a result type from TEXT to BLOB using the
sqlite3_value_blob() interface, continue to report SQLITE_TEXT as
the true type from sqlite3_value_text() as long as that text is still
valid. The maintains legacy behavior from before the noMemType change.
FossilOrigin-Name:
1d134ba2edbdb8c0cf9e99590a69cd17e0b874a9
drh [Wed, 5 Mar 2014 12:47:55 +0000 (12:47 +0000)]
Separate the column NULL value constant into a separate routine for greater
commonality with the sessions branch.
FossilOrigin-Name:
12cbebb997705e37769460e00a4aaa52c12f305e
dan [Wed, 5 Mar 2014 11:48:35 +0000 (11:48 +0000)]
Remove the redundant memType field from struct Mem.
FossilOrigin-Name:
9e8528578966e4f1a16d63333de648fd8cdaf0f2
dan [Wed, 5 Mar 2014 11:22:33 +0000 (11:22 +0000)]
Do not run corruptI.test with the mmap permutation.
FossilOrigin-Name:
378b290da85cadc1acba081322d1f0e8d7694e17
mistachkin [Wed, 5 Mar 2014 01:29:18 +0000 (01:29 +0000)]
Experimental simplification of memory flags/type handling.
FossilOrigin-Name:
bac2820e13a79d91d0f8938c643134a9d6900327
drh [Tue, 4 Mar 2014 21:19:51 +0000 (21:19 +0000)]
Avoid indexing off the front end of an array when creating a view with
two or more blank column names in the SELECT statement that defines the view.
FossilOrigin-Name:
554501f158534f9c27fd51900589c2ab7cf300d8
dan [Tue, 4 Mar 2014 21:00:20 +0000 (21:00 +0000)]
Fix a problem with "DEFAULT (-(-
9223372036854775808 ))" clauses in ALTER TABLE ... ADD COLUMN commands.
FossilOrigin-Name:
e072cb3ee2a03d786c08230cecc6e970de2cec5b
drh [Tue, 4 Mar 2014 18:06:04 +0000 (18:06 +0000)]
Fix a potential memory use-after-free problem following an OOM error.
FossilOrigin-Name:
767ccb1fa11b3e7b895fb8c2e91f79e3b4202907
drh [Tue, 4 Mar 2014 16:21:18 +0000 (16:21 +0000)]
Fix an assert() so that it takes OOM errors into account.
FossilOrigin-Name:
53f6ec792f5f62fcdbf25e0fce5545dd1c3048a4
dan [Tue, 4 Mar 2014 16:05:25 +0000 (16:05 +0000)]
Ensure that BtreeMovetoUnpacked() does not try to invoke xRecordCompare when it is set to NULL.
FossilOrigin-Name:
2879234b7c373be422af3fe180cae9840943e29a
drh [Tue, 4 Mar 2014 13:18:23 +0000 (13:18 +0000)]
Improve clarity of presentation in the sqlite3VdbeMemFromBtree() routine.
FossilOrigin-Name:
9830c343bc954b828f6ca752f8ae63e2c0a980c1
mistachkin [Tue, 4 Mar 2014 12:07:24 +0000 (12:07 +0000)]
Fix comment in test.
FossilOrigin-Name:
1e57f67b20a1c01ede36d684be628e9270bf109a
mistachkin [Tue, 4 Mar 2014 11:54:35 +0000 (11:54 +0000)]
Fix minor typos in the new test file.
FossilOrigin-Name:
3cbb9b1b4f8c5c2735799e84dc80614586222cd2
dan [Tue, 4 Mar 2014 11:35:20 +0000 (11:35 +0000)]
Add tests to verify the fix for bug [
4ef7e3cfca ].
FossilOrigin-Name:
62410bb8a7b33efcd13bce8fd75b83523922adb8
mistachkin [Tue, 4 Mar 2014 11:29:42 +0000 (11:29 +0000)]
Fix name resolution problem in sub-selects within triggers, ticket [
4ef7e3cfca ].
FossilOrigin-Name:
5bcd0b1ca5d73ffbe7978ee9d73fe5e769e3d3a2
mistachkin [Tue, 4 Mar 2014 11:16:20 +0000 (11:16 +0000)]
Fix harmless compiler warning.
FossilOrigin-Name:
8d18a803bdeab290a6e9ff26911897f5f8683876
drh [Tue, 4 Mar 2014 04:12:56 +0000 (04:12 +0000)]
Refactor the sqlite3VdbeRecordCompare() routine used to compare btree records.
Create fast-track special case routines to handle the common cases more
quickly. This gives a significant performance boost.
FossilOrigin-Name:
3325ad5bdc2f81f63b556d6f4d0589d89b142b2b
drh [Tue, 4 Mar 2014 04:04:33 +0000 (04:04 +0000)]
Fix more instances of assuming 'char' is signed. And, make sure to never shift
a signed integer.
FossilOrigin-Name:
f10130ede433a19b3945753f23962871c8d2dcf3
drh [Tue, 4 Mar 2014 00:15:16 +0000 (00:15 +0000)]
Do not assume that 'char' is signed. Make it explicit.
FossilOrigin-Name:
979da752e6f8767a61a8efed824ffad9605d0f4c
drh [Mon, 3 Mar 2014 21:59:33 +0000 (21:59 +0000)]
Refactor the sqlite3VdbeRecordCompare() routine used to compare btree records.
Create a couple of fast-track routines to handle the common cases of a string
with BINARY collation or integer values as the left-most column. This gives
a significant performance boost in common use.
FossilOrigin-Name:
aec5473a750e412eb1e11e17bbafd760db086c86
drh [Mon, 3 Mar 2014 21:46:55 +0000 (21:46 +0000)]
Fix a couple of harmless compiler warnings.
FossilOrigin-Name:
fcf480cc630976b619aabd5f7fb7b09601a178fb
dan [Mon, 3 Mar 2014 20:48:50 +0000 (20:48 +0000)]
Avoid a buffer overread in vdbeCompareRecordInt() that might occur if the database is corrupt.
FossilOrigin-Name:
7c0b4381f0e6f33cb13299a915851d9431bf3850
drh [Mon, 3 Mar 2014 19:29:28 +0000 (19:29 +0000)]
Fix a typo in a comment. No changes to code.
FossilOrigin-Name:
1f4991ab1676bf85599fc32068ceeddeb05f648c
drh [Mon, 3 Mar 2014 18:25:24 +0000 (18:25 +0000)]
Fix compiler warnings.
FossilOrigin-Name:
ba8993727e5752cbc92c7d78437e9e0510c899f7
dan [Mon, 3 Mar 2014 17:48:03 +0000 (17:48 +0000)]
Merge latest trunk changes.
FossilOrigin-Name:
1d60356462f111ed147aa865dd17a13511db6ab7
drh [Mon, 3 Mar 2014 17:36:39 +0000 (17:36 +0000)]
Change an OP_SCopy into an OP_Copy in a case where the destination might be
used after the source has changed.
FossilOrigin-Name:
c0fa0c0e2de50d7eda19ab8862496b18eff93538
dan [Mon, 3 Mar 2014 16:48:47 +0000 (16:48 +0000)]
Change the "explain_i" tcl test command so that xterm color codes are only added if the output is actually a terminal.
FossilOrigin-Name:
559835e54e0715f2b4d207d056199a8268af739e
drh [Mon, 3 Mar 2014 15:13:27 +0000 (15:13 +0000)]
Fix a harmless compiler warning.
FossilOrigin-Name:
d7f6837e6997a4d5c0fd2d08b52887d691dd6f97
dan [Mon, 3 Mar 2014 14:45:06 +0000 (14:45 +0000)]
Merge latest trunk changes.
FossilOrigin-Name:
e00ed717fbe456010ec6c746490d7c3e9d94ec5a
dan [Mon, 3 Mar 2014 14:20:30 +0000 (14:20 +0000)]
Fix a segfault that can occur following an OOM error.
FossilOrigin-Name:
7fdd378d54754a3ffdc01c6c0a66cf6d5899a495
drh [Mon, 3 Mar 2014 00:12:39 +0000 (00:12 +0000)]
Change the MEM_Dyn flag so that it means that Mem.xDel exists and must
be used to free the string or blob. Add tighter invariant checks on Mem.
FossilOrigin-Name:
e3f6c61e0333d4d237dcd2ba2e404f0a91ee5069
dan [Sat, 1 Mar 2014 19:45:23 +0000 (19:45 +0000)]
Merge trunk changes.
FossilOrigin-Name:
9c1747b5ded995e77fdab2fa9d334ec3c17c7c14
dan [Sat, 1 Mar 2014 19:44:56 +0000 (19:44 +0000)]
Remove the vdbeRecordCompareLargeHeader function. Fix some other details.
FossilOrigin-Name:
3861e853105cb8da344c7eebd2e455622b26395e
drh [Sat, 1 Mar 2014 18:13:23 +0000 (18:13 +0000)]
Change the MEM_Dyn flag so that it means that Mem.xDel exists and must be
used to free the string or blob. Add tighter invariant checks on Mem.
FossilOrigin-Name:
44e1c33767cae3bf2cbd2238831fe67197009b43
drh [Sat, 1 Mar 2014 16:24:44 +0000 (16:24 +0000)]
Factor the Mem invariant checker into a separate procedure (rather than a
macro) so that it can be more easily extended.
FossilOrigin-Name:
354699d50e7d251504a7b3d6fbec9e5bcf99557f
drh [Sat, 1 Mar 2014 14:45:18 +0000 (14:45 +0000)]
Add extra assert() statements trying to catch a Mem object in an inconsistent
state.
FossilOrigin-Name:
4aeb3ae435c78070232fef21a147fde4e1c5cd31
drh [Fri, 28 Feb 2014 20:47:24 +0000 (20:47 +0000)]
In the command-line shell add the (undocumented and unsupported) ".eqp"
command and -eqp command-line option, to cause EXPLAIN QUERY PLAN to be
run on each SQL statement as it is evaluated. Intended use is for analysis
of the query planner.
FossilOrigin-Name:
e6ecf7337658624d664e1e71ba3fc527fd6578c1
drh [Fri, 28 Feb 2014 19:37:45 +0000 (19:37 +0000)]
Provide an #ifdef in shell.c to work around issues when cross-compiling
from Ubuntu to windows.
FossilOrigin-Name:
0a3579d9b9d2a60bb85a9811bc7936edb88debae
dan [Fri, 28 Feb 2014 18:39:51 +0000 (18:39 +0000)]
Update some test cases that deal with corrupt databases.
FossilOrigin-Name:
3a09f5605ac7c6e503eb10acfdc607010414d917
dan [Fri, 28 Feb 2014 09:48:30 +0000 (09:48 +0000)]
Minor tweak to vdbeRecordCompareInt().
FossilOrigin-Name:
284bde0ee20261737446eb8f5b6b36ad9bc3f355
dan [Thu, 27 Feb 2014 20:52:26 +0000 (20:52 +0000)]
Merge in latest trunk changes.
FossilOrigin-Name:
8f30b09518d23c3f6cecd244a66ef918fdb55323
dan [Thu, 27 Feb 2014 20:44:18 +0000 (20:44 +0000)]
Further changes to sqlite3VdbeRecordCompare().
FossilOrigin-Name:
570893740067a7caa952f259fa078cdf67017d71
drh [Thu, 27 Feb 2014 15:11:52 +0000 (15:11 +0000)]
A better way of handling the USE_SYSTEM_SQLITE #define in shell.c.
FossilOrigin-Name:
51ce713c6ee91bdf0126155334dcc800b3daa509
drh [Thu, 27 Feb 2014 15:04:13 +0000 (15:04 +0000)]
Add #defines to the command-line shell source code (shell.c) so that it
can be imported directly into other projects (ex: Fossil) and used without
editing.
FossilOrigin-Name:
a6690400235705ecc0d1a60dacff6ad5fb1f944a
drh [Wed, 26 Feb 2014 21:35:31 +0000 (21:35 +0000)]
More efficient removal of duplicates in recursive queries using the UNION
compound operator.
FossilOrigin-Name:
06c2db875e6cabd81c2a153b2fa4aba03eaed268
drh [Wed, 26 Feb 2014 13:53:34 +0000 (13:53 +0000)]
In the command-line shell for CSV import, if the lines are \r\n terminated
and the last field is blank, make sure an empty string and not a "\r" string
is imported.
FossilOrigin-Name:
9c2e7612cd137895e13ee872e668ce1216719d85
drh [Wed, 26 Feb 2014 02:26:09 +0000 (02:26 +0000)]
Improved handling of constants and especially constant functions in the
ORDER BY clause of a query. Do not optimize out "ORDER BY random()".
Fix for ticket [
65bdeb9739605cc2296 ].
FossilOrigin-Name:
dca1945aeb3fb005263f9be00ee8e72b966ae303
drh [Tue, 25 Feb 2014 21:55:16 +0000 (21:55 +0000)]
Do not allow temporary registers to be in use across an OP_Yield within a
co-routine. Fix for ticket [
8c63ff0eca81a9132d8 ].
FossilOrigin-Name:
97a8c9733cba97c78e979dfd5c66610c23e90288
dan [Tue, 25 Feb 2014 21:01:25 +0000 (21:01 +0000)]
Attempt to speed up sqlite3VdbeRecordCompare() by various means. This code is in an interim state.
FossilOrigin-Name:
85206e0bbac29adab52bef795f6d1479f2ae2c0e
drh [Tue, 25 Feb 2014 18:12:58 +0000 (18:12 +0000)]
Also adjust the order of files in the amalgamation to ensure that
_FILE_OFFSET_BITS is defined before any #include, for QNX.
FossilOrigin-Name:
23001a85cd334090cf6c70d4d7e722a01f4f6899
drh [Tue, 25 Feb 2014 14:52:01 +0000 (14:52 +0000)]
QNX requires that _FILE_OFFSET_BITS be set prior to any system #include.
FossilOrigin-Name:
953cdd6adadfd46b51ad61d7939cecca154a02cb
mistachkin [Mon, 24 Feb 2014 21:42:33 +0000 (21:42 +0000)]
Fix several small style/consistency issues with the previous check-in.
FossilOrigin-Name:
2477b3a294beb35f806a38f3ebc008942ba01617
mistachkin [Mon, 24 Feb 2014 21:23:07 +0000 (21:23 +0000)]
Merge updates from trunk.
FossilOrigin-Name:
854d410ad3a2bb3af5465d933ac9535fe3f22bfe
mistachkin [Mon, 24 Feb 2014 21:20:25 +0000 (21:20 +0000)]
Enhance testing support for the Win32 VFS dynamic extension loading facilities.
FossilOrigin-Name:
53081e7202fb55f792a78e73627466eb0200f11c
dan [Mon, 24 Feb 2014 19:49:36 +0000 (19:49 +0000)]
Close some stray connections in walro.test.
FossilOrigin-Name:
d6746cabaa22429644c956a4b5fd91896376de2d
drh [Mon, 24 Feb 2014 19:07:51 +0000 (19:07 +0000)]
In memsys5, initialize new allocations to non-zero bytes. Change the content
of freed allocations to prevent use after free. These changes in SQLITE_DEBUG
only.
FossilOrigin-Name:
ba5f0a5599dece6d8f3dfe652800c28875c74a24
drh [Mon, 24 Feb 2014 14:24:01 +0000 (14:24 +0000)]
Remove an unused variable from the VDBE_PROFILE compile-time option. Keep the
opcode count in an u32 instead of an int.
FossilOrigin-Name:
4df0ac9023d9261145a4425a508ba009a10276fc
mistachkin [Fri, 21 Feb 2014 05:44:18 +0000 (05:44 +0000)]
Better loadable extension handling in the Win32 VFS when compiled for Cygwin.
FossilOrigin-Name:
6676475c47558a52cb2632e92a541e13d143b2dc
drh [Thu, 20 Feb 2014 19:42:00 +0000 (19:42 +0000)]
Fix the text of a comment used to generate VDBE opcode documentation so that
it omits symbols that can be mistaken for a hyperlink by the parser.
FossilOrigin-Name:
b46d4e8923e6e367412bba7aeac07039bbcbabd1
drh [Thu, 20 Feb 2014 19:32:38 +0000 (19:32 +0000)]
Fix a harmless shadowed-variable warning.
FossilOrigin-Name:
824029090d1c4c4c608f67dd197961eba29c039d
drh [Thu, 20 Feb 2014 19:23:15 +0000 (19:23 +0000)]
Make sure that the difference between two string pointers is passed into
sqlite3_mprintf() as type "int".
FossilOrigin-Name:
d5d973fedcf5a2eea219f10e11ba3dacdd0593f0
drh [Wed, 19 Feb 2014 19:14:34 +0000 (19:14 +0000)]
Add the VdbeCoverageNeverTaken() macro, and comments that better describe how
the VDBE branch coverage measurement works. Add some tags to provide 100%
VDBE branch coverage.
FossilOrigin-Name:
c1e94169dd8eb80b4d18c73be9f81585330d11ad
drh [Wed, 19 Feb 2014 14:20:49 +0000 (14:20 +0000)]
Add the SQLITE_NOTNULL P5 code for comparison operations - really a composite
of SQLITE_NULLEQ and SQLITE_JUMPIFNULL. This flag indicates that NULL operands
are not possible and raises and assert() if NULL operands are seen.
Also omit an unnecessary scan of the sqlite_sequence table when writing
into an AUTOINCREMENT table.
FossilOrigin-Name:
d2c047f304848e49864ed8c216b48fd671fa3916
drh [Wed, 19 Feb 2014 01:31:02 +0000 (01:31 +0000)]
Make sure a multi-row VALUES clause works correctly in a compound SELECT.
FossilOrigin-Name:
85b355cfb40e8dbeb171980204ffad897184063f
drh [Wed, 19 Feb 2014 00:53:46 +0000 (00:53 +0000)]
Tweaks in support of VDBE branch test coverage.
FossilOrigin-Name:
b97825646996792d0a67b83f135658027c8569ca
drh [Tue, 18 Feb 2014 11:31:59 +0000 (11:31 +0000)]
Fix VDBE branch accounting on comparison operators.
FossilOrigin-Name:
b287520c9226f7a9fab98142f5c207bfe959cd7e
drh [Tue, 18 Feb 2014 03:07:12 +0000 (03:07 +0000)]
Add VdbeCoverage() and VdbeCoverageIf() macros for improved VDBE coverage
testing.
FossilOrigin-Name:
b92d31a97d5fe4606d9ae1393c7f3e052f46bf5a
drh [Tue, 18 Feb 2014 01:07:38 +0000 (01:07 +0000)]
Improvements to "NOT IN (SELECT ...)" processing. Only test for NULL values
on the RHS on the first iteration, then remember the result. There has been
logic to do this for year, but it didn't work right and ended up repeating
the NULL test on every iteration. This inefficiency was found using the
VDBE coverage testing tools.
FossilOrigin-Name:
915f6f1c7aab54583729e60bdc1565f25ecc6f74
drh [Mon, 17 Feb 2014 23:52:13 +0000 (23:52 +0000)]
Merge in performance enhancements for INSERT operations, especially INSERTs
on tables that have no affinity columns or that have many indices or INSERTs
with content coming from a SELECT. Add the SQLITE_TESTCTRL_VDBE_COVERAGE
test control and the SQLITE_VDBE_COVERAGE compile-time option used for measure
coverage of branches in VDBE programs.
FossilOrigin-Name:
a72687699ba2af2e7383be7371d4121750c7e34f
drh [Mon, 17 Feb 2014 22:40:43 +0000 (22:40 +0000)]
Add logic to do test coverage measurements on the VDBE code.
FossilOrigin-Name:
ce184c7bb16988641d37c908d9b3042456d4be3d