]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoReorder function declarations in mutex_os2.c. This is a blind change - we
drh [Tue, 1 Dec 2009 14:31:18 +0000 (14:31 +0000)] 
Reorder function declarations in mutex_os2.c.  This is a blind change - we
have no capability of testing on OS/2.
Ticket [97214a34d814]

FossilOrigin-Name: c40e4ef094bb9d58f14354602785ccc228f8bc2a

15 years agoChanges to the TCL interface header to allow it to be compiled independently
drh [Tue, 1 Dec 2009 13:57:48 +0000 (13:57 +0000)] 
Changes to the TCL interface header to allow it to be compiled independently
from the amalgamation.

FossilOrigin-Name: 58113932d93926b4aa037a7487105a55f883cd0a

15 years agoOpen a savepoint within the FTS3 optimize() function.
dan [Tue, 1 Dec 2009 13:48:13 +0000 (13:48 +0000)] 
Open a savepoint within the FTS3 optimize() function.

FossilOrigin-Name: 4924fbb244bd1b7103e29e045812cb1c4d2d81c8

15 years agoFix a segfault that can occur when querying an empty FTS3 table. Also restore the...
dan [Tue, 1 Dec 2009 12:00:22 +0000 (12:00 +0000)] 
Fix a segfault that can occur when querying an empty FTS3 table. Also restore the rowid/docid conflict handling to work as it did in version 3.6.20.

FossilOrigin-Name: c022f66b5a65aa54d5ebd55cfe941118a2042280

15 years agoTest coverage improvements in the FTS3 porter stemmer.
drh [Mon, 30 Nov 2009 19:48:16 +0000 (19:48 +0000)] 
Test coverage improvements in the FTS3 porter stemmer.

FossilOrigin-Name: 6d112bfd53998b8f6693d3f2edbcd5ab4cdf5fb1

15 years agoAdd test cases for examples recently added to documentation file fts3.html.
dan [Mon, 30 Nov 2009 08:55:03 +0000 (08:55 +0000)] 
Add test cases for examples recently added to documentation file fts3.html.

FossilOrigin-Name: 498922cc356316a3ec59320529b685728e407746

15 years agoUpdates to snippet() and offsets() functions of FTS3 so that they work
drh [Sat, 28 Nov 2009 21:33:21 +0000 (21:33 +0000)] 
Updates to snippet() and offsets() functions of FTS3 so that they work
sanely following an OOM fault.

FossilOrigin-Name: b939a37a8ce296785a300e79ab9d3d87ad91343f

15 years agoChange FTS3 to detect when the RHS of the MATCH opertor encounters an OOM
drh [Sat, 28 Nov 2009 17:23:47 +0000 (17:23 +0000)] 
Change FTS3 to detect when the RHS of the MATCH opertor encounters an OOM
during string format conversion and report back an SQLITE_NOMEM error.

FossilOrigin-Name: 31eed4f8f95f0799d634eccbd9e09cb58172d250

15 years agoRemove all benign OOM failure opportunities from the FTS3 hash table
drh [Sat, 28 Nov 2009 17:07:42 +0000 (17:07 +0000)] 
Remove all benign OOM failure opportunities from the FTS3 hash table
implementation.  All OOM faults cause SQLITE_NOMEM to be returned.

FossilOrigin-Name: 80754d383a0e890ea3f315dab941b9f166481ddd

15 years agoAdd a test case for creating an FTS3 table with no module arguments or opening/closin...
dan [Sat, 28 Nov 2009 15:35:16 +0000 (15:35 +0000)] 
Add a test case for creating an FTS3 table with no module arguments or opening/closing brackets in the CREATE VIRTUAL TABLE statement.

FossilOrigin-Name: a9cba7ea0a06efa7a63a3069b219cc30fb127e98

15 years agoInitialize a variable (unnecessarily) to avoid a compiler warning.
drh [Sat, 28 Nov 2009 13:46:51 +0000 (13:46 +0000)] 
Initialize a variable (unnecessarily) to avoid a compiler warning.

FossilOrigin-Name: db65fd5913aae4d83d2c2bc243653175be3c3d35

