]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoMake sure cached KeyInfo objects are only valid for a single database omit-rowid
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

11 years agoReference count the KeyInfo object. Cache a copy of an appropriate KeyInfo
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

11 years agoHave the OP_NoConflict opcode set the VdbeCursor.seekResult variable. This speeds...
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

11 years agoUse ansi escape codes to use different colored text for opcode names in the output...
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

11 years agoAllocate extra stack space for UnpackedRecord objects, reducing the need
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

11 years agoMinor optimization to the OP_Halt opcode.
drh [Wed, 6 Nov 2013 14:05:21 +0000 (14:05 +0000)] 
Minor optimization to the OP_Halt opcode.

FossilOrigin-Name: d70c78814ba565a44628eab61a3a0a5dba56269a

11 years agoImproved ORDER BY optimization for WITHOUT ROWID tables.
drh [Wed, 6 Nov 2013 12:56:04 +0000 (12:56 +0000)] 
Improved ORDER BY optimization for WITHOUT ROWID tables.

FossilOrigin-Name: 8f1709ff2d52d5ceca3da6a2a4e06da204d9e65a

11 years agoDisable the OR optimization for WITHOUT ROWID tables, since it relies on
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

11 years agoRemove an incorrect test case from conflict2.test.
drh [Wed, 6 Nov 2013 11:46:48 +0000 (11:46 +0000)] 
Remove an incorrect test case from conflict2.test.

FossilOrigin-Name: 427612efc169c8ebe94a8b586d7abd0fcd43d0d0

11 years agoRemove an unused variable.
drh [Wed, 6 Nov 2013 02:36:04 +0000 (02:36 +0000)] 
Remove an unused variable.

FossilOrigin-Name: e9c1e419b7227d86f2e1882cebf360116cdf1a13

11 years agoMake sure the query planner knows that the PRIMARY KEY index of a
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

11 years agoFix conflict handling for the case when the rowid uses REPLACE but other
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

11 years agoFix a bug in secondary index initialization when the secondary index is
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

11 years agoRemove an "explain" command from test script without_rowid1.test that was accidentall...
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

11 years agoUnless the destination table is completely empty, disable the xfer optimization for...
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

