]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 years agoFix a non-C89 variable declaration that causes problems for MSVC. status64
drh [Mon, 23 Mar 2015 19:16:30 +0000 (19:16 +0000)] 
Fix a non-C89 variable declaration that causes problems for MSVC.

FossilOrigin-Name: 3de085eab2fbe491f2242b340851e8af8f61ad13

10 years agoAdd the SQLITE_PTRSIZE macro. Use it to help sqlite3_status() run faster
drh [Mon, 23 Mar 2015 18:52:56 +0000 (18:52 +0000)] 
Add the SQLITE_PTRSIZE macro.  Use it to help sqlite3_status() run faster
on 32-bit systems.

FossilOrigin-Name: c742bd6047bc6d0319a5a8c31d97f6b9229507f6

10 years agoAdd the sqlite3_status64() interface. Make the new interface and the legacy
drh [Mon, 23 Mar 2015 17:25:18 +0000 (17:25 +0000)] 
Add the sqlite3_status64() interface.  Make the new interface and the legacy
sqlite3_status() both atomic and threadsafe.  Check threadsafety using
assert()s.

FossilOrigin-Name: 1ce8e8fa4b866aafa12b1da0eb4d02321af9293e

10 years agoFix a potential NULL pointer dereference following a syntax error.
drh [Sun, 22 Mar 2015 10:23:17 +0000 (10:23 +0000)] 
Fix a potential NULL pointer dereference following a syntax error.

FossilOrigin-Name: 8d27e3e16a9be79fe227e833f4770ebe09a9d90b

10 years agoFix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both...
mistachkin [Sat, 21 Mar 2015 23:38:59 +0000 (23:38 +0000)] 
Fix harmless compiler warnings with MSVC when assert() and SQLITE_MEMDEBUG are both enabled.

FossilOrigin-Name: 9513dbd4860c8dd391f831982d09aff227d16f5c

10 years agoAdd more comments to the MSVC batch build tool.
mistachkin [Sat, 21 Mar 2015 22:23:46 +0000 (22:23 +0000)] 
Add more comments to the MSVC batch build tool.

FossilOrigin-Name: 03522da37821958c647d49bf8189a5affa3f6720

10 years agoIncrease the debugging level for the debug configuration in the MSVC batch build...
mistachkin [Sat, 21 Mar 2015 22:13:47 +0000 (22:13 +0000)] 
Increase the debugging level for the debug configuration in the MSVC batch build tool.

FossilOrigin-Name: 041484ff91fd4615368ccb2257ab50acc2cd4fea

10 years agoDo not invoke a C preprocessor macro with an empty argument, as (reportedly)
drh [Sat, 21 Mar 2015 20:59:43 +0000 (20:59 +0000)] 
Do not invoke a C preprocessor macro with an empty argument, as (reportedly)
some versions of GCC are unable to deal with that.

FossilOrigin-Name: de9da317d4df3efefe9a1a48f954af8a19e7d098

10 years agoAdd a missing "int" on a constant declaration.
drh [Sat, 21 Mar 2015 20:50:58 +0000 (20:50 +0000)] 
Add a missing "int" on a constant declaration.

FossilOrigin-Name: 235157de5113ac4c750e36a498e2a1f1cf461751

10 years agoAvoid a segfault if NULL is passed as the first argument to SQL scalar function fts3_...
dan [Sat, 21 Mar 2015 19:35:09 +0000 (19:35 +0000)] 
Avoid a segfault if NULL is passed as the first argument to SQL scalar function fts3_tokenizer().

FossilOrigin-Name: 6d0989695b486275824c14d5f88357267c1e8104

10 years agoChange walblock.test to block an external process for 10 seconds, not 5. 5 seconds...
dan [Sat, 21 Mar 2015 16:40:24 +0000 (16:40 +0000)] 
Change walblock.test to block an external process for 10 seconds, not 5. 5 seconds is not long enough to tell the difference between a blocking lock and a series of retries.

FossilOrigin-Name: 717335fcdb15430ed977cbc98d30345b71728b66

10 years agoFix the blocking WAL lock so that it works and so that it compiles on a Mac.
drh [Sat, 21 Mar 2015 16:36:03 +0000 (16:36 +0000)] 
Fix the blocking WAL lock so that it works and so that it compiles on a Mac.

FossilOrigin-Name: 67d69d21de32816894be53e4b446656d4174eb0d