15 years agoFix a bug introduced by the fts3 refactoring (segfault when creating a table with...
dan [Sat, 28 Nov 2009 12:40:32 +0000 (12:40 +0000)] 
Fix a bug introduced by the fts3 refactoring (segfault when creating a table with zero module args). Also a fix to handle an OOM error.

FossilOrigin-Name: eada284bc10cafcab9beb3473bb0c70b3b4de2f9

15 years agoChange the test numbers in e_fkey.test so that they are in order.
dan [Fri, 27 Nov 2009 18:31:40 +0000 (18:31 +0000)] 
Change the test numbers in e_fkey.test so that they are in order.

FossilOrigin-Name: ca73be44cc2dab5edc48292c467adc8362ddf645

15 years agoRemove a C++ism accidentally added to fts3.c.
dan [Fri, 27 Nov 2009 12:14:47 +0000 (12:14 +0000)] 
Remove a C++ism accidentally added to fts3.c.

FossilOrigin-Name: 97d332416069d2fbce323740b276d0e7523eeee5

15 years agoMove [7d30880114] to the trunk. Add optimizations to reduce the number of opcodes...
dan [Fri, 27 Nov 2009 12:12:34 +0000 (12:12 +0000)] 
Move [7d30880114] to the trunk. Add optimizations to reduce the number of opcodes used for BEFORE UPDATE triggers.

FossilOrigin-Name: 1b7c5250ccb63182324bfc3f1ea28f17b6db357a

15 years agoSimplifications to the sqlite3_trace() bound parameter substitution logic.
drh [Thu, 26 Nov 2009 14:01:53 +0000 (14:01 +0000)] 
Simplifications to the sqlite3_trace() bound parameter substitution logic.

FossilOrigin-Name: cb4b928648504ce29d751834e9ee3b5278dfca65

15 years agoMake sure the new fts3Int.h header file is added to the amalgamation.
drh [Wed, 25 Nov 2009 22:42:22 +0000 (22:42 +0000)] 
Make sure the new fts3Int.h header file is added to the amalgamation.

FossilOrigin-Name: f25558f333637b83f98a649acbb8a0d5dbada9ba

15 years agoSupport zeroblob in trace output.
drh [Wed, 25 Nov 2009 21:05:09 +0000 (21:05 +0000)] 
Support zeroblob in trace output.

FossilOrigin-Name: 5086bf8e838c824accda531afeb56a51dd40d795

15 years agoGet trace with parameter insertion working for UTF16 databases.
drh [Wed, 25 Nov 2009 19:35:23 +0000 (19:35 +0000)] 
Get trace with parameter insertion working for UTF16 databases.

FossilOrigin-Name: 01d5451af0bd2743eb74b98f2e77dd2c75f403b6

15 years agoInitial check-in of code that inserts tokenizations of the values
drh [Wed, 25 Nov 2009 18:03:42 +0000 (18:03 +0000)] 
Initial check-in of code that inserts tokenizations of the values
for bound parameters into the output of sqlite3_trace().

FossilOrigin-Name: 545cfb3b63f482036ae152e6ebcce86d373585a8

15 years agoEnhance the %q, %Q, and %w printf conversions so that the precisions
drh [Wed, 25 Nov 2009 16:53:37 +0000 (16:53 +0000)] 
Enhance the %q, %Q, and %w printf conversions so that the precisions
specifies the length of the input.

FossilOrigin-Name: 3ba773132d3baeb87acaee538b8fb0b0f4293673

15 years agoFix a tracing macro in the VDBE in the VColumn opcode.
drh [Tue, 24 Nov 2009 16:26:17 +0000 (16:26 +0000)] 
Fix a tracing macro in the VDBE in the VColumn opcode.

FossilOrigin-Name: cb74b81bb0322efdd66146d7de466c14564b18fd

15 years agoFix SQLITE_SECURE_DELETE so that it overwrites content on the root pages
drh [Tue, 24 Nov 2009 02:37:02 +0000 (02:37 +0000)] 
Fix SQLITE_SECURE_DELETE so that it overwrites content on the root pages
of tables and indices that are dropped using the truncate optimization.

FossilOrigin-Name: 02ef972a56aab1e61786000283193165d3968842

15 years agoMake sure registers computed for the VFilter opcode are marked invalid
drh [Mon, 23 Nov 2009 21:23:45 +0000 (21:23 +0000)] 
Make sure registers computed for the VFilter opcode are marked invalid
after the VFilter opcode finishes.  Ticket [16fbf14cb2].

FossilOrigin-Name: 83dc7d38c2695d1b2a7d4866a4df9be9e41d1abe

15 years agoRearrange the order of two branches in order to restore 100% branch coverage
drh [Mon, 23 Nov 2009 15:59:27 +0000 (15:59 +0000)] 
Rearrange the order of two branches in order to restore 100% branch coverage
after recent changes to in-memory database processing.

FossilOrigin-Name: 6ce6ff4402241d5c76acd0c60c85097dfcd7fd7c

15 years agoChange so that deleting an Expr structure requires only one frame per level in the...
dan [Mon, 23 Nov 2009 14:39:14 +0000 (14:39 +0000)] 
Change so that deleting an Expr structure requires only one frame per level in the expression tree, not two.

FossilOrigin-Name: a4380ab326e4b0de29271c824d041193e86b7139

15 years agoBump the version number to 3.6.21.
drh [Mon, 23 Nov 2009 13:17:26 +0000 (13:17 +0000)] 
Bump the version number to 3.6.21.

FossilOrigin-Name: 39214aee6553db76309851e7aa74fcc02d4f59b7

15 years agoAdd some missing comments to fts3 files. No source code changes.
dan [Sat, 21 Nov 2009 03:03:21 +0000 (03:03 +0000)] 
Add some missing comments to fts3 files. No source code changes.

FossilOrigin-Name: b6402b2065b844acb3f1bb94ad964568706bcb86

15 years agoFix a bug in transaction rollback during backup when the CODEC is enabled
drh [Sat, 21 Nov 2009 01:33:50 +0000 (01:33 +0000)] 
Fix a bug in transaction rollback during backup when the CODEC is enabled
that can result in a corrupt backup file.  This is only a problem when
SQLITE_HAS_CODEC is defined.

FossilOrigin-Name: f3398fc4db765e2c63d425d570c4469a84b3328c

15 years agoWhen moving pages as part of autovacuum on an in-memory database, make sure
drh [Fri, 20 Nov 2009 18:48:35 +0000 (18:48 +0000)] 
When moving pages as part of autovacuum on an in-memory database, make sure
that the source location is journalled so that a ROLLBACK can occur.
Part of the fix for ticket [564d412f15a00]

FossilOrigin-Name: 2f42f91fe65b0b21671936013df08037091f0cc6

15 years agoMerge leaf accidentally created by [1c4984c62f].
dan [Fri, 20 Nov 2009 10:23:12 +0000 (10:23 +0000)] 
Merge leaf accidentally created by [1c4984c62f].

FossilOrigin-Name: cae949ce971ca216e0f8880b2f93866619fa05be

15 years agoFix a bug in LIMIT 0 for compound SELECT statement.
drh [Fri, 20 Nov 2009 16:13:15 +0000 (16:13 +0000)] 
Fix a bug in LIMIT 0 for compound SELECT statement.
The problem was introduced by recent enhancements and has not appeared
in any release.

FossilOrigin-Name: c6ed7e2a73a7a65cfa914ffcad4f603b6b7a22a8

15 years agoIf the root pages numbers of the internal schema are adjusted due to
drh [Fri, 20 Nov 2009 15:02:34 +0000 (15:02 +0000)] 
If the root pages numbers of the internal schema are adjusted due to
autovacuum on a DROP TABLE statement and that statement later aborts (for
example, due to an OOM error) then reset the internal schema at the
conclusion of the statement.
Partial fix for ticket [564d412f15a].

FossilOrigin-Name: e493b093f8ca722c3160b32a16fb615023978dc9

15 years agoAvoid unnecessary page cache allocations when move a page while autovacuuming
drh [Fri, 20 Nov 2009 13:18:14 +0000 (13:18 +0000)] 
Avoid unnecessary page cache allocations when move a page while autovacuuming
an in-memory database, since the allocation might fail making it impossible to
rollback the transaction.

FossilOrigin-Name: 9a429349ccc2fa9acd28365a86578f602e87dafb

15 years agoAdd a test to make sure a database can be attached to a single handle twice if not...
dan [Fri, 20 Nov 2009 10:18:06 +0000 (10:18 +0000)] 
Add a test to make sure a database can be attached to a single handle twice if not in shared-cache mode.

FossilOrigin-Name: 1c4984c62f393f41f9182ea82546c16d02efa46f

15 years agoImprove comments and other things in fts3_write.c.
dan [Fri, 20 Nov 2009 05:05:19 +0000 (05:05 +0000)] 
Improve comments and other things in fts3_write.c.

FossilOrigin-Name: 1cf0e3cc14bad22867e740736c2886dc1c4a48dc

15 years agoMinor optimizations to fts3 code.
dan [Fri, 20 Nov 2009 02:24:15 +0000 (02:24 +0000)] 
Minor optimizations to fts3 code.

FossilOrigin-Name: b456eacbbb16513d1b27e90015ea58a6dc92cc3b

15 years agoMerge leaves [7cd178a72a] and [598727e6da].
dan [Thu, 19 Nov 2009 18:30:14 +0000 (18:30 +0000)] 
Merge leaves [7cd178a72a] and [598727e6da].

FossilOrigin-Name: 4115c0c286052e32cb81f77a644d530c1766206f

15 years agoFix a performance regression introduced while reworking the fts3 code.
dan [Thu, 19 Nov 2009 18:28:45 +0000 (18:28 +0000)] 
Fix a performance regression introduced while reworking the fts3 code.

FossilOrigin-Name: 7cd178a72ab99c94fdacffb19aad819ae600e57d

15 years agoRemove an unreachable branch from the OP_Affinity suppression logic.
drh [Thu, 19 Nov 2009 15:44:53 +0000 (15:44 +0000)] 
Remove an unreachable branch from the OP_Affinity suppression logic.

FossilOrigin-Name: 598727e6dae87f133c658fa125684f6ad978be60

15 years agoMerge fts3-refactor into the main trunk.
dan [Thu, 19 Nov 2009 15:26:54 +0000 (15:26 +0000)] 
Merge fts3-refactor into the main trunk.

FossilOrigin-Name: 551dbe30eab5855756e6356f6ba050f5d1791ef8

15 years agoFix some fts3 related issues with the autoconf and amalgamation build systems. fts3-refactor
dan [Thu, 19 Nov 2009 15:25:25 +0000 (15:25 +0000)] 
Fix some fts3 related issues with the autoconf and amalgamation build systems.

FossilOrigin-Name: 3b17924754343c0163464dabf01a9c46ffccef28

15 years agoMerge with [4bd4330709]. fts3-refactor
dan [Thu, 19 Nov 2009 14:57:14 +0000 (14:57 +0000)] 
Merge with [4bd4330709].

FossilOrigin-Name: 7a46d1ebe348ce9f1e8732617a8e280f152fe979

15 years agoFix a bug introduced with recent optimizations: The unary minus operator
drh [Thu, 19 Nov 2009 14:48:40 +0000 (14:48 +0000)] 
Fix a bug introduced with recent optimizations:  The unary minus operator
is TK_UMINUS, not TK_MINUS.

FossilOrigin-Name: 4bd43307090258f8652c995b056101c51b81274a

15 years agoMerge the fts3-refactor branch with the trunk.
dan [Thu, 19 Nov 2009 02:52:57 +0000 (02:52 +0000)] 
Merge the fts3-refactor branch with the trunk.

FossilOrigin-Name: c8d2bd37a4c16154912a0831690584011dc230cb

15 years agoFix problems introduced into fts3 as part of the refactoring.
dan [Thu, 19 Nov 2009 00:15:27 +0000 (00:15 +0000)] 
Fix problems introduced into fts3 as part of the refactoring.

FossilOrigin-Name: fa0998e19d984ee57f4f506c34eb858026cc49c3

15 years agoPerformance improvement by avoiding unnecessary calls to memset().
drh [Wed, 18 Nov 2009 23:01:25 +0000 (23:01 +0000)] 
Performance improvement by avoiding unnecessary calls to memset().

FossilOrigin-Name: 85940468e6f93f7c493fbc129f13cf6233c5d0c0

15 years agoAdd some missing comments and fix some other issues in fts3 code.
dan [Wed, 18 Nov 2009 15:35:58 +0000 (15:35 +0000)] 
Add some missing comments and fix some other issues in fts3 code.

FossilOrigin-Name: 2fe579e778b75fbf503c02e01e5424c1926f2b49

15 years agoSuppress more instances of unnecessary OP_IsNull and OP_Affinity opcodes.
drh [Wed, 18 Nov 2009 01:25:26 +0000 (01:25 +0000)] 
Suppress more instances of unnecessary OP_IsNull and OP_Affinity opcodes.

FossilOrigin-Name: bf6c0bd1c5568c6292ea0a64c8a5071e1bd3079a

15 years agoEnhancements to the VDBE opcode loop to reduce the number of machine-code
drh [Tue, 17 Nov 2009 23:59:58 +0000 (23:59 +0000)] 
Enhancements to the VDBE opcode loop to reduce the number of machine-code
instructions evaluated by about 10%.

FossilOrigin-Name: 9744ffb3f5bc6d8fd59fbb6577a0d549411cd967

15 years agoCode generator tries to avoid pointless OP_IsNull and OP_Affinity opcodes.
drh [Tue, 17 Nov 2009 18:31:47 +0000 (18:31 +0000)] 
Code generator tries to avoid pointless OP_IsNull and OP_Affinity opcodes.

FossilOrigin-Name: ebb0c8a3e977dc741704e733b5a5d931d9b27028

15 years agoImprovements to the way fts3 reads the full-text index.
dan [Tue, 17 Nov 2009 12:52:10 +0000 (12:52 +0000)] 
Improvements to the way fts3 reads the full-text index.

FossilOrigin-Name: 45c051e78651d8204c17cecdda2bde705698881f

15 years agoMake sure the output of sqlite3OsFullPathname is initialized even if the
drh [Mon, 16 Nov 2009 23:36:33 +0000 (23:36 +0000)] 
Make sure the output of sqlite3OsFullPathname is initialized even if the
fails due to I/O or OOM errors.

FossilOrigin-Name: e4943adb83819dee06e2e9da25ff6d967ca170de

15 years agoFix a reference to freed memory that can occur following an OOM error in
drh [Mon, 16 Nov 2009 22:54:50 +0000 (22:54 +0000)] 
Fix a reference to freed memory that can occur following an OOM error in
where.c.

FossilOrigin-Name: 929b6047391411c6f539e47afe6b63d16e352ccb

15 years agoBack out part of the change in [23ea2b700fd6d28d] since TH3 reveals some
drh [Mon, 16 Nov 2009 21:28:45 +0000 (21:28 +0000)] 
Back out part of the change in [23ea2b700fd6d28d] since TH3 reveals some
problems in OOM situations.

FossilOrigin-Name: 15d215d62df72c1bf1e605629692ee40d96546a6

15 years agoAdd a few extra coverage test cases for fts3.
dan [Mon, 16 Nov 2009 16:36:23 +0000 (16:36 +0000)] 
Add a few extra coverage test cases for fts3.

FossilOrigin-Name: f29c8fcade4aadeae3824975cf59f306c11c906b

15 years agoUse the sqlite3CtypeMap[] to improve the speed and reduce the size of the
drh [Mon, 16 Nov 2009 15:11:51 +0000 (15:11 +0000)] 
Use the sqlite3CtypeMap[] to improve the speed and reduce the size of the
logic in the tokenizer that recognizes identifiers.

FossilOrigin-Name: 1c9243b0760741f48b15efb0da661255177aed8b

15 years agoAdditional optimizations in sqlite3VdbeRecordCompare().
drh [Mon, 16 Nov 2009 03:13:40 +0000 (03:13 +0000)] 
Additional optimizations in sqlite3VdbeRecordCompare().

FossilOrigin-Name: 23ea2b700fd6d28d3b13663d164faba3760c572e

15 years agoOptimizations to the sqlite3VdbeRecordCompare() routine help it to run 12.5%
drh [Mon, 16 Nov 2009 02:14:00 +0000 (02:14 +0000)] 
Optimizations to the sqlite3VdbeRecordCompare() routine help it to run 12.5%
faster for some traces.

FossilOrigin-Name: 74c76f0bf946d184275de478ec72220d76342493

15 years agoFixes to fts3 integrity check code.
dan [Sat, 14 Nov 2009 23:50:11 +0000 (23:50 +0000)] 
Fixes to fts3 integrity check code.

FossilOrigin-Name: d3cae986ee1a176b1b015c3cebcd58ff0c3bdf92

15 years agoOptimizations to the main loop inside sqlite3VdbeExec() to help VDBE byte code
drh [Sat, 14 Nov 2009 23:22:23 +0000 (23:22 +0000)] 
Optimizations to the main loop inside sqlite3VdbeExec() to help VDBE byte code
run a few percent faster.

FossilOrigin-Name: d622ac6ac7a297754494d3a33dbaeea02836272e

15 years agoMake the sqlite3VdbeExec() function about 2% faster by storing the opcode
drh [Sat, 14 Nov 2009 18:04:35 +0000 (18:04 +0000)] 
Make the sqlite3VdbeExec() function about 2% faster by storing the opcode
array in a local variable.

FossilOrigin-Name: 8bd3cc82720ac7e8a9d4a03a882b6f8226867b0d

15 years agoFurther OOM testing for fts3 code. Add Tcl code implementing an integrity-check for...
dan [Sat, 14 Nov 2009 11:41:00 +0000 (11:41 +0000)] 
Further OOM testing for fts3 code. Add Tcl code implementing an integrity-check for fts3.

FossilOrigin-Name: c27d46b33e8596b45c562c2742b05030e8899092

15 years agoPerformance improvements and size reductions on the OP_Seek* family of
drh [Fri, 13 Nov 2009 20:52:43 +0000 (20:52 +0000)] 
Performance improvements and size reductions on the OP_Seek* family of
VDBE opcodes.

FossilOrigin-Name: ed820f45cf4354b1e1db64049c47a07221a7ff6d

15 years agoSimplify the OPFLG processing logic in the VDBE for a speed boost in the
drh [Fri, 13 Nov 2009 19:43:43 +0000 (19:43 +0000)] 
Simplify the OPFLG processing logic in the VDBE for a speed boost in the
VDBE processing loop and a reduction in code size.

FossilOrigin-Name: 3352b3eba545c3128efb7665ec91d4df3b16011d

15 years agoForce 8-byte memory alignment on memory allocated for VDBE cursors.
drh [Fri, 13 Nov 2009 17:05:53 +0000 (17:05 +0000)] 
Force 8-byte memory alignment on memory allocated for VDBE cursors.

FossilOrigin-Name: bdc45ba77fb77771c8ff46b8d6c2dd29e6d3b019

15 years agoChanges to test_intarray.c so that it build with SQLITE_OMIT_VIRTUALTABLE.
drh [Fri, 13 Nov 2009 15:03:59 +0000 (15:03 +0000)] 
Changes to test_intarray.c so that it build with SQLITE_OMIT_VIRTUALTABLE.
Added testcase() macros to expr.c.

FossilOrigin-Name: f0599d28fabe9e67a7150a91c266cb7655a2002e

15 years agoStart reworking fts3 code to match the rest of SQLite (code conventions, malloc-failu...
dan [Fri, 13 Nov 2009 10:36:20 +0000 (10:36 +0000)] 
Start reworking fts3 code to match the rest of SQLite (code conventions, malloc-failure handling etc.).

FossilOrigin-Name: 30a92f1132801c7582007ee625c577ea2ac31cdf

15 years agoShift more OP_Found opcodes over to using the unpacked format, for improved
drh [Thu, 12 Nov 2009 20:39:03 +0000 (20:39 +0000)] 
Shift more OP_Found opcodes over to using the unpacked format, for improved
performance.

FossilOrigin-Name: 6705ab1ad12cbdbbcf1f3e5439a4e6cbdcc421b3

15 years agoEnhance the OP_Found and OP_NotFound opcodes so that they can accept an
drh [Thu, 12 Nov 2009 19:59:44 +0000 (19:59 +0000)] 
Enhance the OP_Found and OP_NotFound opcodes so that they can accept an
array of registers as an unpacked record in addition to a record built
using OP_MakeRecord.  Use this to avoid OP_MakeRecord calls during IN
expression processing.

FossilOrigin-Name: b9eab885cd2ca1a1633329e7036c125e8dba62c5

15 years agoFactor out the IN operator code generation into a subroutine. Use this
drh [Thu, 12 Nov 2009 17:52:24 +0000 (17:52 +0000)] 
Factor out the IN operator code generation into a subroutine.  Use this
subroutine to implement both logic and branching versions of the IN operator.

FossilOrigin-Name: fcff5b7e2d059ffb8d21df57d0c9648bd876e813

15 years agoFactor out the code generator for BETWEEN into a subroutine.
drh [Thu, 12 Nov 2009 13:32:22 +0000 (13:32 +0000)] 
Factor out the code generator for BETWEEN into a subroutine.

FossilOrigin-Name: 5735f60b23460e7677b9c982a26bc13b0f4ed02b

15 years agoUpdate comment for substrFunc(). Added additional SUBSTR() test cases.
shaneh [Thu, 12 Nov 2009 05:04:50 +0000 (05:04 +0000)] 
Update comment for substrFunc().  Added additional SUBSTR() test cases.

FossilOrigin-Name: d7b3801dc7fad1b002f892fb5d82047ebff98369

15 years agoSuppress unnecessary OP_Noop instructions on when the right table of a
drh [Thu, 12 Nov 2009 04:26:39 +0000 (04:26 +0000)] 
Suppress unnecessary OP_Noop instructions on when the right table of a
LEFT JOIN uses the index-only optimization.

FossilOrigin-Name: e8aec08bee1c8d593474561898037aed571e64ce

15 years agoSuppress excess OP_Null opcodes caused by binary IS or IS NOT operators
drh [Thu, 12 Nov 2009 03:46:34 +0000 (03:46 +0000)] 
Suppress excess OP_Null opcodes caused by binary IS or IS NOT operators
that are converted into unary ISNULL or NOTNULL operators.

FossilOrigin-Name: cff1b36ab2c417611f59e96694005c03762788d2

15 years agoAdjustments to the implementation of LIMIT so that it uses fewer opcodes.
drh [Thu, 12 Nov 2009 03:13:26 +0000 (03:13 +0000)] 
Adjustments to the implementation of LIMIT so that it uses fewer opcodes.

FossilOrigin-Name: 39d5b292d27faf00ab58ff4074f91f7aea97cd99

15 years agoIf the sector size is unspecified (initially 0) then set it to 512, not to 32.
drh [Wed, 11 Nov 2009 23:58:06 +0000 (23:58 +0000)] 
If the sector size is unspecified (initially 0) then set it to 512, not to 32.

FossilOrigin-Name: 8861b5c16031ad570ffbe17b3ec8163b136a7f63

15 years agoRemove an obsolete (and incorrect) comment from sqlite3MemCompare().
drh [Wed, 11 Nov 2009 23:48:22 +0000 (23:48 +0000)] 
Remove an obsolete (and incorrect) comment from sqlite3MemCompare().
No changes to code.

FossilOrigin-Name: c15b70b3aefc399dae1df5bb721530f0e2b7887a

15 years agoTweaks to the SUBSTR() function to make it dramatically faster in the common
drh [Wed, 11 Nov 2009 20:53:31 +0000 (20:53 +0000)] 
Tweaks to the SUBSTR() function to make it dramatically faster in the common
case where the input string is large but the 2nd and 3rd arguments are small
positive integers.

FossilOrigin-Name: 5a474a867c5988ad5ec03719516fdd38f0da5c2c

15 years agoAllow media sector sizes as small as 32. The former minimum size was 512.
drh [Wed, 11 Nov 2009 13:17:08 +0000 (13:17 +0000)] 
Allow media sector sizes as small as 32.  The former minimum size was 512.

FossilOrigin-Name: 5a32bfc17ed022c85d2615c34b41a3dcae2594bd

15 years agoModified CLI to raise an error when extra command line options are passed.
shaneh [Wed, 11 Nov 2009 04:17:07 +0000 (04:17 +0000)] 
Modified CLI to raise an error when extra command line options are passed.
Added tests to verify correct handling, as well as other basic handling
of command line options. Ticket [f5cb008a65].

FossilOrigin-Name: 09b4f19f100fe82a8321b9ded99e679b7eedc1fa

15 years agoAdditional test cases for the coalesce() and ifnull() functions.
drh [Wed, 11 Nov 2009 01:14:17 +0000 (01:14 +0000)] 
Additional test cases for the coalesce() and ifnull() functions.

FossilOrigin-Name: d0591258b62df4fa610b7ac2a2af0344cf82f231

15 years agoGenerate VDBE code for the built-in COALESCE() and IFNULL() functions. This
drh [Wed, 11 Nov 2009 00:24:31 +0000 (00:24 +0000)] 
Generate VDBE code for the built-in COALESCE() and IFNULL() functions.  This
allows unused arguments to never be evaluated, which is a performance win when
the unused argument is a subquery.

FossilOrigin-Name: 30055b257c3c65f8123cad5ac6c62c4c6ca2c900

15 years agoAdditional intarray test cases and tweaks to comments.
drh [Tue, 10 Nov 2009 17:55:47 +0000 (17:55 +0000)] 
Additional intarray test cases and tweaks to comments.

FossilOrigin-Name: 0c8db5d88ee41dab58d6464283b51f82f7457838

15 years agoInitial implementation and test cases for the "intarray" virtual table.
drh [Tue, 10 Nov 2009 17:24:37 +0000 (17:24 +0000)] 
Initial implementation and test cases for the "intarray" virtual table.

FossilOrigin-Name: 0e7d29253f093d4125ede3cfc478e4bf09aef987

15 years agoFix for datbase name being ignored with the -batch option in the CLI. Ticket [aeff89...
shaneh [Tue, 10 Nov 2009 17:07:30 +0000 (17:07 +0000)] 
Fix for datbase name being ignored with the -batch option in the CLI.  Ticket [aeff892c57].

FossilOrigin-Name: 8097c64acfc74c913bc6d7d631bc1423c90df93f

15 years agoRemove the obsolete "$Id:$" RCS identifier strings from the source code.
drh [Tue, 10 Nov 2009 01:30:52 +0000 (01:30 +0000)] 
Remove the obsolete "$Id:$" RCS identifier strings from the source code.

FossilOrigin-Name: f6c045f649036958078cb15cd9d5453680c82b0c

15 years agoRemove from the TCL interface some old code associated with sqlite3_analyzer.
drh [Tue, 10 Nov 2009 01:13:25 +0000 (01:13 +0000)] 
Remove from the TCL interface some old code associated with sqlite3_analyzer.

FossilOrigin-Name: 01f2271e51751ff66061f65556a5e324f243756a

15 years agoOmit some code that is not used when SQLITE_SECURE_DELETE is defined.
drh [Tue, 10 Nov 2009 01:12:50 +0000 (01:12 +0000)] 
Omit some code that is not used when SQLITE_SECURE_DELETE is defined.

FossilOrigin-Name: 5a9e746357aa8edeef6b89f01e19cd57555bef32

15 years agoImproved shell "dot" command argument handling. Ticket [f12a9eeedc].
shaneh [Fri, 6 Nov 2009 17:20:17 +0000 (17:20 +0000)] 
Improved shell "dot" command argument handling.  Ticket [f12a9eeedc].

FossilOrigin-Name: 9fb699193378bf812ef97889adc0b1a98ad56d5b

15 years agoFix the backup API so that a backup from an empty database to a non-empty
drh [Fri, 6 Nov 2009 04:13:18 +0000 (04:13 +0000)] 
Fix the backup API so that a backup from an empty database to a non-empty
database works.  Ticket [0bf974bdf9].  The only changes are in assert()
statements.

FossilOrigin-Name: ddb71cd9ed395804a13dc136bb7688a7627c798f

15 years agoMerged accidental fork.
shaneh [Fri, 6 Nov 2009 03:33:01 +0000 (03:33 +0000)] 
Merged accidental fork.

FossilOrigin-Name: d410cd4e42ecf50a849f49cf3395ec169350e7cf

15 years agoAdd some very basic tests for the commands available from the CLI.
shaneh [Fri, 6 Nov 2009 03:22:54 +0000 (03:22 +0000)] 
Add some very basic tests for the commands available from the CLI.

FossilOrigin-Name: 6bf43338049f956b447139c90df472682e28222a

15 years agoRecover an ophaned branch that resulted from some ill-advised "shunning".
drh [Thu, 5 Nov 2009 18:46:02 +0000 (18:46 +0000)] 
Recover an ophaned branch that resulted from some ill-advised "shunning".
This check-in should be identical to [bd443f39a9] except that it should
be on the trunk.

FossilOrigin-Name: 38eaf1ab6e05161e6dc7cd69e942aeca16548c45

15 years agoRemove "const" from parameter of sqlite3BtreeFactory() to avoid a compiler
drh [Wed, 4 Nov 2009 13:30:01 +0000 (13:30 +0000)] 
Remove "const" from parameter of sqlite3BtreeFactory() to avoid a compiler
warning.

FossilOrigin-Name: eb7a544fe49d1626bacecfe53ddc03fe082e3243

15 years agoCreate a new datatype "ynVar" to hold "nVar" (number of variable) values.
drh [Wed, 4 Nov 2009 13:17:14 +0000 (13:17 +0000)] 
Create a new datatype "ynVar" to hold "nVar" (number of variable) values.
This is normally 16-bits can can be 32-bits if SQLITE_MAX_VARIABLE_NUMBER
is large enough.

FossilOrigin-Name: 24a4d520d540d92b611abc4eb57dc6da9be4eac6

15 years agoReport errors back up to the ATTACH command if the codec fails to initialize.
drh [Wed, 4 Nov 2009 01:56:27 +0000 (01:56 +0000)] 
Report errors back up to the ATTACH command if the codec fails to initialize.

FossilOrigin-Name: a6c696102eb483080b0a1d31b85f6b5f85c3efbf

15 years agoFix compiler warnings on MSVC build.
shane [Tue, 3 Nov 2009 19:42:30 +0000 (19:42 +0000)] 
Fix compiler warnings on MSVC build.

FossilOrigin-Name: 01c4b5b84ec7ce589e20ea66e80011f092ab32f0

15 years agoEnhancements to lemon to generate more compact action tables and to avoid
drh [Tue, 3 Nov 2009 19:18:31 +0000 (19:18 +0000)] 
Enhancements to lemon to generate more compact action tables and to avoid
making array bounds tests that can never fail on action table calculations.

FossilOrigin-Name: 27d8e684db4651155c4bcb8bb44bf1c692b8c48b

15 years agoForce all qsort() calls in mkkeywordhash.c to be stable so that we get
drh [Tue, 3 Nov 2009 13:08:16 +0000 (13:08 +0000)] 
Force all qsort() calls in mkkeywordhash.c to be stable so that we get
predictable results on different platforms.

FossilOrigin-Name: 3b02df27ab63936226a90098d88535ed19c2b782