]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 years agoExperimental simplification of memory flags/type handling. noMemType
mistachkin [Wed, 5 Mar 2014 01:29:18 +0000 (01:29 +0000)] 
Experimental simplification of memory flags/type handling.

FossilOrigin-Name: bac2820e13a79d91d0f8938c643134a9d6900327

11 years agoAvoid indexing off the front end of an array when creating a view with
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

11 years agoFix a problem with "DEFAULT (-(-9223372036854775808))" clauses in ALTER TABLE .....
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

11 years agoFix a potential memory use-after-free problem following an OOM error.
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

11 years agoFix an assert() so that it takes OOM errors into account.
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

11 years agoEnsure that BtreeMovetoUnpacked() does not try to invoke xRecordCompare when it is...
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

11 years agoImprove clarity of presentation in the sqlite3VdbeMemFromBtree() routine.
drh [Tue, 4 Mar 2014 13:18:23 +0000 (13:18 +0000)] 
Improve clarity of presentation in the sqlite3VdbeMemFromBtree() routine.

FossilOrigin-Name: 9830c343bc954b828f6ca752f8ae63e2c0a980c1

11 years agoFix comment in test.
mistachkin [Tue, 4 Mar 2014 12:07:24 +0000 (12:07 +0000)] 
Fix comment in test.

FossilOrigin-Name: 1e57f67b20a1c01ede36d684be628e9270bf109a

11 years agoFix minor typos in the new test file.
mistachkin [Tue, 4 Mar 2014 11:54:35 +0000 (11:54 +0000)] 
Fix minor typos in the new test file.

FossilOrigin-Name: 3cbb9b1b4f8c5c2735799e84dc80614586222cd2

11 years agoAdd tests to verify the fix for bug [4ef7e3cfca].
dan [Tue, 4 Mar 2014 11:35:20 +0000 (11:35 +0000)] 
Add tests to verify the fix for bug [4ef7e3cfca].

FossilOrigin-Name: 62410bb8a7b33efcd13bce8fd75b83523922adb8

11 years agoFix name resolution problem in sub-selects within triggers, ticket [4ef7e3cfca].
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

