]>
git.ipfire.org Git - thirdparty/sqlite.git/log
mistachkin [Sat, 9 Nov 2013 21:11:36 +0000 (21:11 +0000)]
Use the UNICODE_STRING_MAX_CHARS constant from WinNT.h.
FossilOrigin-Name:
3fefe4dd43539ec7e525ef58f0bfeffd31288ebd
mistachkin [Sat, 9 Nov 2013 21:10:47 +0000 (21:10 +0000)]
Furhter cleanup of the winGetTempname function.
FossilOrigin-Name:
674de36bcaafc1130b7603e69616c71fc8cd7de7
mistachkin [Fri, 8 Nov 2013 20:10:57 +0000 (20:10 +0000)]
Add more assert() statements and fix compilation issues when the Win32 native heap is not enabled.
FossilOrigin-Name:
fbf8c3828327d19bbce0d7f6735e7577abfd54b3
mistachkin [Fri, 8 Nov 2013 19:51:12 +0000 (19:51 +0000)]
Disable use of HeapCompact on Windows CE as it is not available on all versions.
FossilOrigin-Name:
e9694b877178572665048d1015ca033c469160e7
mistachkin [Fri, 8 Nov 2013 18:52:45 +0000 (18:52 +0000)]
Adjust the winMemInit return code handling used when resetting the Win32 native heap.
FossilOrigin-Name:
37853665e75fc92b4d15e6db0b3346722527e799
mistachkin [Fri, 8 Nov 2013 18:37:02 +0000 (18:37 +0000)]
Minor corrections to logging for sqlite3_win32_compact_heap().
FossilOrigin-Name:
71347d021bea90ad7e4cc0d3e54940ce29b9ea69
mistachkin [Fri, 8 Nov 2013 18:13:48 +0000 (18:13 +0000)]
Enhancements to the Win32 native heap integration.
FossilOrigin-Name:
c54dc9672b686c8e323eac0c33cd90ea89d36364
drh [Fri, 8 Nov 2013 17:13:23 +0000 (17:13 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
0077c0772a884b54d81fa3733aac6f0c364ef1a8
drh [Fri, 8 Nov 2013 17:03:50 +0000 (17:03 +0000)]
Merge the Cygwin directory separator fix. Also fix a C++-ism in the
multiplexor code so that it will compile on MSVC.
FossilOrigin-Name:
830629d31d171155d90ff87ae8e70094d17bb2d3
drh [Fri, 8 Nov 2013 16:54:56 +0000 (16:54 +0000)]
Performance improvement: Avoid unnecessary seeks on REPLACE INTO for a
WITHOUT ROWID table.
FossilOrigin-Name:
fd11afa5f5c853dcac2290444b581a3fe1d4332d
drh [Fri, 8 Nov 2013 15:19:46 +0000 (15:19 +0000)]
Performance improvements:
Avoid unnecessary seeks when doing a single-row UPDATE on a WITHOUT ROWID
table.
FossilOrigin-Name:
6f187a0fb1b09ebc4732c4afbf3c813f82e069f1
drh [Fri, 8 Nov 2013 12:14:50 +0000 (12:14 +0000)]
Merge change to drop the mutex on the multiplexor before entering the xRead
VFS call, in order to enhance parallelizability.
FossilOrigin-Name:
3c566e41e4c9c66960cc5a3ddee8556835237999
drh [Fri, 8 Nov 2013 01:09:15 +0000 (01:09 +0000)]
Optimize out a NotExists/NotFound opcode that occurs in UPDATE processing
after constraint checks if there is no possiblity that the constraint checking
code might have moved the cursor.
FossilOrigin-Name:
74e3ee2ee6ea89af2c12dd0bce248467fd0f1310
drh [Fri, 8 Nov 2013 00:16:58 +0000 (00:16 +0000)]
On the --summary output of wordcount, add the a PRAGMA integrity_check and
a 64-bit checksum of the entire table.
FossilOrigin-Name:
1d1d13b89056903543c909b094030d205473fa82
drh [Thu, 7 Nov 2013 23:23:27 +0000 (23:23 +0000)]
Add many new options to the wordcount test program: --delete, --pagesize,
--cachesize, --commit, --nosync, and --journal.
FossilOrigin-Name:
e938112d316ca31460f247cc104ca3ff1d60b4da
mistachkin [Thu, 7 Nov 2013 22:11:55 +0000 (22:11 +0000)]
Fix temporary directory separator handling for Cygwin.
FossilOrigin-Name:
9d870d5f0d8f02e5c91396a1f98b5ddb56b40b70
drh [Thu, 7 Nov 2013 21:32:16 +0000 (21:32 +0000)]
Fix a compiler warning introduced by the previous check-in.
FossilOrigin-Name:
404bd98fb41f71d041932d68a908570995825ec1
drh [Thu, 7 Nov 2013 21:25:13 +0000 (21:25 +0000)]
Enable the WHERE_ONEPASS_DESIRED optimization for UPDATE operations on
WITHOUT ROWID tables.
FossilOrigin-Name:
215307985590c2f3f7aa0d5a0b7799155a506045
drh [Thu, 7 Nov 2013 19:43:21 +0000 (19:43 +0000)]
Add the --stats and --summary options to the wordcount.c test program.
FossilOrigin-Name:
8aa21e6791d408c8f018bd779e09cb7e7179f884
drh [Thu, 7 Nov 2013 18:40:39 +0000 (18:40 +0000)]
Increase the version number to 3.8.2.
FossilOrigin-Name:
9ad5b74c26c5a18068a2418a2092a05c226912c2
drh [Thu, 7 Nov 2013 18:37:31 +0000 (18:37 +0000)]
Add the "wordcount.c" test program.
FossilOrigin-Name:
f02ee5463084cef45ae412c51211b66de7e86baf
drh [Thu, 7 Nov 2013 16:08:10 +0000 (16:08 +0000)]
Add support for WITHOUT ROWID tables. This change also includes
(1) standardization of the error message returned from run-time constraint
errors, (2) improved EXPLAIN comments, (3) the SQLITE_ENABLE_EXPLAIN_COMMENTS
option, (4) the SQLITE_ENABLE_MODULE_COMMENTS option, and (5) a bug fix
(see [
573cc27427 ]) in the handling of REPLACE on the rowid when secondary
indices use FAIL or IGNORE.
FossilOrigin-Name:
c80e229dd9c1230abefbc707d4bf0b24315c6bb5
drh [Thu, 7 Nov 2013 14:09:39 +0000 (14:09 +0000)]
Make sure cached KeyInfo objects are only valid for a single database
connection. Clear all cached KeyInfo objects on any collating sequence
change.
FossilOrigin-Name:
55eea1782aead6a6aaf93f14d85486f8fd2209ad
drh [Wed, 6 Nov 2013 19:59:23 +0000 (19:59 +0000)]
Reference count the KeyInfo object. Cache a copy of an appropriate KeyInfo
for each index in the Index object, and reuse that one copy as much as possible.
FossilOrigin-Name:
defd5205a7cc3543cdd18f906f568e943b8b3a2c
dan [Wed, 6 Nov 2013 16:28:59 +0000 (16:28 +0000)]
Have the OP_NoConflict opcode set the VdbeCursor.seekResult variable. This speeds up subsequent OP_Insert and OP_IdxInsert opcodes.
FossilOrigin-Name:
474555002d45f8741faceea599c057eef4e7931e
dan [Wed, 6 Nov 2013 14:52:40 +0000 (14:52 +0000)]
Use ansi escape codes to use different colored text for opcode names in the output of [explain_i]: Red for opcodes that insert or delete b-tree elements, blue for opcodes that move cursors and green for the ResultRow opcode.
FossilOrigin-Name:
4be2b64b3e5237ee1fb156c06cffaf7d96f6c532
drh [Wed, 6 Nov 2013 14:36:08 +0000 (14:36 +0000)]
Allocate extra stack space for UnpackedRecord objects, reducing the need
to malloc for them as often, and thereby get a performance improvement.
FossilOrigin-Name:
a725a75f870d7d9b21946fbcc71a956492986ab0
drh [Wed, 6 Nov 2013 14:05:21 +0000 (14:05 +0000)]
Minor optimization to the OP_Halt opcode.
FossilOrigin-Name:
d70c78814ba565a44628eab61a3a0a5dba56269a
drh [Wed, 6 Nov 2013 12:56:04 +0000 (12:56 +0000)]
Improved ORDER BY optimization for WITHOUT ROWID tables.
FossilOrigin-Name:
8f1709ff2d52d5ceca3da6a2a4e06da204d9e65a
drh [Wed, 6 Nov 2013 12:05:57 +0000 (12:05 +0000)]
Disable the OR optimization for WITHOUT ROWID tables, since it relies on
the use of rowids.
FossilOrigin-Name:
6055dad2ba2f9256b1f2d0a9e32ca00f1b81b0cf
drh [Wed, 6 Nov 2013 11:46:48 +0000 (11:46 +0000)]
Remove an incorrect test case from conflict2.test.
FossilOrigin-Name:
427612efc169c8ebe94a8b586d7abd0fcd43d0d0
drh [Wed, 6 Nov 2013 02:36:04 +0000 (02:36 +0000)]
Remove an unused variable.
FossilOrigin-Name:
e9c1e419b7227d86f2e1882cebf360116cdf1a13
drh [Tue, 5 Nov 2013 22:39:17 +0000 (22:39 +0000)]
Make sure the query planner knows that the PRIMARY KEY index of a
WITHOUT ROWID table is always a covering index.
FossilOrigin-Name:
03e7019e14255dbeb85bb299569c82ef48ac4a98
drh [Tue, 5 Nov 2013 19:41:32 +0000 (19:41 +0000)]
Fix conflict handling for the case when the rowid uses REPLACE but other
unique constraints use FAIL or IGNORE.
FossilOrigin-Name:
573cc27427af297185f11aac8dce88ca31f471ca
drh [Tue, 5 Nov 2013 17:30:04 +0000 (17:30 +0000)]
Fix a bug in secondary index initialization when the secondary index is
a superset of the PRIMARY KEY for a WITHOUT ROWID table.
FossilOrigin-Name:
52a3d885192c5d31f956c5ee17e29e2d1f3d5c9f
dan [Tue, 5 Nov 2013 16:56:11 +0000 (16:56 +0000)]
Remove an "explain" command from test script without_rowid1.test that was accidentally committed.
FossilOrigin-Name:
4b41d989e894b9214a9b973228ef8446356f9fbb
dan [Tue, 5 Nov 2013 16:39:31 +0000 (16:39 +0000)]
Unless the destination table is completely empty, disable the xfer optimization for WITHOUT ROWID tables.
FossilOrigin-Name:
3877c9f50582b51817dcf3cd75d836891a34e590
dan [Tue, 5 Nov 2013 15:02:39 +0000 (15:02 +0000)]
Updates to the backcompat.test test script so that it works with really old (3.6.*) versions.
FossilOrigin-Name:
ace7e7b64261aeabc9525d5d0cfebe0275c9ddf5
dan [Tue, 5 Nov 2013 14:19:22 +0000 (14:19 +0000)]
Add tests for updates of without-rowid tables that use non-BINARY collation sequences for the primary key columns. And a minor bugfix to the same.
FossilOrigin-Name:
99b1fa4b1664a79eae1dddce2b9a848384cdb1d7
drh [Tue, 5 Nov 2013 13:33:55 +0000 (13:33 +0000)]
Standardize the error messages generated by constraint failures to a format
of "$TYPE constraint failed: $DETAIL". This involves many changes to the
expected output of test cases.
FossilOrigin-Name:
54b221929744b1bcdbcc2030fef2e510618afd41
drh [Tue, 5 Nov 2013 01:59:07 +0000 (01:59 +0000)]
Add the conflict2.test script. Fix issues discovered by this script.
FossilOrigin-Name:
294ed33756b06375e56c41f1088d42ee48adbdc8
drh [Mon, 4 Nov 2013 22:04:17 +0000 (22:04 +0000)]
Add the index7.test script for testing partial indices with WITHOUT ROWID
tables. Fix bugs in ANALYZE located by that script.
FossilOrigin-Name:
79befe3ac1f676272b78423b9aa5dac41435420e
drh [Mon, 4 Nov 2013 21:44:54 +0000 (21:44 +0000)]
Bug fixes in the INSERT constraint checker. Refactor the Rowid handling logic
for ANALYZE with STAT3/4.
FossilOrigin-Name:
1ea43c0f236792a3bc13e1cb330f5ff3402c2851
drh [Mon, 4 Nov 2013 18:34:46 +0000 (18:34 +0000)]
Add another test case file for WITHOUT ROWID and fix the bugs that the new
test file uncovered.
FossilOrigin-Name:
bc2a06eb8e57573d08e77800a7937eee5af3f035
drh [Mon, 4 Nov 2013 17:00:50 +0000 (17:00 +0000)]
Fix a problem with processing INTEGER PRIMARY KEY on a WITHOUT ROWID table.
FossilOrigin-Name:
89098e6d18dacd1554cf4471b5f035db85d1f327
drh [Mon, 4 Nov 2013 15:23:25 +0000 (15:23 +0000)]
Correctly handle changing counting when inserting and deleting on
WITHOUT ROWID tables. Add more FOREIGN KEY test cases.
FossilOrigin-Name:
d072bcd0a8692d590c13c2bf458454c10c12a3e2
drh [Mon, 4 Nov 2013 13:56:00 +0000 (13:56 +0000)]
Correctly handle self-referential foreign keys on WITHOUT ROWID tables.
FossilOrigin-Name:
af128862ab6008df9dda1ee90f93f9efd629e259
dan [Mon, 4 Nov 2013 08:56:22 +0000 (08:56 +0000)]
Fix a bug preventing FTS from correctly processing bracket tokens that are immediately preceded by characters that are neither whitespace or token characters.
FossilOrigin-Name:
49be646cd981f8ff0434cf90d2748afa30260017
drh [Sun, 3 Nov 2013 02:27:58 +0000 (02:27 +0000)]
Improved comments on foreign key logic.
FossilOrigin-Name:
1315d9109c7105f4a62bb2d43ca6948d41245129
drh [Sat, 2 Nov 2013 22:29:34 +0000 (22:29 +0000)]
Improved Synopsis on register comparison operators. Fix a bug on the
constraint check generator.
FossilOrigin-Name:
a7a18b65fa34dfdf6117fa21db3e576f96876617
drh [Sat, 2 Nov 2013 22:09:48 +0000 (22:09 +0000)]
Many new test cases added, that mostly work. Currently 18 errors in
without_rowid3.test. Also there is a hack marked by a /*FIXME*/ comment
on at fkey.c:547 that needs fixing.
FossilOrigin-Name:
39e32187b66405e00dbd44685f6cdd269c90f5e5
drh [Sat, 2 Nov 2013 19:34:38 +0000 (19:34 +0000)]
Change the "idx" name of the primary key index for WITHOUT ROWID tables in
sqlite_statN statistics tables to be the name of the table rather than the
fabricated index name (ex: sqlite_autoindex_xyz_1). This makes it consistent
with sqlite_master table.
FossilOrigin-Name:
4ee4d3106308508a58b80e54e0afb4afb42f510b
drh [Sat, 2 Nov 2013 18:46:04 +0000 (18:46 +0000)]
Update the ANALYZE logic so that it works with WITHOUT ROWID tables.
FossilOrigin-Name:
9075770e4030b35677fbbe291f3c3c4946937a9a
drh [Sat, 2 Nov 2013 14:37:18 +0000 (14:37 +0000)]
Store the root page of the PRIMARY KEY index for a WITHOUT ROWID table in
the sqlite_master entry for the main table and omit the sqlite_master entry
for the PRIMARY KEY.
FossilOrigin-Name:
b7544bb280f1c1c55135a9b35aeb85604fef94a3
drh [Sat, 2 Nov 2013 11:43:05 +0000 (11:43 +0000)]
Import the sqlite3_analyzer fixes from trunk.
FossilOrigin-Name:
ac711459ff243e787ea5e9c01720dff75a5eda9b
drh [Sat, 2 Nov 2013 11:34:58 +0000 (11:34 +0000)]
A pair of sqlite3_analyzer bug fixes: (1) quote strings in the SQL at the end
of the output. (2) Fix test_stat.c so that it no longer misses some overflow
pages on internal index pages.
FossilOrigin-Name:
42a11e7464ab1d97d603c7409f10710ad4f1f542
drh [Fri, 1 Nov 2013 22:02:56 +0000 (22:02 +0000)]
Size KeyInfo objects so that IdxInserts always compare the correct number of
fields.
FossilOrigin-Name:
302a81390f039fc23eeb8510e95b9d9fa0b41edd
drh [Fri, 1 Nov 2013 20:30:36 +0000 (20:30 +0000)]
Fix sqlite3_analyzer so that it works with WITHOUT ROWID tables.
Fix index generation for secondary indices that include fields from
the PRIMARY KEY.
FossilOrigin-Name:
f9769d701c65770f4b8488f541c59e508393e6c2
drh [Fri, 1 Nov 2013 18:14:36 +0000 (18:14 +0000)]
Additional UPDATE test cases for WITHOUT ROWID.
FossilOrigin-Name:
65384ae0f027d05cf9208faed56575870d63c486
drh [Fri, 1 Nov 2013 17:59:53 +0000 (17:59 +0000)]
Fix an invalid cast operation in the WITHOUT ROWID parsing logic.
FossilOrigin-Name:
845153be36d5ca0ca9d930c56418fb080d906740
drh [Fri, 1 Nov 2013 17:21:29 +0000 (17:21 +0000)]
Merge all changes from trunk, and disable a pair of corruption tests that are
no longer valid since sqlite_master.rootpage can now be NULL for tables.
FossilOrigin-Name:
dd5d57b9a1b25fb6c9e20024e519b58630cf1fd0
drh [Fri, 1 Nov 2013 17:08:56 +0000 (17:08 +0000)]
Change the interface to sqlite3GenerateConstraintChecks() for improved lucidity
and to fix issues in dealing with UPDATEs for WITHOUT ROWID tables. Make sure
iDataCur and iIdxCur are initialized when processing DELETEs of a VIEW.
UPDATE processing distinguishes between changes to ROWID and PRIMARY KEY.
FossilOrigin-Name:
c525ac5630d6bcd51842cfc84f2c2c50be9cec1c
drh [Fri, 1 Nov 2013 14:03:20 +0000 (14:03 +0000)]
Improved VDBE comments on the constraint checker. Fix a missing write
lock in the UPDATE logic.
FossilOrigin-Name:
3bed599e74d354bf1513e4fb0e8665376ba44d0b
drh [Fri, 1 Nov 2013 12:42:21 +0000 (12:42 +0000)]
Some UPDATE statements now working in WITHOUT ROWID tables.
FossilOrigin-Name:
5c0eaea6a26b5c3310d96b3c896ac3068a3ebad1
drh [Fri, 1 Nov 2013 01:45:46 +0000 (01:45 +0000)]
A couple of bug fixes.
FossilOrigin-Name:
cdf00248cf8f7e3c2a3f2f5514273fbacc6fc8d9
drh [Thu, 31 Oct 2013 20:34:06 +0000 (20:34 +0000)]
Fix the Synopsis on OP_Concat. Added test_addop_breakpoint() during
SQLITE_DEBUG. Enhanced sqlite3VdbeChangeToNoop() to omit the instruction
if it is the most recent added. Continue to fix problems with UPDATE
and WITHOUT ROWID.
FossilOrigin-Name:
9b6d9e106aaa3c2efb33d234d26cf08cd3c967b9
dan [Thu, 31 Oct 2013 18:49:58 +0000 (18:49 +0000)]
Fix a problem in os_unix.c causing compilation failure if SQLITE_DEBUG and SQLITE_MAX_MMAP_SIZE=0 are both defined.
FossilOrigin-Name:
090db8c81d8ca216277d11c8c4751c0a37801524
drh [Thu, 31 Oct 2013 17:38:01 +0000 (17:38 +0000)]
Fix issues with quering from an auxiliary index that must refer back to the
PRIMARY KEY index of a WITHOUT ROWID table.
FossilOrigin-Name:
cff1f55c52ff57557d9b728a5cd830a367091794
drh [Thu, 31 Oct 2013 15:37:49 +0000 (15:37 +0000)]
Improved comments and variable names in infrastructure routines of UPDATE,
DELETE, and INSERT.
FossilOrigin-Name:
ad90e762e51384ac7c311f08a641419f03f6d3f0
drh [Thu, 31 Oct 2013 12:13:37 +0000 (12:13 +0000)]
Moving UPDATE towards the iDataCur/iIdxCur representation. Still not working
for WITHOUT ROWID, though.
FossilOrigin-Name:
deacbd21b50cc8c63a1572d14a4bbc7af4052d37
drh [Thu, 31 Oct 2013 11:15:09 +0000 (11:15 +0000)]
Refactor the INSERT, DELETE, and UPDATE code generators to distinguish between
the "data cursor" and the "first index cursor", which are no longer consecutive
in the case of a WITHOUT ROWID table.
FossilOrigin-Name:
1adfca6019847d37dee4a297669f29d5ca184066
mistachkin [Thu, 31 Oct 2013 06:39:15 +0000 (06:39 +0000)]
Update comments in the MSVC batch build tool.
FossilOrigin-Name:
0414bb73ef83332bec3d06471d431690356dbe13
mistachkin [Thu, 31 Oct 2013 06:13:57 +0000 (06:13 +0000)]
Enable some more tests on Windows.
FossilOrigin-Name:
72389c295bb240ec76746e289403b82e04189903
mistachkin [Thu, 31 Oct 2013 06:11:10 +0000 (06:11 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
1a0a88657f54874703fc05f828ce29ad115d9f28
drh [Wed, 30 Oct 2013 20:22:55 +0000 (20:22 +0000)]
Continue working to get UPDATE operational for WITHOUT ROWID tables.
Fix PRAGMA integrity_check so that it works on WITHOUT ROWID tables.
FossilOrigin-Name:
0d4fea7462c0f61cd1c736cbcd7bea5ec2034d54
drh [Wed, 30 Oct 2013 15:52:32 +0000 (15:52 +0000)]
Make sure KeyInfo objects on multi-column indices of WITHOUT ROWID tables
have the correct nField and nXField values. Also, add the
SQLITE_ENABLE_MODULE_COMMENT compile-time option and the VdbeModuleComment()
macro and use it to label entry and exit points of some key routines.
FossilOrigin-Name:
6d9af6065fc0da8337aee2297a8da7511eecccf1
drh [Wed, 30 Oct 2013 13:46:01 +0000 (13:46 +0000)]
In the P4 column of the EXPLAIN listing, abbreviate "keyinfo" as just "k" and
"BINARY" as just "B".
FossilOrigin-Name:
72d45eb79b5d0505050cff57a00d725948b2a0c0
drh [Wed, 30 Oct 2013 12:43:36 +0000 (12:43 +0000)]
Enhance the timer in the shell to show wall-clock time in addition
to user and kernel CPU time.
FossilOrigin-Name:
908e2c2124baece578e7a665f42b6b483b8f1d64
drh [Wed, 30 Oct 2013 03:25:45 +0000 (03:25 +0000)]
Add the "Esri Spatially-Enabled Database" file format to the magic.txt file.
FossilOrigin-Name:
8530a18f40c8f938da880306d6d9f762c2e4c6a7
drh [Wed, 30 Oct 2013 02:37:50 +0000 (02:37 +0000)]
Merge EXPLAIN enhancements from trunk.
FossilOrigin-Name:
2fcac056074f0a23884ab5425003a7ca1d35c2a8
drh [Wed, 30 Oct 2013 02:28:23 +0000 (02:28 +0000)]
Add the SQLITE_ENABLE_EXPLAIN_COMMENTS compile-time option to enable extra
commentary in the EXPLAIN output. Formerly, this was only available with
SQLITE_DEBUG.
FossilOrigin-Name:
e1a89b56f7173166bb9224e2e360fd67ad3399c3
drh [Wed, 30 Oct 2013 00:25:03 +0000 (00:25 +0000)]
Enhanced display of register ranges in the auxiliary comments added to EXPLAIN.
FossilOrigin-Name:
d6b0c39281d0751ecec04d7c19d9d2931d133e8e
drh [Tue, 29 Oct 2013 20:47:26 +0000 (20:47 +0000)]
Import the automatic comment generating changes from trunk.
FossilOrigin-Name:
8bb51da1305d5e35c7b75bbb176c21e04ea2a48a
drh [Tue, 29 Oct 2013 20:40:47 +0000 (20:40 +0000)]
Automatically generated comments on many VDBE opcodes when in SQLITE_DEBUG
most. Comments derive from the "Synopsis:" field added to each opcode
definition in vdbe.c.
FossilOrigin-Name:
5f310c6a22b8bb5f860296074aee130c14101681
drh [Tue, 29 Oct 2013 16:14:35 +0000 (16:14 +0000)]
Improved comments on the constraint checking logic.
FossilOrigin-Name:
141a38a7a636e3e4255b59c27df4a1b3d6f26e97
drh [Mon, 28 Oct 2013 22:39:53 +0000 (22:39 +0000)]
Merge recent fixes from trunk.
FossilOrigin-Name:
9f8191d1d833acaaf612fdff8cc6bd544c042986
drh [Mon, 28 Oct 2013 22:33:36 +0000 (22:33 +0000)]
Formatting improvements to the WHERE-clause constraint display in the
wheretrace debugging logic.
FossilOrigin-Name:
3a9e3ed94bf617f00c48009b1a6d348a8f23a3cf
drh [Mon, 28 Oct 2013 20:38:52 +0000 (20:38 +0000)]
Add regression tests for ticket [
c620261b5b5 ].
FossilOrigin-Name:
05a35b09b140fed0898afd36bc641e275545a35f
drh [Mon, 28 Oct 2013 20:15:56 +0000 (20:15 +0000)]
Do not use transitive WHERE-clause constraints on LEFT JOINs.
Fix for ticket [
c620261b5b5dc ].
FossilOrigin-Name:
9aac4e588cbce55c1098321bcd042d5b04036893
drh [Mon, 28 Oct 2013 19:59:59 +0000 (19:59 +0000)]
More wheretrace debugging support: Show a listing of all WHERE clause
terms (on wheretrace bit 0x100) and include important flags such as
TERM_VIRTUAL, WO_EQUIV, and EP_FromJoin.
FossilOrigin-Name:
92ccd705411ce3f64720ab5f34c7efc9cb46d5c9
drh [Mon, 28 Oct 2013 19:03:21 +0000 (19:03 +0000)]
Bug fix and enhancements to the improved wheretrace logic that shows the
constraint expressions.
FossilOrigin-Name:
10f125f5da55eca15e68c74d62ab7d37bbbbfb5f
drh [Mon, 28 Oct 2013 14:34:35 +0000 (14:34 +0000)]
Improved "wheretrace" capabilities: Show the constraint expression if the
wheretrace flag has the 0x100 bit set and if compiled with
SQLITE_ENABLE_TREE_EXPLAIN.
FossilOrigin-Name:
710a18ac7916cb688955505d7d461b461f563155
drh [Sat, 26 Oct 2013 15:40:48 +0000 (15:40 +0000)]
Work on the UPDATE and INSERT logic. This is an incremental check-in so that
can switch over to trunk to work on an unrelated issue there.
FossilOrigin-Name:
086ec2a177b24ad90d5d705a99d93aa0c1545217
drh [Sat, 26 Oct 2013 13:36:51 +0000 (13:36 +0000)]
Replace the OP_IsUnique opcode with OP_NoConflict. This code simplification
might be useful to move onto trunk even if this branch is never merged.
FossilOrigin-Name:
e6650e16dd11327afd25961b2feb29ec8778c2ca
drh [Sat, 26 Oct 2013 00:58:34 +0000 (00:58 +0000)]
Minor refactoring of variable names and fixes to comments in insert.c.
FossilOrigin-Name:
ae61a34378d3ed2f454ba8768029d6f5fef849e4
drh [Fri, 25 Oct 2013 19:17:17 +0000 (19:17 +0000)]
Progress toward getting UPDATE to work in WITHOUT ROWID tables.
FossilOrigin-Name:
e557b7d80f1ede63427a31b16757bf5d8dbfb66d
drh [Fri, 25 Oct 2013 14:46:15 +0000 (14:46 +0000)]
Basic DELETE operations now working on WITHOUT ROWID tables.
FossilOrigin-Name:
9eafafa31c4a2bbcf48418743e0fcb17c374e9a6
drh [Thu, 24 Oct 2013 19:48:39 +0000 (19:48 +0000)]
Update the interface to the sqlite3GenerateRowDelete() utility so that it is
able to handle WITHOUT ROWID tables. The implementation still needs to be
completed.
FossilOrigin-Name:
85daf5174679630474b3bccf3d662d5d56bf00d5
drh [Thu, 24 Oct 2013 15:20:20 +0000 (15:20 +0000)]
Add the ".open" command to the command-line shell.
FossilOrigin-Name:
21eccb919441bd111ba414dde3f00862822e2c99
drh [Thu, 24 Oct 2013 14:16:10 +0000 (14:16 +0000)]
Delete PRIMARY KEY index entries last. Only construct the unique prefix of
an index key when deleting entries from an index.
FossilOrigin-Name:
0e56ba69f0fcd12a5166c32f6e4eacdcc29fba04