10 years agoRemove an unreachable branch from the OP_VCreate opcode (merge accidental fork in...
dan [Sat, 21 Mar 2015 12:25:23 +0000 (12:25 +0000)] 
Remove an unreachable branch from the OP_VCreate opcode (merge accidental fork in trunk).

FossilOrigin-Name: 2fbfec62fc03d42ee240dfefaa0aeb59a3f04d88

10 years agoAvoid an integer overflow in fts3 causing gcc 4.7.1 with -O2 to behave counter-intuit...
dan [Sat, 21 Mar 2015 12:22:51 +0000 (12:22 +0000)] 
Avoid an integer overflow in fts3 causing gcc 4.7.1 with -O2 to behave counter-intuitively (perhaps because the behaviour is undefined). Add an "ifcapable trace" to a test in shell4.test.

FossilOrigin-Name: e3e234649616f20610abce9ae9da1c572d3a4377

10 years agoRemove an unreachable branch from the OP_VCreate opcode.
drh [Sat, 21 Mar 2015 12:22:16 +0000 (12:22 +0000)] 
Remove an unreachable branch from the OP_VCreate opcode.

FossilOrigin-Name: 5fca41a3811766b48f5f23d5d49cc4e6e79fa867

10 years agoAdd a missing "ifcapable fts3" to a test case in vtab2.test.
dan [Sat, 21 Mar 2015 10:53:01 +0000 (10:53 +0000)] 
Add a missing "ifcapable fts3" to a test case in vtab2.test.

FossilOrigin-Name: d845b0f69093178517d66e1fc5060e8f62c681c7

10 years agoCorrectly detect the error of having a "*" wildcard on a SELECT without
drh [Sat, 21 Mar 2015 03:18:22 +0000 (03:18 +0000)] 
Correctly detect the error of having a "*" wildcard on a SELECT without
a FROM clause on the left-hand side of a recursive CTE.

FossilOrigin-Name: b11d1793a06a44931edcbf12a615b49794d53a62

10 years agoIf a column is both UNIQUE and a PRIMARY KEY, make sure the PRIMARY KEY
drh [Sat, 21 Mar 2015 02:58:20 +0000 (02:58 +0000)] 
If a column is both UNIQUE and a PRIMARY KEY, make sure the PRIMARY KEY
designation takes precedence.

FossilOrigin-Name: d871a7921722bb0fef6d51e1110a9703ddff78c8

10 years agoRemove superfluous define from the MSVC makefile.
mistachkin [Sat, 21 Mar 2015 02:25:29 +0000 (02:25 +0000)] 
Remove superfluous define from the MSVC makefile.

FossilOrigin-Name: 880d2513a0fb084fae82080401b108fb13e61478

10 years agoImprovements to the MSVC build. Fix harmless compiler warnings. Enable use of ...
mistachkin [Sat, 21 Mar 2015 02:22:37 +0000 (02:22 +0000)] 
Improvements to the MSVC build.  Fix harmless compiler warnings.  Enable use of 'stdcall'.

FossilOrigin-Name: 737630b87314283b2c38790ace9d25ec05f81f4a

10 years agoProvide the BTREE_SEEK_EQ hint to the b-tree layer.
drh [Fri, 20 Mar 2015 16:54:29 +0000 (16:54 +0000)] 
Provide the BTREE_SEEK_EQ hint to the b-tree layer.

FossilOrigin-Name: 3c367004dab0a1a24d955482c97b0f2d84129ab6

10 years agoFix to get SQLITE_SMALL_STACK working correctly again after the previous change. seek-eq
drh [Fri, 20 Mar 2015 16:34:49 +0000 (16:34 +0000)] 
Fix to get SQLITE_SMALL_STACK working correctly again after the previous change.

FossilOrigin-Name: 78df0ce13d4f35226f2571bd7de78484ccbee4bb

10 years agoProvide the BTREE_SEEK_EQ hint to the b-tree layer.
drh [Fri, 20 Mar 2015 14:57:50 +0000 (14:57 +0000)] 
Provide the BTREE_SEEK_EQ hint to the b-tree layer.

FossilOrigin-Name: e750830f1e61160c0c67e35b13e50b35a95b50e1

10 years agoFix a problem causing collation sequence names to be dequoted multiple times under...
dan [Fri, 20 Mar 2015 08:43:59 +0000 (08:43 +0000)] 
Fix a problem causing collation sequence names to be dequoted multiple times under some circumstances.

FossilOrigin-Name: eddc05e7bb31fae74daa86e0504a3478b99fa0f2

10 years agoIf a virtual table is created with a malformed UTF8 name in a UTF16 database,
drh [Thu, 19 Mar 2015 20:09:16 +0000 (20:09 +0000)] 
If a virtual table is created with a malformed UTF8 name in a UTF16 database,
make sure that does not cause problems.

FossilOrigin-Name: b74cb0a92bba69f8ea705adf4695d03ea4470984

10 years agoFix a crash that can occur following an OOM condition within a CREATE VIRTUAL TABLE... malformed-vtab-name
dan [Thu, 19 Mar 2015 19:59:30 +0000 (19:59 +0000)] 
Fix a crash that can occur following an OOM condition within a CREATE VIRTUAL TABLE statement on a utf-16 database.

FossilOrigin-Name: 9453e7da046c55715631f10f018e97a336197969

10 years agoFix a problem with creating virtual table with names specified using malformed utf...
dan [Thu, 19 Mar 2015 18:56:17 +0000 (18:56 +0000)] 
Fix a problem with creating virtual table with names specified using malformed utf-8 within utf-16 databases.

FossilOrigin-Name: 9969cff2d0553c9bfa88a437e1bb0cc4200d49d7

10 years agoFix an FTS3/4 problem with handling empty tokenizer declarations (e.g. "CREATE VIRTUA...
dan [Thu, 19 Mar 2015 16:25:42 +0000 (16:25 +0000)] 
Fix an FTS3/4 problem with handling empty tokenizer declarations (e.g. "CREATE VIRTUAL TABLE t(tokenize=);").

FossilOrigin-Name: 26d2def8a53094356008861636d66f9ae8f2448a

10 years agoSilently ignore any attempt to add a prefix index for prefixes zero bytes in size...
dan [Thu, 19 Mar 2015 15:52:07 +0000 (15:52 +0000)] 
Silently ignore any attempt to add a prefix index for prefixes zero bytes in size to an fts3/4 table. Or any prefix index size so large that it overflows a 32-bit signed integer.

FossilOrigin-Name: ad4b19d2ac0889a23fe3b0fd844286efc10cdd82

10 years agoAdd an assert() to check that the database mutex is held in sqlite3BtreeLeave().
dan [Thu, 19 Mar 2015 15:04:23 +0000 (15:04 +0000)] 
Add an assert() to check that the database mutex is held in sqlite3BtreeLeave().

FossilOrigin-Name: 31f54d7b0798e70da6a60b8ea3c5d9e35dce164c

10 years agoFix typo in shell error message.
mistachkin [Thu, 19 Mar 2015 14:48:38 +0000 (14:48 +0000)] 
Fix typo in shell error message.

FossilOrigin-Name: 775a02d597549567a0634483525664643064b3fd

10 years agoFix a bug in error handling in the ".trace" command of the command-line shell.
drh [Thu, 19 Mar 2015 13:30:41 +0000 (13:30 +0000)] 
Fix a bug in error handling in the ".trace" command of the command-line shell.

FossilOrigin-Name: 6a48b5d794e891fdd167547c76835d677eb5e31d

10 years agoAdd another sqlite3FaultSim() to the multi-threaded sorter logic to
drh [Wed, 18 Mar 2015 16:00:44 +0000 (16:00 +0000)] 
Add another sqlite3FaultSim() to the multi-threaded sorter logic to
improve testability.

FossilOrigin-Name: 49ea2cded4a76596f85419c820cdaf4a1751d7ac

10 years agoClarify the documentation on sqlite3_errcode(). No changes to code.
drh [Tue, 17 Mar 2015 20:39:11 +0000 (20:39 +0000)] 
Clarify the documentation on sqlite3_errcode().  No changes to code.

FossilOrigin-Name: 2c0e0d87fb418d684fba1c83d9fd8e4e96588c54

10 years agoAlso merge the WAL blocking lock tests that were somehow missed on the
drh [Tue, 17 Mar 2015 17:08:35 +0000 (17:08 +0000)] 
Also merge the WAL blocking lock tests that were somehow missed on the
previous check-in.

FossilOrigin-Name: 7214dab7443d35c105904dd69635c1f8b45b2fc8

10 years agoTransient locks in WAL mode can now block in order to resolve priority
drh [Tue, 17 Mar 2015 16:59:57 +0000 (16:59 +0000)] 
Transient locks in WAL mode can now block in order to resolve priority
inversions.

FossilOrigin-Name: ec2f46de531ec8ef91981b19b48ab64db7727264

10 years agoAdd a test for the change on this branch. wal-blocking-lock
dan [Tue, 17 Mar 2015 16:01:29 +0000 (16:01 +0000)] 
Add a test for the change on this branch.

FossilOrigin-Name: e22dde187eb0b389d6d93e2e39a26fd0f4e6196e

10 years agoMake SQLite slightly more likely to use an auto-index within a sub-query.
dan [Mon, 16 Mar 2015 20:40:00 +0000 (20:40 +0000)] 
Make SQLite slightly more likely to use an auto-index within a sub-query.

FossilOrigin-Name: ab832336f4a28193c4d2b61e833564822a7b86a8

10 years agoFix typo of test prefix in the new WHERE test file.
mistachkin [Mon, 16 Mar 2015 18:08:56 +0000 (18:08 +0000)] 
Fix typo of test prefix in the new WHERE test file.

FossilOrigin-Name: 34779c528f1817d6ec34216b58fb4277956b5167

10 years agoWhen the WHERE clause contains two OR-connected terms with identical
drh [Mon, 16 Mar 2015 17:48:12 +0000 (17:48 +0000)] 
When the WHERE clause contains two OR-connected terms with identical
operands but different operators, try to combine them into a single term.
Example:  (X=A OR X>A) becomes (X>=A).

FossilOrigin-Name: 8bdda827a3d268009297a0216e3d94bf0eceeb2e

10 years agoModify the fts3query.test script so that it works even when testfixture is
drh [Mon, 16 Mar 2015 17:07:09 +0000 (17:07 +0000)] 
Modify the fts3query.test script so that it works even when testfixture is
built using a version of TCL that is unable to sort the
integer -9223372036854775808

FossilOrigin-Name: f61fd24b4d3b686911ea578f77612309099f0cc6

10 years agoWhen deleting the master journal to commit a multi-database transaction, do
drh [Mon, 16 Mar 2015 16:44:55 +0000 (16:44 +0000)] 
When deleting the master journal to commit a multi-database transaction, do
not sync the directory if PRAGMA synchronous=OFF for all participating
database files.

FossilOrigin-Name: 018d7671402a0f8103d1306641655b69f9fa235d

10 years agoWhen estimating the number of rows visited by a range scan for which the keys consist...
dan [Mon, 16 Mar 2015 16:28:43 +0000 (16:28 +0000)] 
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples. This generates more accurate estimates.

FossilOrigin-Name: 3e0590dee0e68cc1599858757c650a7378026170

10 years agoUse #ifdef to omit code that is only used for STAT3 and STAT4.
drh [Mon, 16 Mar 2015 13:48:23 +0000 (13:48 +0000)] 
Use #ifdef to omit code that is only used for STAT3 and STAT4.

FossilOrigin-Name: f2c9c5b57b7739daafc44e8ec36d4a2beacd5f17

10 years agoImproved comments. No code changes. combine-disjuncts
drh [Mon, 16 Mar 2015 13:12:34 +0000 (13:12 +0000)] 
Improved comments.  No code changes.

FossilOrigin-Name: 23f71a26386ff2aff9800fe96cec1dc9c805b5b6

10 years agoWhen a WHERE clause contains disjuncts with the same operands, try to
drh [Mon, 16 Mar 2015 12:13:31 +0000 (12:13 +0000)] 
When a WHERE clause contains disjuncts with the same operands, try to
combine them into a single operator.  Example:  (x=A OR x>A) becomes
(x>=A).

FossilOrigin-Name: 7a3097689d17625fb0dfc4372712f375f3bdb9a1

10 years agoAnother test case for the planner change on this branch. stat4-change
dan [Mon, 16 Mar 2015 09:21:30 +0000 (09:21 +0000)] 
Another test case for the planner change on this branch.

FossilOrigin-Name: f2207a0691ed361061719f4dacf021a677a9d892

10 years agoWhen estimating the number of rows visited by a range scan for which the keys consist...
dan [Sat, 14 Mar 2015 18:59:58 +0000 (18:59 +0000)] 
When estimating the number of rows visited by a range scan for which the keys consist of more than one field, consider prefixes of stat4 samples as well as the full samples.

FossilOrigin-Name: e1caf93c9ad0ee15d42030af95619f212d3fcf9d

10 years agoAdd tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental...
dan [Fri, 13 Mar 2015 15:44:36 +0000 (15:44 +0000)] 
Add tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental" handle corrupt databases correctly.

FossilOrigin-Name: 1c2166cb2a387a0856f41b399c3648bf8c5fce73

10 years agoExtra tests for commit [0f250957].
dan [Fri, 13 Mar 2015 08:31:54 +0000 (08:31 +0000)] 
Extra tests for commit [0f250957].

FossilOrigin-Name: 5aa522dcb9bfa18d49683f7cc889516984e2bcd2

10 years agoRemove debugging logic accidently included in the previous check-in.
drh [Fri, 13 Mar 2015 00:11:09 +0000 (00:11 +0000)] 
Remove debugging logic accidently included in the previous check-in.

FossilOrigin-Name: 2887fb38ffc28712c34028cd38db2b7993d864eb

10 years agoFix the "now" option for date-time functions for cases when STAT4 is disabled.
drh [Thu, 12 Mar 2015 23:48:27 +0000 (23:48 +0000)] 
Fix the "now" option for date-time functions for cases when STAT4 is disabled.

FossilOrigin-Name: 3ac1f6a3cf1a8fd3ab1ca96b2564c13c4b8d2234

10 years agoWhen STAT4 is enabled, allow probes of the STAT4 table using the value
drh [Thu, 12 Mar 2015 21:22:08 +0000 (21:22 +0000)] 
When STAT4 is enabled, allow probes of the STAT4 table using the value
of constant functions computed at compile-time.

FossilOrigin-Name: 0f250957cd82be63e44eb99be6cc10760f4fdfc4

10 years agoAlways disallow functions as the DEFAULT of a column. Add assert()s and stat4-function
drh [Thu, 12 Mar 2015 21:02:36 +0000 (21:02 +0000)] 
Always disallow functions as the DEFAULT of a column.  Add assert()s and

FossilOrigin-Name: a991bb1a9eb54bdbd45bd623e8b304bdfeb481a3

10 years agoDisable multiplexing of master-journal files in the test_multiplex.c module.
dan [Thu, 12 Mar 2015 19:12:30 +0000 (19:12 +0000)] 
Disable multiplexing of master-journal files in the test_multiplex.c module.

FossilOrigin-Name: b8684df395b5585a9428417c2bfd076515560f19

10 years agoIf an error occurs in the compile-time evaluation of an application-defined
drh [Thu, 12 Mar 2015 18:38:51 +0000 (18:38 +0000)] 
If an error occurs in the compile-time evaluation of an application-defined
function, then propagate back out the exact error code, not just the
generic SQLITE_ERROR.

FossilOrigin-Name: 93f42586cc9db63c5a4599ce06630e60204a5bc9

10 years agoThe valueFromFunction() routine is better able to handle OOM errors.
drh [Thu, 12 Mar 2015 06:46:52 +0000 (06:46 +0000)] 
The valueFromFunction() routine is better able to handle OOM errors.
Omit unreachable branches.

FossilOrigin-Name: 8fb6bd9be59d6b04e922d7b246aaefd4851539b6

10 years agoImprove the text on one of the opcode documentation comments in vdbe.c.
drh [Thu, 12 Mar 2015 05:08:34 +0000 (05:08 +0000)] 
Improve the text on one of the opcode documentation comments in vdbe.c.

FossilOrigin-Name: 08958f57970d2346f3e98e62225e2b5d351d12d8

10 years agoAllow the default value for columns added using ALTER TABLE ADD COLUMN to be a functi...
dan [Wed, 11 Mar 2015 20:59:42 +0000 (20:59 +0000)] 
Allow the default value for columns added using ALTER TABLE ADD COLUMN to be a function in existing schemas loaded from disk. But prevent this version of SQLite from being used to create such a column.

FossilOrigin-Name: ff868e22ca0393eaac417872a4c10738f0d7d970

10 years agoAllow the query planner to evaluate deterministic scalar SQL functions used in WHERE...
dan [Wed, 11 Mar 2015 20:06:40 +0000 (20:06 +0000)] 
Allow the query planner to evaluate deterministic scalar SQL functions used in WHERE constraints if all arguments are SQL literals in order to compare the results with sqlite_stat4 sample data.

FossilOrigin-Name: b7f1fc26d24012e1e7c7f6b3cc0b84ad2b02b8ad

10 years agoExpand the multi-process test cases to repeat each case 20 times and
drh [Wed, 11 Mar 2015 14:34:38 +0000 (14:34 +0000)] 
Expand the multi-process test cases to repeat each case 20 times and
to repeat tests using different journal modes.

FossilOrigin-Name: a2715b049a86555990abccc7aa363c524ddb9982

10 years agoArrange for some of the transient locks in WAL mode to block, as a single
drh [Tue, 10 Mar 2015 20:22:35 +0000 (20:22 +0000)] 
Arrange for some of the transient locks in WAL mode to block, as a single
to the OS to fix priority inversions.

FossilOrigin-Name: c6e6d5f4e06c3ac0bfb620c0c728fbc7230c4a02

10 years agoFix an incrblob2 test case so that it works on 32-bit systems.
drh [Tue, 10 Mar 2015 15:34:47 +0000 (15:34 +0000)] 
Fix an incrblob2 test case so that it works on 32-bit systems.

FossilOrigin-Name: 8d0b11c96e15556dd65ced05708a832aef134e69

10 years agoRevise test cases in malloc5.test to accommodate varying allocation
drh [Tue, 10 Mar 2015 13:50:18 +0000 (13:50 +0000)] 
Revise test cases in malloc5.test to accommodate varying allocation
sizes returned by some system malloc() implementations.

FossilOrigin-Name: fbae6bafd74d8da9c72be5f562a62f80b01cc846

10 years agoFix the LIKE optimization so that it works even if there are additional
drh [Mon, 9 Mar 2015 13:01:02 +0000 (13:01 +0000)] 
Fix the LIKE optimization so that it works even if there are additional
range contraints on the column that is subject to the LIKE or GLOB.

FossilOrigin-Name: 984c3fd5261619fb542a5a95dab37707b5d79dbf

10 years agoAlways use LIKE optimization range constraints in pairs. like-opt-fix
drh [Mon, 9 Mar 2015 12:11:56 +0000 (12:11 +0000)] 
Always use LIKE optimization range constraints in pairs.

FossilOrigin-Name: 0e02dc94fd1bb891d0edd1e34b57e923b17712a7

10 years agoIncrease the version number to 3.8.9
drh [Mon, 9 Mar 2015 10:40:48 +0000 (10:40 +0000)] 
Increase the version number to 3.8.9

FossilOrigin-Name: e5da5e7d5dc5a3438ced23f1ee83e695abc29c45

10 years agoFix another problem with the LIKE optimization.
drh [Sat, 7 Mar 2015 20:32:49 +0000 (20:32 +0000)] 
Fix another problem with the LIKE optimization.

FossilOrigin-Name: 465bfc72d252f94778248253142faeba78ceea02

10 years agoFix the LIKE optimization so that it finds BLOB entries in addition to text
drh [Sat, 7 Mar 2015 13:56:48 +0000 (13:56 +0000)] 
Fix the LIKE optimization so that it finds BLOB entries in addition to text
entries.  Ticket [05f43be8fdda9f].

FossilOrigin-Name: 74cb0b032fcf598537fae04412771450124ae712

10 years agoNew test cases for LIKE and GLOB with BLOB left-hand side values.
drh [Sat, 7 Mar 2015 12:58:52 +0000 (12:58 +0000)] 
New test cases for LIKE and GLOB with BLOB left-hand side values.

FossilOrigin-Name: 50fa3c5fae90bd3b2f4121e99ab52d79963a6fda

10 years agoRemove some code that is commented out.
drh [Sat, 7 Mar 2015 03:02:38 +0000 (03:02 +0000)] 
Remove some code that is commented out.

FossilOrigin-Name: 55ff429177acfdab056a16a67361a5381115c6c7

10 years agoFix problems with reverse order sorting and indexes in the LIKE optimization.
drh [Sat, 7 Mar 2015 02:51:59 +0000 (02:51 +0000)] 
Fix problems with reverse order sorting and indexes in the LIKE optimization.

FossilOrigin-Name: 564b8fe79475d7584a21078e6098840b8ce6a6e1

10 years agoRefactor some jump opcodes in the VDBE. Add JumpZeroIncr and DecrJumpZero.
drh [Sat, 7 Mar 2015 00:57:37 +0000 (00:57 +0000)] 
Refactor some jump opcodes in the VDBE.  Add JumpZeroIncr and DecrJumpZero.
Fix the LIKE optimization to work with DESC sort order.

FossilOrigin-Name: 26cb5145bf52f8c3fffa8c69b6c24aee4d974883

10 years agoTest cases added. Comments fixed. Proposed solution for
drh [Fri, 6 Mar 2015 20:49:52 +0000 (20:49 +0000)] 
Test cases added.  Comments fixed.  Proposed solution for
ticket [05f43be8fdda9fbd9].

FossilOrigin-Name: 6b993bd54035b67f4d84941e3f444ca79b7feee1

10 years agoFix the LIKE optimization even when comparing mixed-case BLOBs.
drh [Fri, 6 Mar 2015 19:47:38 +0000 (19:47 +0000)] 
Fix the LIKE optimization even when comparing mixed-case BLOBs.

FossilOrigin-Name: a58aafdb4e1422b6a8ffc07a67984928bbedf919

10 years agoThe LIKE optimization must be applied twice, once for strings and a second
drh [Fri, 6 Mar 2015 16:45:16 +0000 (16:45 +0000)] 
The LIKE optimization must be applied twice, once for strings and a second
time for BLOBs.  Ticket [05f43be8fdda9f].  This check-in is a proof-of-concept
of how that might be done.

FossilOrigin-Name: 5757e803cb5759b476bbc6453c58340089611420

10 years agoClearification of some documentation text. Added requirements marks.
drh [Fri, 6 Mar 2015 04:37:26 +0000 (04:37 +0000)] 
Clearification of some documentation text.  Added requirements marks.

FossilOrigin-Name: 8c1e85aab9e0d90726057e25e2ea0663341c070f

10 years agoClarification of documentation on sqlite3_backup.
drh [Fri, 6 Mar 2015 03:31:58 +0000 (03:31 +0000)] 
Clarification of documentation on sqlite3_backup.

FossilOrigin-Name: 31d5e9b42e5c96207187dcde1cbbb1e79f26fca2

10 years agoNew test cases and requirements marks for PRAGMA index_info, index_xinfo,
drh [Thu, 5 Mar 2015 15:34:15 +0000 (15:34 +0000)] 
New test cases and requirements marks for PRAGMA index_info, index_xinfo,
and index_list.

FossilOrigin-Name: e5b13634d9794e4c75378cea89b64c5ecc5aa3e5

10 years agoRevert "PRAGMA index_info" to output only three columns, for complete
drh [Thu, 5 Mar 2015 14:29:02 +0000 (14:29 +0000)] 
Revert "PRAGMA index_info" to output only three columns, for complete
compatibility with prior versions.  The new "PRAGMA index_xinfo" can be
used to get the extra information in 4th, 5th, and 6th columns.

FossilOrigin-Name: fc543c2c5ced30a7dc3a05b0c1ad80fdc838df8e

10 years agoNew requirements marks on compound SELECT statements.
drh [Thu, 5 Mar 2015 01:29:51 +0000 (01:29 +0000)] 
New requirements marks on compound SELECT statements.

FossilOrigin-Name: e7991bc510f63f3594603a91f6f3b32e94d90e72

10 years agoNew requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
drh [Wed, 4 Mar 2015 23:14:14 +0000 (23:14 +0000)] 
New requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
options.

FossilOrigin-Name: c298ea0bd90d63673435bf8ceafbaeba3db6187d

10 years agoFix harmless compiler warning.
mistachkin [Wed, 4 Mar 2015 20:18:55 +0000 (20:18 +0000)] 
Fix harmless compiler warning.

FossilOrigin-Name: 580dae4615353d73c7d096107571bd60fec5b0f2

10 years agoRefinement to the wording of the documentation on depreciated functions.
drh [Wed, 4 Mar 2015 15:35:07 +0000 (15:35 +0000)] 
Refinement to the wording of the documentation on depreciated functions.

FossilOrigin-Name: 04a59d6f7ecbf769bd127a9071348b51ce8463f8

10 years agoRemove a surplus </dl> mark in the documentation. No changes to code.
drh [Wed, 4 Mar 2015 15:25:03 +0000 (15:25 +0000)] 
Remove a surplus </dl> mark in the documentation.  No changes to code.

FossilOrigin-Name: 5450e4650b2dedf3626bbe5a64b680dbd4011173

10 years agoClean up #ifdef logic dealing with VxWorks in os_unix.c. On VxWorks,
drh [Tue, 3 Mar 2015 20:42:01 +0000 (20:42 +0000)] 
Clean up #ifdef logic dealing with VxWorks in os_unix.c.  On VxWorks,
automatically use posix advisory locking if it is available or fall back
to named semaphore locking if not.

FossilOrigin-Name: ac8c7ca3db14ec19be1f19cfaf14b47fdda0c9ef

10 years agoFix compiler warnings when compiling under VxWorks 7.
drh [Tue, 3 Mar 2015 19:56:20 +0000 (19:56 +0000)] 
Fix compiler warnings when compiling under VxWorks 7.

FossilOrigin-Name: 55c21521a64703d7050c7f8975538f4cfae95eb7

10 years agoEnhance SQLITE_ALLOW_URI_AUTHORITITY to elide //localhost/ and to deal
drh [Tue, 3 Mar 2015 16:58:56 +0000 (16:58 +0000)] 
Enhance SQLITE_ALLOW_URI_AUTHORITITY to elide //localhost/ and to deal
with dodgy URIs that contain too many "/" characters.

FossilOrigin-Name: 39b566a2d0916c57f3fac756c6d6af149b44781d

10 years agoFix over-length source code lines in the main.c source file.
drh [Tue, 3 Mar 2015 14:00:11 +0000 (14:00 +0000)] 
Fix over-length source code lines in the main.c source file.

FossilOrigin-Name: debba6f161090bf9db1458fb3767d80d8362a73f

10 years agoChanges so that the amalgamation and the command-line shell build without
drh [Mon, 2 Mar 2015 22:06:43 +0000 (22:06 +0000)] 
Changes so that the amalgamation and the command-line shell build without
modifications on VxWorks 7.  Still gives a few compiler warnings, and still
mostly untested on that platform.

FossilOrigin-Name: 7d92f1f11ee69b0ba7d5a48f0611016d77d41c78

10 years agoEnsure that automatic indexes are *not* considered when doing the the subqueries
drh [Mon, 2 Mar 2015 17:25:00 +0000 (17:25 +0000)] 
Ensure that automatic indexes are *not* considered when doing the the subqueries
of the OR-optimization.

FossilOrigin-Name: 17890292cf1776b3334fca7eff693cdbea458304

10 years agoIn the command-line shell, the inability to read ~/.sqliterc is no longer
drh [Sat, 28 Feb 2015 14:03:35 +0000 (14:03 +0000)] 
In the command-line shell, the inability to read ~/.sqliterc is no longer
a fatal error.  A warning is issued, but processing continues.

FossilOrigin-Name: 6bf6246306e6fd490766c0a05932be52a0ed66f2

10 years agoMore test cases and requirements marks for pragmas.
drh [Sat, 28 Feb 2015 01:04:27 +0000 (01:04 +0000)] 
More test cases and requirements marks for pragmas.

FossilOrigin-Name: fc51037cd97063069620213a62efdeff5d898706

10 years agoRemove all references to SQLITE_DEFAULT_TEMP_CACHE_SIZE. Add requirements
drh [Fri, 27 Feb 2015 21:53:35 +0000 (21:53 +0000)] 
Remove all references to SQLITE_DEFAULT_TEMP_CACHE_SIZE.  Add requirements
marks related to cache_size changing.

FossilOrigin-Name: 766ad65025a9d5815300978e6e349f5af5db6012

10 years agoNew requirements marks and a few new test cases to go with them. No changes
drh [Fri, 27 Feb 2015 20:28:08 +0000 (20:28 +0000)] 
New requirements marks and a few new test cases to go with them.  No changes
to code.

FossilOrigin-Name: 8c2b29d9acb92d47f4deec21a7c2dca52db63345

10 years agoAdd a couple of requirements marks.
drh [Fri, 27 Feb 2015 00:33:15 +0000 (00:33 +0000)] 
Add a couple of requirements marks.

FossilOrigin-Name: d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182

10 years agoFix potential memory leaks in the misc 'compress' extension.
mistachkin [Thu, 26 Feb 2015 21:04:44 +0000 (21:04 +0000)] 
Fix potential memory leaks in the misc 'compress' extension.

FossilOrigin-Name: 3bc34fd427d9d7819cd9740237b1f5d4180341fa

10 years agoUpdate a requirements mark to reflect a change of wording in the documentation.
drh [Thu, 26 Feb 2015 16:40:41 +0000 (16:40 +0000)] 
Update a requirements mark to reflect a change of wording in the documentation.
No changes to code.

FossilOrigin-Name: 3038d0169bfc3f63d64c7fef20ab2323d032655f

10 years agoFix a real bug (in test code) that was introduced while trying to eliminate
drh [Thu, 26 Feb 2015 16:32:33 +0000 (16:32 +0000)] 
Fix a real bug (in test code) that was introduced while trying to eliminate
harmless compiler warnings from OpenBSD (see check-in [10321910990195878c]).

FossilOrigin-Name: a62ba58c737656fae620d9cdaaae299104ac06f6

10 years agoSimplifications to the description of the nByte parameter to sqlite3_prepare()
drh [Thu, 26 Feb 2015 02:33:52 +0000 (02:33 +0000)] 
Simplifications to the description of the nByte parameter to sqlite3_prepare()
and friends.

FossilOrigin-Name: 4bee8295e36fb61f903210b6d052ee9b8fb3b6d0