]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
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

11 years agoClear a valgrind error by zeroing the first 4 bytes of the temp-space allocation...
dan [Wed, 16 Oct 2013 11:39:07 +0000 (11:39 +0000)] 
Clear a valgrind error by zeroing the first 4 bytes of the temp-space allocation used by the b-tree module.

FossilOrigin-Name: 8651aba1865a8f82d21d3345f33fbd239fd9a042

11 years agoFix memory and resource leaks for WinCE and Cygwin, and a compiler warning
drh [Wed, 16 Oct 2013 11:31:51 +0000 (11:31 +0000)] 
Fix memory and resource leaks for WinCE and Cygwin, and a compiler warning
on windows with SQLITE_THREADSAFE=0.

FossilOrigin-Name: 9905cea9d45c90f2241f56dc32a25501476983bc

11 years agoFix memory/resource leaks for WinCE and Cygwin. wince-fixes
mistachkin [Wed, 16 Oct 2013 09:49:10 +0000 (09:49 +0000)] 
Fix memory/resource leaks for WinCE and Cygwin.

FossilOrigin-Name: 2470d1bb08b2661bcfde7a605208eb6044836d5c

11 years agoAdd the "languageid" hidden column to fts4aux.
dan [Tue, 15 Oct 2013 19:06:17 +0000 (19:06 +0000)] 
Add the "languageid" hidden column to fts4aux.

FossilOrigin-Name: 891df358e51075fb937f34952ce43bf51130b0d0

11 years agoChanges to test code to make sure no server threads are left running after server1...
dan [Tue, 15 Oct 2013 15:35:27 +0000 (15:35 +0000)] 
Changes to test code to make sure no server threads are left running after server1.test finishes.

FossilOrigin-Name: 1086e00bcaacc88ef2a9dda8a20698b0899ad2f7