11 years agoFix harmless compiler warning.
mistachkin [Tue, 4 Mar 2014 11:16:20 +0000 (11:16 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 8d18a803bdeab290a6e9ff26911897f5f8683876

11 years agoRefactor the sqlite3VdbeRecordCompare() routine used to compare btree records.
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

11 years agoFix more instances of assuming 'char' is signed. And, make sure to never shift broken-on-arm
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

11 years agoDo not assume that 'char' is signed. Make it explicit.
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

11 years agoRefactor the sqlite3VdbeRecordCompare() routine used to compare btree records.
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

11 years agoFix a couple of harmless compiler warnings.
drh [Mon, 3 Mar 2014 21:46:55 +0000 (21:46 +0000)] 
Fix a couple of harmless compiler warnings.

FossilOrigin-Name: fcf480cc630976b619aabd5f7fb7b09601a178fb

11 years agoAvoid a buffer overread in vdbeCompareRecordInt() that might occur if the database...
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

11 years agoFix a typo in a comment. No changes to code.
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

11 years agoFix compiler warnings.
drh [Mon, 3 Mar 2014 18:25:24 +0000 (18:25 +0000)] 
Fix compiler warnings.

FossilOrigin-Name: ba8993727e5752cbc92c7d78437e9e0510c899f7

11 years agoMerge latest trunk changes.
dan [Mon, 3 Mar 2014 17:48:03 +0000 (17:48 +0000)] 
Merge latest trunk changes.

FossilOrigin-Name: 1d60356462f111ed147aa865dd17a13511db6ab7

11 years agoChange an OP_SCopy into an OP_Copy in a case where the destination might be
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

11 years agoChange the "explain_i" tcl test command so that xterm color codes are only added...
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

11 years agoFix a harmless compiler warning.
drh [Mon, 3 Mar 2014 15:13:27 +0000 (15:13 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: d7f6837e6997a4d5c0fd2d08b52887d691dd6f97

11 years agoMerge latest trunk changes.
dan [Mon, 3 Mar 2014 14:45:06 +0000 (14:45 +0000)] 
Merge latest trunk changes.

FossilOrigin-Name: e00ed717fbe456010ec6c746490d7c3e9d94ec5a

11 years agoFix a segfault that can occur following an OOM error.
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

11 years agoChange the MEM_Dyn flag so that it means that Mem.xDel exists and must
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

11 years agoMerge trunk changes.
dan [Sat, 1 Mar 2014 19:45:23 +0000 (19:45 +0000)] 
Merge trunk changes.

FossilOrigin-Name: 9c1747b5ded995e77fdab2fa9d334ec3c17c7c14

11 years agoRemove the vdbeRecordCompareLargeHeader function. Fix some other details.
dan [Sat, 1 Mar 2014 19:44:56 +0000 (19:44 +0000)] 
Remove the vdbeRecordCompareLargeHeader function. Fix some other details.

FossilOrigin-Name: 3861e853105cb8da344c7eebd2e455622b26395e

11 years agoChange the MEM_Dyn flag so that it means that Mem.xDel exists and must be enhanced-mem-check
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

11 years agoFactor the Mem invariant checker into a separate procedure (rather than a
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

11 years agoAdd extra assert() statements trying to catch a Mem object in an inconsistent
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

11 years agoIn the command-line shell add the (undocumented and unsupported) ".eqp"
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

11 years agoProvide an #ifdef in shell.c to work around issues when cross-compiling
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

11 years agoUpdate some test cases that deal with corrupt databases.
dan [Fri, 28 Feb 2014 18:39:51 +0000 (18:39 +0000)] 
Update some test cases that deal with corrupt databases.

FossilOrigin-Name: 3a09f5605ac7c6e503eb10acfdc607010414d917

11 years agoMinor tweak to vdbeRecordCompareInt().
dan [Fri, 28 Feb 2014 09:48:30 +0000 (09:48 +0000)] 
Minor tweak to vdbeRecordCompareInt().

FossilOrigin-Name: 284bde0ee20261737446eb8f5b6b36ad9bc3f355

11 years agoMerge in latest trunk changes.
dan [Thu, 27 Feb 2014 20:52:26 +0000 (20:52 +0000)] 
Merge in latest trunk changes.

FossilOrigin-Name: 8f30b09518d23c3f6cecd244a66ef918fdb55323

11 years agoFurther changes to sqlite3VdbeRecordCompare().
dan [Thu, 27 Feb 2014 20:44:18 +0000 (20:44 +0000)] 
Further changes to sqlite3VdbeRecordCompare().

FossilOrigin-Name: 570893740067a7caa952f259fa078cdf67017d71

11 years agoA better way of handling the USE_SYSTEM_SQLITE #define in shell.c.
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

11 years agoAdd #defines to the command-line shell source code (shell.c) so that it
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

11 years agoMore efficient removal of duplicates in recursive queries using the UNION
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

11 years agoIn the command-line shell for CSV import, if the lines are \r\n terminated
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

11 years agoImproved handling of constants and especially constant functions in the
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

11 years agoDo not allow temporary registers to be in use across an OP_Yield within a
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

11 years agoAttempt to speed up sqlite3VdbeRecordCompare() by various means. This code is in...
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

11 years agoAlso adjust the order of files in the amalgamation to ensure that
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

11 years agoQNX requires that _FILE_OFFSET_BITS be set prior to any system #include.
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

11 years agoFix several small style/consistency issues with the previous check-in.
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

11 years agoEnhance testing support for the Win32 VFS dynamic extension loading facilities.
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

11 years agoClose some stray connections in walro.test.
dan [Mon, 24 Feb 2014 19:49:36 +0000 (19:49 +0000)] 
Close some stray connections in walro.test.

FossilOrigin-Name: d6746cabaa22429644c956a4b5fd91896376de2d

11 years agoIn memsys5, initialize new allocations to non-zero bytes. Change the content
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

11 years agoRemove an unused variable from the VDBE_PROFILE compile-time option. Keep the
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

11 years agoFix the text of a comment used to generate VDBE opcode documentation so that
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

11 years agoFix a harmless shadowed-variable warning.
drh [Thu, 20 Feb 2014 19:32:38 +0000 (19:32 +0000)] 
Fix a harmless shadowed-variable warning.

FossilOrigin-Name: 824029090d1c4c4c608f67dd197961eba29c039d

11 years agoMake sure that the difference between two string pointers is passed into
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

11 years agoAdd the VdbeCoverageNeverTaken() macro, and comments that better describe how
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

11 years agoAdd the SQLITE_NOTNULL P5 code for comparison operations - really a composite
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

11 years agoMake sure a multi-row VALUES clause works correctly in a compound SELECT.
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

11 years agoTweaks in support of VDBE branch test coverage.
drh [Wed, 19 Feb 2014 00:53:46 +0000 (00:53 +0000)] 
Tweaks in support of VDBE branch test coverage.

FossilOrigin-Name: b97825646996792d0a67b83f135658027c8569ca

11 years agoFix VDBE branch accounting on comparison operators.
drh [Tue, 18 Feb 2014 11:31:59 +0000 (11:31 +0000)] 
Fix VDBE branch accounting on comparison operators.

FossilOrigin-Name: b287520c9226f7a9fab98142f5c207bfe959cd7e

11 years agoAdd VdbeCoverage() and VdbeCoverageIf() macros for improved VDBE coverage
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

11 years agoImprovements to "NOT IN (SELECT ...)" processing. Only test for NULL values
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

11 years agoMerge in performance enhancements for INSERT operations, especially INSERTs
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

11 years agoAdd logic to do test coverage measurements on the VDBE code. insert-optimization
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

11 years agoAdd a test case for OP_SoftNull.
drh [Mon, 17 Feb 2014 15:40:19 +0000 (15:40 +0000)] 
Add a test case for OP_SoftNull.

FossilOrigin-Name: f29d194e03d6bcc78bf883b77e591dbccada02f0

11 years agoMerge the VDBE_PROFILE fixes from trunk.
drh [Mon, 17 Feb 2014 15:36:39 +0000 (15:36 +0000)] 
Merge the VDBE_PROFILE fixes from trunk.

FossilOrigin-Name: 2914e4191121004a3f564b1fbf1c235dcc595503

11 years agoAvoid unnecessary calls to applyAffinity() during INSERT and UPDATE
drh [Mon, 17 Feb 2014 14:59:22 +0000 (14:59 +0000)] 
Avoid unnecessary calls to applyAffinity() during INSERT and UPDATE
operations, especially for table that have indices and tables for which
all columns have affinity "NONE".

FossilOrigin-Name: 35b4d6e938164fabaf30b504c54cfd9a69060cee

11 years agoFix the VDBE_PROFILE logic. Add a script to process the output file.
drh [Mon, 17 Feb 2014 01:13:28 +0000 (01:13 +0000)] 
Fix the VDBE_PROFILE logic.  Add a script to process the output file.

FossilOrigin-Name: 7adb3da235c8c162c84f05ef4ccf1cc463805d5f

11 years agoEnhance the code generator for INSERT INTO ... SELECT so that the SELECT
drh [Sun, 16 Feb 2014 01:55:49 +0000 (01:55 +0000)] 
Enhance the code generator for INSERT INTO ... SELECT so that the SELECT
generates output directly in the registers that INSERT INTO will be using,
in many cases, and OP_SCopy operations can thus be avoided.

FossilOrigin-Name: aa2d8b0e8154dd2f5e2c837dc11ab362b083495b

11 years agoSeek past NULLs in a top-constrained search. Avoid checking for NULLs in
drh [Fri, 14 Feb 2014 23:49:13 +0000 (23:49 +0000)] 
Seek past NULLs in a top-constrained search.  Avoid checking for NULLs in
the body of the search.

FossilOrigin-Name: e07a32f30862acf3b322d4d8deb015846d6f8f5f

11 years agoReduce the number of cases where it is necessary to check for NULL after
drh [Fri, 14 Feb 2014 20:59:53 +0000 (20:59 +0000)] 
Reduce the number of cases where it is necessary to check for NULL after
the loop terminating condition.

FossilOrigin-Name: 3c1ae447dec8fc2af1c5105134061717594ac0e0

11 years agoAdd OP_IdxGT and OP_IdxLE as distinct opcodes. Formerly these operations where
drh [Fri, 14 Feb 2014 15:13:36 +0000 (15:13 +0000)] 
Add OP_IdxGT and OP_IdxLE as distinct opcodes.  Formerly these operations where
done using OP_IdxGE and OP_IdxLT with the P5 flag set.  But VDBE code is easier
to read with distinct opcode names.  Also change OP_SeekGe to OP_SeekGE, and
so forth, so that the capitalization is consistent.  The whole point of this
change is to improve the readability of VDBE listings.

FossilOrigin-Name: b6bea903ac8e1717ed50b221d73bd0be061c7663

11 years agoRevise how the Tcl system encoding is handled by the test suite.
mistachkin [Fri, 14 Feb 2014 00:25:03 +0000 (00:25 +0000)] 
Revise how the Tcl system encoding is handled by the test suite.

FossilOrigin-Name: 9e573198e107f1b85ee37c52a10343d38968bda1

11 years agoImprovements to the makefile and README for MSVC.
mistachkin [Thu, 13 Feb 2014 21:57:48 +0000 (21:57 +0000)] 
Improvements to the makefile and README for MSVC.

FossilOrigin-Name: b22b61406899c2694dae984995d2484fdb8122f1

11 years agoEnsure that if the "psow=0" URI option or FCNTL_POWERSAFE_OVERWRITE file-control...
dan [Thu, 13 Feb 2014 19:27:08 +0000 (19:27 +0000)] 
Ensure that if the "psow=0" URI option or FCNTL_POWERSAFE_OVERWRITE file-control is used to clear the power-safe overwrite flag, extra padding frames are added to the WAL file.

FossilOrigin-Name: 48c821fd97a8f03757c90560c37a46bd0843570e

11 years agoChange README to README.md and expand it. Remove unrelated and obsolete files.
drh [Thu, 13 Feb 2014 19:10:24 +0000 (19:10 +0000)] 
Change README to README.md and expand it.  Remove unrelated and obsolete files.

FossilOrigin-Name: 18d4e258c45c32984b23d97b896a761eeef2dbdf

11 years agoAvoid passing a flags argument with the internal WAL_SYNC_TRANSACTIONS bit set when...
dan [Thu, 13 Feb 2014 18:46:59 +0000 (18:46 +0000)] 
Avoid passing a flags argument with the internal WAL_SYNC_TRANSACTIONS bit set when calling sqlite3OsSync().

FossilOrigin-Name: e3b79e920c298a39613631d689d1a2f182d00496

11 years agoUpdate the tclconfig files to the latest from http://core.tcl.tk/tclconfig.
drh [Thu, 13 Feb 2014 13:42:43 +0000 (13:42 +0000)] 
Update the tclconfig files to the latest from http://core.tcl.tk/tclconfig.

FossilOrigin-Name: b81ba7a4bc7e840fce25fc6801957a64f877ff60

11 years agoMinor simplifications to the "zeroPage()" routine in btree.c.
drh [Wed, 12 Feb 2014 23:52:16 +0000 (23:52 +0000)] 
Minor simplifications to the "zeroPage()" routine in btree.c.

FossilOrigin-Name: cc8f10bcb206c9def69b06f26decf025b8d9119d

11 years agoRemove the "rowid cache" that sought to remember the largest rowid for a
drh [Wed, 12 Feb 2014 21:31:12 +0000 (21:31 +0000)] 
Remove the "rowid cache" that sought to remember the largest rowid for a
table and thereby speed up OP_NewRowid.  That cache was ineffective.
Removing it results in a performance increase of 0.4%, less memory usage,
and a slightly smaller library size.

FossilOrigin-Name: 56bc5ce8958c8e6250531b4052b905d7ac993db3

11 years agoMake sure "rowid" columns are correctly resolved in joins between normal
drh [Wed, 12 Feb 2014 14:43:52 +0000 (14:43 +0000)] 
Make sure "rowid" columns are correctly resolved in joins between normal
tables and WITHOUT ROWID tables.  Fix for ticket [c34d0557f740c45070].

FossilOrigin-Name: 5d01426ddfb2d47c57f93f71378594e637424be0

11 years agoIncrease the version number to 3.8.4
drh [Tue, 11 Feb 2014 16:24:34 +0000 (16:24 +0000)] 
Increase the version number to 3.8.4

FossilOrigin-Name: 0a8bcbbd4e11a60923736b2be9b1ce83ea2263fb

11 years agoUpdates to the command-line shell. Simplify the banner message. Add the
drh [Tue, 11 Feb 2014 16:22:18 +0000 (16:22 +0000)] 
Updates to the command-line shell.  Simplify the banner message.  Add the
".save" command as an alias for ".backup".  When starting with no arguments,
include a banner message warning that the database is transient and in-memory
and mention the ".open" command.

FossilOrigin-Name: f5ad1e1bf2828c5da70c1ff944d8212036142e6f

11 years agoFixes to the "editline" support in the command-line shell.
drh [Tue, 11 Feb 2014 14:37:51 +0000 (14:37 +0000)] 
Fixes to the "editline" support in the command-line shell.

FossilOrigin-Name: 7989ce5f105657060a39be295255da8eff9ed56e

11 years agoMake sure that virtual WHERE-clause terms do not get transformed into real
drh [Tue, 11 Feb 2014 01:50:29 +0000 (01:50 +0000)] 
Make sure that virtual WHERE-clause terms do not get transformed into real
terms when processing set of OR-connected terms.
Fix for ticket [4c86b126f22ad].

FossilOrigin-Name: c950d6c4117d076f871518e738cdf9e8c46a19fc

11 years agoFix a pointless conditional. Add a test case.
drh [Mon, 10 Feb 2014 21:07:51 +0000 (21:07 +0000)] 
Fix a pointless conditional.  Add a test case.

FossilOrigin-Name: 9367632dd7e4fec9197227e35b0627c2e81ebffc

11 years agoAdd the ".save" command as an alias for ".backup". Improvements to the memdb-warning
drh [Mon, 10 Feb 2014 19:59:27 +0000 (19:59 +0000)] 
Add the ".save" command as an alias for ".backup".  Improvements to the
way font changes are implemented on the in-memory database warning.

FossilOrigin-Name: fe284afe739c497e153ac2bc0275f7c9e862c824

11 years agoOn unix, make the "transient in-memory database" text bold, but not red.
drh [Mon, 10 Feb 2014 19:36:06 +0000 (19:36 +0000)] 
On unix, make the "transient in-memory database" text bold, but not red.
Leave the text read on windows.

FossilOrigin-Name: c9eba2f7be468ae7fc843ffd5b09bd062ee311c3

11 years agoIn the command-line shell, on the banner, warn about the use of a
drh [Mon, 10 Feb 2014 19:27:05 +0000 (19:27 +0000)] 
In the command-line shell, on the banner, warn about the use of a
transient in-memory database in bold red text.

FossilOrigin-Name: 0fbc0fcec1b3a67065fa0ebb49375bf675789edc

11 years agoFix the compound-select-to-subquery converter so that it works with the
drh [Mon, 10 Feb 2014 18:56:05 +0000 (18:56 +0000)] 
Fix the compound-select-to-subquery converter so that it works with the
new compound-select object linkage introduced as part of the fix
for ticket [31a19d11b97088296].

FossilOrigin-Name: 572d4be4db03ce4afe9ae70f148703c74e0d8de0

11 years agoModify the command-line shell to print a warning when using an in-memory
drh [Mon, 10 Feb 2014 16:13:42 +0000 (16:13 +0000)] 
Modify the command-line shell to print a warning when using an in-memory
database.

FossilOrigin-Name: 90e9deae4a2bf63308a212226314aa7838c161d9

11 years agoImprovements to a "Synopsis:" comment in the VDBE engine.
drh [Mon, 10 Feb 2014 15:56:34 +0000 (15:56 +0000)] 
Improvements to a "Synopsis:" comment in the VDBE engine.

FossilOrigin-Name: 0dfa7ee9157ea6b1c745732d6c3fcd066cf4f849

11 years agoFaster implementation for sqlite3MulInt64().
drh [Mon, 10 Feb 2014 12:59:15 +0000 (12:59 +0000)] 
Faster implementation for sqlite3MulInt64().

FossilOrigin-Name: 010c48f671e909cb406f3716102a0032bc72a592

11 years agoFaster and smaller implementation of sqlite3_value_type().
drh [Mon, 10 Feb 2014 03:21:57 +0000 (03:21 +0000)] 
Faster and smaller implementation of sqlite3_value_type().

FossilOrigin-Name: 5708bc24b8cab623b833121183042b43e5a7021b

11 years agoAdd a compound-query test to the speedtest1 test program.
drh [Sun, 9 Feb 2014 23:59:28 +0000 (23:59 +0000)] 
Add a compound-query test to the speedtest1 test program.

FossilOrigin-Name: 532995759114ab7a7cba18cc9d8820d78eb1a96e

11 years agoUse the WITH clause to help resolve names for SELECT statements on the left
drh [Sun, 9 Feb 2014 18:02:09 +0000 (18:02 +0000)] 
Use the WITH clause to help resolve names for SELECT statements on the left
of a compound query.  Proposed fix for ticket [31a19d11b97088296a].

FossilOrigin-Name: 67bfd59d9087a987f15f6148efa1ff104983e1fb

11 years agoAdd the Mandelbrot Set testcase to the "cte" testset of speedtest1.
drh [Sun, 9 Feb 2014 00:52:53 +0000 (00:52 +0000)] 
Add the Mandelbrot Set testcase to the "cte" testset of speedtest1.

FossilOrigin-Name: 56febbeb575a298ae8839b3a59711150ceb9999d

11 years agoAdd a new "testset" to the speedtest1 program: The sudoku solver.
drh [Sun, 9 Feb 2014 00:18:21 +0000 (00:18 +0000)] 
Add a new "testset" to the speedtest1 program:  The sudoku solver.

FossilOrigin-Name: 4677ef2f8a726573c48ee2e532c00a68308dd7e1

11 years agoDo away with the "multi-register pseudo-table" abstration. Instead, just
drh [Sat, 8 Feb 2014 23:20:32 +0000 (23:20 +0000)] 
Do away with the "multi-register pseudo-table" abstration.  Instead, just
use an OP_SCopy to load results directory from the result registers of
the co-routine.

FossilOrigin-Name: 1e64dd782a126f48d78c43a664844a41d0e6334e

11 years agoChange the OP_Found opcode so that it expands zero-blobs prior to comparing
drh [Sat, 8 Feb 2014 19:12:21 +0000 (19:12 +0000)] 
Change the OP_Found opcode so that it expands zero-blobs prior to comparing
them.  Fix for ticket [fccbde530a6583b]

FossilOrigin-Name: e2303d1b0c17b6e7494fb7db8264f4c2ac193723