11 years agoUpdates to the backcompat.test test script so that it works with really old (3.6...
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

11 years agoAdd tests for updates of without-rowid tables that use non-BINARY collation sequences...
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

11 years agoStandardize the error messages generated by constraint failures to a format
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

11 years agoAdd the conflict2.test script. Fix issues discovered by this script.
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

11 years agoAdd the index7.test script for testing partial indices with WITHOUT ROWID
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

11 years agoBug fixes in the INSERT constraint checker. Refactor the Rowid handling logic
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

11 years agoAdd another test case file for WITHOUT ROWID and fix the bugs that the new
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

11 years agoFix a problem with processing INTEGER PRIMARY KEY on a WITHOUT ROWID table.
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

11 years agoCorrectly handle changing counting when inserting and deleting on
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

11 years agoCorrectly handle self-referential foreign keys on WITHOUT ROWID tables.
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

11 years agoImproved comments on foreign key logic.
drh [Sun, 3 Nov 2013 02:27:58 +0000 (02:27 +0000)] 
Improved comments on foreign key logic.

FossilOrigin-Name: 1315d9109c7105f4a62bb2d43ca6948d41245129

11 years agoImproved Synopsis on register comparison operators. Fix a bug on the
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

11 years agoMany new test cases added, that mostly work. Currently 18 errors in
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

11 years agoChange the "idx" name of the primary key index for WITHOUT ROWID tables in
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

11 years agoUpdate the ANALYZE logic so that it works with WITHOUT ROWID tables.
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

11 years agoStore the root page of the PRIMARY KEY index for a WITHOUT ROWID table in
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

11 years agoImport the sqlite3_analyzer fixes from trunk.
drh [Sat, 2 Nov 2013 11:43:05 +0000 (11:43 +0000)] 
Import the sqlite3_analyzer fixes from trunk.

FossilOrigin-Name: ac711459ff243e787ea5e9c01720dff75a5eda9b

11 years agoA pair of sqlite3_analyzer bug fixes: (1) quote strings in the SQL at the end
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

11 years agoSize KeyInfo objects so that IdxInserts always compare the correct number of
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

11 years agoFix sqlite3_analyzer so that it works with WITHOUT ROWID tables.
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

11 years agoAdditional UPDATE test cases for WITHOUT ROWID.
drh [Fri, 1 Nov 2013 18:14:36 +0000 (18:14 +0000)] 
Additional UPDATE test cases for WITHOUT ROWID.

FossilOrigin-Name: 65384ae0f027d05cf9208faed56575870d63c486

11 years agoFix an invalid cast operation in the WITHOUT ROWID parsing logic.
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

11 years agoMerge all changes from trunk, and disable a pair of corruption tests that are
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

11 years agoChange the interface to sqlite3GenerateConstraintChecks() for improved lucidity
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

11 years agoImproved VDBE comments on the constraint checker. Fix a missing write
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

11 years agoSome UPDATE statements now working in WITHOUT ROWID tables.
drh [Fri, 1 Nov 2013 12:42:21 +0000 (12:42 +0000)] 
Some UPDATE statements now working in WITHOUT ROWID tables.

FossilOrigin-Name: 5c0eaea6a26b5c3310d96b3c896ac3068a3ebad1

11 years agoA couple of bug fixes.
drh [Fri, 1 Nov 2013 01:45:46 +0000 (01:45 +0000)] 
A couple of bug fixes.

FossilOrigin-Name: cdf00248cf8f7e3c2a3f2f5514273fbacc6fc8d9

11 years agoFix the Synopsis on OP_Concat. Added test_addop_breakpoint() during
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

11 years agoFix a problem in os_unix.c causing compilation failure if SQLITE_DEBUG and SQLITE_MAX...
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

11 years agoFix issues with quering from an auxiliary index that must refer back to the
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

11 years agoImproved comments and variable names in infrastructure routines of UPDATE,
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

11 years agoMoving UPDATE towards the iDataCur/iIdxCur representation. Still not working
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

11 years agoRefactor the INSERT, DELETE, and UPDATE code generators to distinguish between
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

11 years agoUpdate comments in the MSVC batch build tool.
mistachkin [Thu, 31 Oct 2013 06:39:15 +0000 (06:39 +0000)] 
Update comments in the MSVC batch build tool.

FossilOrigin-Name: 0414bb73ef83332bec3d06471d431690356dbe13

11 years agoEnable some more tests on Windows.
mistachkin [Thu, 31 Oct 2013 06:13:57 +0000 (06:13 +0000)] 
Enable some more tests on Windows.

FossilOrigin-Name: 72389c295bb240ec76746e289403b82e04189903

11 years agoFix harmless compiler warnings.
mistachkin [Thu, 31 Oct 2013 06:11:10 +0000 (06:11 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 1a0a88657f54874703fc05f828ce29ad115d9f28

11 years agoContinue working to get UPDATE operational for WITHOUT ROWID tables.
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

11 years agoMake sure KeyInfo objects on multi-column indices of WITHOUT ROWID tables
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

11 years agoIn the P4 column of the EXPLAIN listing, abbreviate "keyinfo" as just "k" and
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

11 years agoEnhance the timer in the shell to show wall-clock time in addition
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

11 years agoAdd the "Esri Spatially-Enabled Database" file format to the magic.txt file.
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

11 years agoMerge EXPLAIN enhancements from trunk.
drh [Wed, 30 Oct 2013 02:37:50 +0000 (02:37 +0000)] 
Merge EXPLAIN enhancements from trunk.

FossilOrigin-Name: 2fcac056074f0a23884ab5425003a7ca1d35c2a8

11 years agoAdd the SQLITE_ENABLE_EXPLAIN_COMMENTS compile-time option to enable extra
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

11 years agoEnhanced display of register ranges in the auxiliary comments added to EXPLAIN.
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

11 years agoImport the automatic comment generating changes from trunk.
drh [Tue, 29 Oct 2013 20:47:26 +0000 (20:47 +0000)] 
Import the automatic comment generating changes from trunk.

FossilOrigin-Name: 8bb51da1305d5e35c7b75bbb176c21e04ea2a48a

11 years agoAutomatically generated comments on many VDBE opcodes when in SQLITE_DEBUG
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

11 years agoImproved comments on the constraint checking logic.
drh [Tue, 29 Oct 2013 16:14:35 +0000 (16:14 +0000)] 
Improved comments on the constraint checking logic.

FossilOrigin-Name: 141a38a7a636e3e4255b59c27df4a1b3d6f26e97

11 years agoMerge recent fixes from trunk.
drh [Mon, 28 Oct 2013 22:39:53 +0000 (22:39 +0000)] 
Merge recent fixes from trunk.

FossilOrigin-Name: 9f8191d1d833acaaf612fdff8cc6bd544c042986

11 years agoFormatting improvements to the WHERE-clause constraint display in the
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

11 years agoAdd regression tests for ticket [c620261b5b5].
drh [Mon, 28 Oct 2013 20:38:52 +0000 (20:38 +0000)] 
Add regression tests for ticket [c620261b5b5].

FossilOrigin-Name: 05a35b09b140fed0898afd36bc641e275545a35f

11 years agoDo not use transitive WHERE-clause constraints on LEFT JOINs.
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

11 years agoMore wheretrace debugging support: Show a listing of all WHERE clause
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

11 years agoBug fix and enhancements to the improved wheretrace logic that shows the
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

11 years agoImproved "wheretrace" capabilities: Show the constraint expression if the
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

11 years agoWork on the UPDATE and INSERT logic. This is an incremental check-in so that
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

11 years agoReplace the OP_IsUnique opcode with OP_NoConflict. This code simplification
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

11 years agoMinor refactoring of variable names and fixes to comments in insert.c.
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

11 years agoProgress toward getting UPDATE to work in WITHOUT ROWID tables.
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

11 years agoBasic DELETE operations now working on WITHOUT ROWID tables.
drh [Fri, 25 Oct 2013 14:46:15 +0000 (14:46 +0000)] 
Basic DELETE operations now working on WITHOUT ROWID tables.

FossilOrigin-Name: 9eafafa31c4a2bbcf48418743e0fcb17c374e9a6

11 years agoUpdate the interface to the sqlite3GenerateRowDelete() utility so that it is
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

11 years agoAdd the ".open" command to the command-line shell.
drh [Thu, 24 Oct 2013 15:20:20 +0000 (15:20 +0000)] 
Add the ".open" command to the command-line shell.

FossilOrigin-Name: 21eccb919441bd111ba414dde3f00862822e2c99

11 years agoDelete PRIMARY KEY index entries last. Only construct the unique prefix of
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

11 years agoRemove an obsolete comment from the VDBE. No code changes.
drh [Thu, 24 Oct 2013 11:55:42 +0000 (11:55 +0000)] 
Remove an obsolete comment from the VDBE.  No code changes.

FossilOrigin-Name: 53bb070c851db02c9d900cb041ab441895ddbfb7

11 years agoCorrectly handle queries that use secondary indices of WITHOUT ROWID tables.
drh [Thu, 24 Oct 2013 00:18:18 +0000 (00:18 +0000)] 
Correctly handle queries that use secondary indices of WITHOUT ROWID tables.

FossilOrigin-Name: d8bc8595301789d0e9de24c391808121905ab559

11 years agoChange the sqlite3OpenTable() utility to open the PRIMARY KEY index when
drh [Wed, 23 Oct 2013 23:37:02 +0000 (23:37 +0000)] 
Change the sqlite3OpenTable() utility to open the PRIMARY KEY index when
reading a WITHOUT ROWID table.

FossilOrigin-Name: 247f389930aededaa54ecb792748aa8d0ad6d57b

11 years agoConstruct secondary indices on WITHOUT ROWID tables.
drh [Wed, 23 Oct 2013 22:23:03 +0000 (22:23 +0000)] 
Construct secondary indices on WITHOUT ROWID tables.

FossilOrigin-Name: 2c028ddc85cb45746cad6ab0cefd99134fbd50d7

11 years agoReport an error when trying to resolve column name "rowid" in a
drh [Wed, 23 Oct 2013 17:39:41 +0000 (17:39 +0000)] 
Report an error when trying to resolve column name "rowid" in a
WITHOUT ROWID table.

FossilOrigin-Name: 36bcc9cb885523fba2f3b0d152de9e08073668c1

11 years agoGet VACUUM and the xfer optimization working with WITHOUT ROWID.
drh [Wed, 23 Oct 2013 16:03:07 +0000 (16:03 +0000)] 
Get VACUUM and the xfer optimization working with WITHOUT ROWID.

FossilOrigin-Name: 579815fff1737552d2077255862b8f4fd220927c

11 years agoSome inserts and queries working for multi-column primary keys
drh [Wed, 23 Oct 2013 13:30:58 +0000 (13:30 +0000)] 
Some inserts and queries working for multi-column primary keys
and WITHOUT ROWID.

FossilOrigin-Name: b21d831b2aa55507dd9def2acb02cdbffddf10d1

11 years agoSome simple inserts and queries working on WITHOUT ROWID tables.
drh [Wed, 23 Oct 2013 01:57:32 +0000 (01:57 +0000)] 
Some simple inserts and queries working on WITHOUT ROWID tables.

FossilOrigin-Name: 3f8016dee24213ec83a02d71ad2698789cc3a818

11 years agoBuild internal data structures appropriately for WITHOUT ROWID tables.
drh [Wed, 23 Oct 2013 00:32:58 +0000 (00:32 +0000)] 
Build internal data structures appropriately for WITHOUT ROWID tables.

FossilOrigin-Name: 35a3606071685aa5196951f4bdddb136589ea216

11 years agoThe Index object now has nKeyCol and nColumn. nColumn is the total number
drh [Tue, 22 Oct 2013 18:01:40 +0000 (18:01 +0000)] 
The Index object now has nKeyCol and nColumn.  nColumn is the total number
of columns and nKeyCol is the number of key columns.  Currently these always
differ by one.  Refactor aiColumn[] to be of type i16 instead of int.

FossilOrigin-Name: a106ce86cd4afd1f81603826de77df1fb25e9ab5

11 years agoAdd a procedure to handle the messy details of allocating an Index object
drh [Tue, 22 Oct 2013 14:28:02 +0000 (14:28 +0000)] 
Add a procedure to handle the messy details of allocating an Index object
from the heap.

FossilOrigin-Name: 45efc94f9a8169433ffcb4aa35760551c55df4c4

11 years agoExtra backwards-compatibility tests verify that UNIQUE and PRIMARY KEY
drh [Tue, 22 Oct 2013 10:23:26 +0000 (10:23 +0000)] 
Extra backwards-compatibility tests verify that UNIQUE and PRIMARY KEY
indices are created in the correct order.  Other backwards-compatibility
tests already cover this, but it does not hurt to double up.

FossilOrigin-Name: 5ca0ea2e9b40a7fa133d2af8a2ecc676de7a8723

11 years agoPrevious refactor is not going to be helpful because implied indices must be
drh [Tue, 22 Oct 2013 01:18:17 +0000 (01:18 +0000)] 
Previous refactor is not going to be helpful because implied indices must be
created in the same order that they appear in the CREATE TABLE statement
for backwards compatibility.  This is a much smaller change to clean up a
few loose ends.

FossilOrigin-Name: 824b549f9b42935609b283d51f6c386da89a08a7

11 years agoImprove support for the SQLITE_OMIT_FLAG_PRAGMAS compile-time option.
mistachkin [Mon, 21 Oct 2013 23:17:23 +0000 (23:17 +0000)] 
Improve support for the SQLITE_OMIT_FLAG_PRAGMAS compile-time option.

FossilOrigin-Name: f1d8c3b07e61c5a8b39675d0d62876ca15e207f3

11 years agoSimplification of the syntax: Merely append "WITHOUT rowid" to the end of
drh [Mon, 21 Oct 2013 02:14:45 +0000 (02:14 +0000)] 
Simplification of the syntax:  Merely append "WITHOUT rowid" to the end of
the table definition.

FossilOrigin-Name: 131cc6e152abe1a2d48e6d8d40d2c2f8dbe723e7

11 years agoExperimental changes toward "index only" tables. Add the ability to specify
drh [Sat, 19 Oct 2013 23:31:56 +0000 (23:31 +0000)] 
Experimental changes toward "index only" tables.  Add the ability to specify
options on CREATE TABLE statements using the WITH clause modeled after
PostgreSQL and SQL Server.  Only the "omit_rowid" option is currently
recognized and that option is currently a no-op.

FossilOrigin-Name: 0248ec5e6e3797575388f046d8c27f7445fe2a39

11 years agoImproved header comment with better instructions on the vfslog.c
drh [Sat, 19 Oct 2013 16:51:39 +0000 (16:51 +0000)] 
Improved header comment with better instructions on the vfslog.c
extension.

FossilOrigin-Name: 4bd592c8f0e011e203443a6e88008a61d6926df5

11 years agoFix a bug causing an "malformed database schema error" error if a temp table with...
dan [Sat, 19 Oct 2013 15:07:49 +0000 (15:07 +0000)] 
Fix a bug causing an "malformed database schema error" error if a temp table with the same name as an existing table that has at least one temp trigger attached to it is created.

FossilOrigin-Name: 56dca4a65c3b14123272fa0cc5c15530c06fda28

11 years agoAdd the SQLITE_FCNTL_TRACE file control and generate it for OP_Trace
drh [Fri, 18 Oct 2013 20:03:43 +0000 (20:03 +0000)] 
Add the SQLITE_FCNTL_TRACE file control and generate it for OP_Trace
when compiled with SQLITE_USE_FCNTL_TRACE.  Update vfslog.c to make
use of the new file control.  Also update vfslog.c to log UNLOCK events
before the fact, rather than afterwards.

FossilOrigin-Name: e801f35a96d861a1e5f223655af4c8a6a7e356bc

11 years agoFurther enhance the vfslog extension to record the number of freelist pages
drh [Fri, 18 Oct 2013 17:42:35 +0000 (17:42 +0000)] 
Further enhance the vfslog extension to record the number of freelist pages
and the first freelist page in CHNGCTR-READ and CHNGCTR-WRITE records.

FossilOrigin-Name: 08157524ca816a81f3c341097e23982727eaa125

11 years agoIn the vfslog extension for FILECONTROL records, show the pragma name for
drh [Fri, 18 Oct 2013 14:37:26 +0000 (14:37 +0000)] 
In the vfslog extension for FILECONTROL records, show the pragma name for
SQLITE_FCNTL_PRAGMAs and the requested size for SQLITE_FCNTL_SIZE_HINT.

FossilOrigin-Name: f062969548da26850ceeb48d4283f6567f828887

11 years agoVersion 3.8.1 version-3.8.1
drh [Thu, 17 Oct 2013 12:57:35 +0000 (12:57 +0000)] 
Version 3.8.1

FossilOrigin-Name: c78be6d786c19073b3a6730dfe3fb1be54f5657a

11 years agoFix a typo in a requirements mark comment. No changes to code.
drh [Wed, 16 Oct 2013 23:58:21 +0000 (23:58 +0000)] 
Fix a typo in a requirements mark comment.  No changes to code.

FossilOrigin-Name: e5a439cfa5c921187e4aa7050832ec2660fba13d