11 years agoFix an 8-byte alignment problem on the "crash test" harness (test code,
drh [Tue, 15 Oct 2013 14:29:32 +0000 (14:29 +0000)] 
Fix an 8-byte alignment problem on the "crash test" harness (test code,
not in the core) that causes problems on Sparc.

FossilOrigin-Name: bcbc65030fa7c61f94100142e94ba2a5774f85b0

11 years agoFix harmless macro redefinition warnings in the totype extension.
drh [Tue, 15 Oct 2013 11:58:34 +0000 (11:58 +0000)] 
Fix harmless macro redefinition warnings in the totype extension.

FossilOrigin-Name: c9c1f8d6701b0a1bc939a7e35e565d4160dbf8d3

11 years agoFix harmless macro redefinition warnings in the totype extension.
mistachkin [Tue, 15 Oct 2013 10:43:04 +0000 (10:43 +0000)] 
Fix harmless macro redefinition warnings in the totype extension.

FossilOrigin-Name: a38adeb7ffd77474754b66877d60717cdb3cb865

11 years agoFix harmless compiler warning in the totype extension. Include all standard whitespa...
mistachkin [Mon, 14 Oct 2013 22:35:40 +0000 (22:35 +0000)] 
Fix harmless compiler warning in the totype extension.  Include all standard whitespace characters in totypeIsspace.  Minor adjustments to style and comments.

FossilOrigin-Name: 73238f655a58c810876f46cc04eab1ac2d5b8ef7

11 years agoMove the tointeger() and toreal() functions out of core and make them into
drh [Mon, 14 Oct 2013 21:14:42 +0000 (21:14 +0000)] 
Move the tointeger() and toreal() functions out of core and make them into
a run-time loadable extension.

FossilOrigin-Name: 9f66dd7e3790c04f0ab724419f5381bd21f9ebad

11 years agoFix a crash in FTS incremental phrase processing that can occur if the second or...
dan [Mon, 14 Oct 2013 20:30:51 +0000 (20:30 +0000)] 
Fix a crash in FTS incremental phrase processing that can occur if the second or subsequent token is much more common in the dataset than the first.

FossilOrigin-Name: 0bf438fc30582a08fddfc3cec49366ee17ae2abe

11 years agoAdd implementations for the toInteger() and toReal() SQL functions.
drh [Mon, 14 Oct 2013 19:35:33 +0000 (19:35 +0000)] 
Add implementations for the toInteger() and toReal() SQL functions.

FossilOrigin-Name: a0f7cbc068416cf55b86056f2ce7ee505c6cc3ea

11 years agoFix for building with SQLITE_OMIT_FOREIGN_KEY.
dan [Mon, 14 Oct 2013 15:41:39 +0000 (15:41 +0000)] 
Fix for building with SQLITE_OMIT_FOREIGN_KEY.

FossilOrigin-Name: b8b5f6c8f646989bc62bb59416de9bca003a5896

11 years agoUpdate the foreign_key_check pragma so that when a parent table is undefined
drh [Mon, 14 Oct 2013 14:30:02 +0000 (14:30 +0000)] 
Update the foreign_key_check pragma so that when a parent table is undefined
it is treated as an empty table.

FossilOrigin-Name: 208b259ad73b51e7df163fee3d7ed2bd79767597

11 years agoCorrects to comments on the STAT4 implementation.
drh [Mon, 14 Oct 2013 14:21:59 +0000 (14:21 +0000)] 
Corrects to comments on the STAT4 implementation.

FossilOrigin-Name: e06f74d32d44f281dd21908d401184f35f9455a4

11 years agoMake subroutines sampleCopy() and valueFromExpr() have file scope.
drh [Mon, 14 Oct 2013 13:21:00 +0000 (13:21 +0000)] 
Make subroutines sampleCopy() and valueFromExpr() have file scope.

FossilOrigin-Name: 1660efbe46439734c7dc1674994ceb86a9b41d1a

11 years agoAdd a new application_id for GeoPackage version 1.0.
drh [Mon, 14 Oct 2013 10:46:05 +0000 (10:46 +0000)] 
Add a new application_id for GeoPackage version 1.0.

FossilOrigin-Name: 98ddfe45713775657e586f5a2499cf3c036f13dd

11 years agoMerge updates from trunk. toTypeFuncs
mistachkin [Sat, 12 Oct 2013 23:39:49 +0000 (23:39 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: a88b5be01e68b26267ff6eb05e931ef2e7fc9f99

11 years agoRestore the index_list pragma back to its former operation. Create a new
drh [Sat, 12 Oct 2013 20:22:00 +0000 (20:22 +0000)] 
Restore the index_list pragma back to its former operation.  Create a new
PRAGMA stats used to access the table and index widths and heights.

FossilOrigin-Name: f0cf8c85dcbcc7778aed2816792c368d777f79cb

11 years agoIn "PRAGMA foreign_key_check", treat missing parent tables as empty (instead of as... fkc-missing-parent-tables
dan [Sat, 12 Oct 2013 19:06:48 +0000 (19:06 +0000)] 
In "PRAGMA foreign_key_check", treat missing parent tables as empty (instead of as errors).

FossilOrigin-Name: 8c13a7fd738e5441af370537649b0bfa97679cda

11 years agoFix handling of "DROP TABLE" commands when "PRAGMA defer_foreign_keys=1" is set.
dan [Sat, 12 Oct 2013 15:12:43 +0000 (15:12 +0000)] 
Fix handling of "DROP TABLE" commands when "PRAGMA defer_foreign_keys=1" is set.

FossilOrigin-Name: 27001356ed8201529b3f31d4313f2010f1b4e1b1

11 years agoAdd tests that demonstrate that PRAGMA defer_foreign_keys will reset to off
drh [Sat, 12 Oct 2013 13:16:15 +0000 (13:16 +0000)] 
Add tests that demonstrate that PRAGMA defer_foreign_keys will reset to off
at the conclusion of the next transaction.

FossilOrigin-Name: 67e28a11de97e97889f0c0f41c05605721c605c1

11 years agoFix harmless compiler warning.
mistachkin [Sat, 12 Oct 2013 02:33:22 +0000 (02:33 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 4b130f88fba216e088f61252bbcdde57ec7ee6a9

11 years agoPermit the creation of VSIX packages for Win32.
mistachkin [Sat, 12 Oct 2013 02:31:34 +0000 (02:31 +0000)] 
Permit the creation of VSIX packages for Win32.

FossilOrigin-Name: 035d03e94252f31025b39da49d8401933352fb77

11 years agoFix Unicode character encoding issues on Windows.
mistachkin [Sat, 12 Oct 2013 00:56:21 +0000 (00:56 +0000)] 
Fix Unicode character encoding issues on Windows.

FossilOrigin-Name: c9310c9a2bad11f1d033a57b33ea7aed43a8238d