mistachkin
398f109dfb
Merge updates from trunk.
...
FossilOrigin-Name: 3e363f405655e2e39588029d797496a952cca11d
2015-03-19 14:46:52 +00:00
drh
657b4a87e5
Fix a bug in error handling in the ".trace" command of the command-line shell.
...
FossilOrigin-Name: 6a48b5d794e891fdd167547c76835d677eb5e31d
2015-03-19 13:30:41 +00:00
drh
5572f7e42e
Also merge the WAL blocking lock tests that were somehow missed on the
...
previous check-in.
FossilOrigin-Name: 7214dab7443d35c105904dd69635c1f8b45b2fc8
2015-03-17 17:08:35 +00:00
dan
363fc9e724
Add a test for the change on this branch.
...
FossilOrigin-Name: e22dde187eb0b389d6d93e2e39a26fd0f4e6196e
2015-03-17 16:01:29 +00:00
mistachkin
05b6048dbd
Fix typo of test prefix in the new WHERE test file.
...
FossilOrigin-Name: 34779c528f1817d6ec34216b58fb4277956b5167
2015-03-16 18:08:56 +00:00
drh
29894b6d2b
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
2015-03-16 17:48:12 +00:00
drh
07b38959a4
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
2015-03-16 17:07:09 +00:00
drh
8426636cdc
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
2015-03-16 12:13:31 +00:00
dan
a0d56aef18
Another test case for the planner change on this branch.
...
FossilOrigin-Name: f2207a0691ed361061719f4dacf021a677a9d892
2015-03-16 09:21:30 +00:00
dan
a3d0c13654
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
2015-03-14 18:59:58 +00:00
dan
dfac7016a7
Add tests to ensure "PRAGMA incremental_vacuum" and "PRAGMA auto_vacuum = incremental" handle corrupt databases correctly.
...
FossilOrigin-Name: 1c2166cb2a387a0856f41b399c3648bf8c5fce73
2015-03-13 15:44:36 +00:00
dan
3df3059252
Extra tests for commit [0f250957].
...
FossilOrigin-Name: 5aa522dcb9bfa18d49683f7cc889516984e2bcd2
2015-03-13 08:31:54 +00:00
drh
e9b9f7599a
Remove debugging logic accidently included in the previous check-in.
...
FossilOrigin-Name: 2887fb38ffc28712c34028cd38db2b7993d864eb
2015-03-13 00:11:09 +00:00
drh
3df79a9a1f
Fix the "now" option for date-time functions for cases when STAT4 is disabled.
...
FossilOrigin-Name: 3ac1f6a3cf1a8fd3ab1ca96b2564c13c4b8d2234
2015-03-12 23:48:27 +00:00
drh
3795f3cee3
When STAT4 is enabled, allow probes of the STAT4 table using the value
...
of constant functions computed at compile-time.
FossilOrigin-Name: 0f250957cd82be63e44eb99be6cc10760f4fdfc4
2015-03-12 21:22:08 +00:00
dan
63c088e783
Disable multiplexing of master-journal files in the test_multiplex.c module.
...
FossilOrigin-Name: b8684df395b5585a9428417c2bfd076515560f19
2015-03-12 19:12:30 +00:00
dan
18bf807689
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
2015-03-11 20:06:40 +00:00
drh
94929646f1
Fix an incrblob2 test case so that it works on 32-bit systems.
...
FossilOrigin-Name: 8d0b11c96e15556dd65ced05708a832aef134e69
2015-03-10 15:34:47 +00:00
drh
9b5d76bf57
Revise test cases in malloc5.test to accommodate varying allocation
...
sizes returned by some system malloc() implementations.
FossilOrigin-Name: fbae6bafd74d8da9c72be5f562a62f80b01cc846
2015-03-10 13:50:18 +00:00
drh
560b7c72be
New test cases for LIKE and GLOB with BLOB left-hand side values.
...
FossilOrigin-Name: 50fa3c5fae90bd3b2f4121e99ab52d79963a6fda
2015-03-07 12:58:52 +00:00
drh
b7c60ba668
Fix problems with reverse order sorting and indexes in the LIKE optimization.
...
FossilOrigin-Name: 564b8fe79475d7584a21078e6098840b8ce6a6e1
2015-03-07 02:51:59 +00:00
drh
16897072b5
Refactor some jump opcodes in the VDBE. Add JumpZeroIncr and DecrJumpZero.
...
Fix the LIKE optimization to work with DESC sort order.
FossilOrigin-Name: 26cb5145bf52f8c3fffa8c69b6c24aee4d974883
2015-03-07 00:57:37 +00:00
drh
a9c18a9067
Test cases added. Comments fixed. Proposed solution for
...
ticket [05f43be8fdda9fbd9].
FossilOrigin-Name: 6b993bd54035b67f4d84941e3f444ca79b7feee1
2015-03-06 20:49:52 +00:00
drh
8dd7a6a925
Clearification of some documentation text. Added requirements marks.
...
FossilOrigin-Name: 8c1e85aab9e0d90726057e25e2ea0663341c070f
2015-03-06 04:37:26 +00:00
drh
7be0fd9c58
New test cases and requirements marks for PRAGMA index_info, index_xinfo,
...
and index_list.
FossilOrigin-Name: e5b13634d9794e4c75378cea89b64c5ecc5aa3e5
2015-03-05 15:34:15 +00:00
drh
5e7028c210
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
2015-03-05 14:29:02 +00:00
drh
2af878ec5e
New requirements marks on compound SELECT statements.
...
FossilOrigin-Name: e7991bc510f63f3594603a91f6f3b32e94d90e72
2015-03-05 01:29:51 +00:00
drh
682a6ef6bd
New requirements marks on INSERT and INDEXED BY and on some sqlite3_config()
...
options.
FossilOrigin-Name: c298ea0bd90d63673435bf8ceafbaeba3db6187d
2015-03-04 23:14:14 +00:00
drh
51a74d4cbd
More test cases and requirements marks for pragmas.
...
FossilOrigin-Name: fc51037cd97063069620213a62efdeff5d898706
2015-02-28 01:04:27 +00:00
drh
9d356fbe6e
New requirements marks and a few new test cases to go with them. No changes
...
to code.
FossilOrigin-Name: 8c2b29d9acb92d47f4deec21a7c2dca52db63345
2015-02-27 20:28:08 +00:00
mistachkin
0404e74caa
Merge updates from trunk.
...
FossilOrigin-Name: acf7684323da4dc3aaf9746bd13b0f56054a17dd
2015-02-27 19:40:08 +00:00
drh
22ec13466c
Add a couple of requirements marks.
...
FossilOrigin-Name: d70b0fd4c94f2b70cf31c2ab9ef7a2fb2e71c182
2015-02-27 00:33:15 +00:00
drh
531b55ead0
Update a requirements mark to reflect a change of wording in the documentation.
...
No changes to code.
FossilOrigin-Name: 3038d0169bfc3f63d64c7fef20ab2323d032655f
2015-02-26 16:40:41 +00:00
dan
2a45cb5c0e
Prevent partial indexes on the table on the left hand side of a LEFT JOIN from being incorrectly qualified by a constraint in the ON clause of the join. This relaxes the rule introduced by the previous commit (as the partial indexes on the table on the rhs of the LEFT JOIN may now be qualified by terms within the ON clause).
...
FossilOrigin-Name: 1d6fb43a576d335d2717e94d28385178c23c81a1
2015-02-24 20:10:49 +00:00
drh
e006a86643
More test cases to help ensure that partial indexes do not get used if their
...
qualifing constraint is inside the ON clause of a LEFT JOIN.
FossilOrigin-Name: c6399958a17e8b7c1798a9240fb06bffc774b332
2015-02-24 18:39:00 +00:00
drh
077f06edfa
This additional fix prevents a partial index from being qualified for use
...
if the constraint that qualifies the partial index is part of the ON clause of
a LEFT JOIN.
FossilOrigin-Name: 1a1516e4da26dcee35e6fbb6604ce252faf3d116
2015-02-24 16:48:59 +00:00
drh
36f65bafe5
Make sure partial automatic indexes are not based on terms in the ON clause
...
of a LEFT JOIN. Fix for ticket [2326c258d02ead3].
FossilOrigin-Name: c0f4e308a508183b72ceda447dc3ac778cb85b9f
2015-02-24 16:05:54 +00:00
drh
883ad04985
First small steps toward brining trunk and apple-osx closer together.
...
FossilOrigin-Name: 28284ccc0d7301503f6d2d7bee9093738d52e331
2015-02-19 00:29:11 +00:00
mistachkin
a0efb1ae11
For the shell '.import' command, make sure the last column value present is considered before NULL filling any missing ones.
...
FossilOrigin-Name: 9c5bcad1f7d04c16f3ec7fc483280059ae93961b
2015-02-12 22:45:25 +00:00
drh
2c5e9b5672
Add test cases for the query flattener fix for
...
ticket [2f7170d73bf9abf8].
FossilOrigin-Name: dd8f7f7511639a1baa41a6ff2e359dc6f1e66943
2015-02-09 16:34:33 +00:00
drh
2308ed3854
Propagate the COLLATE operator upward through function calls.
...
Initial fix for ticket [ca0d20b6cdddec5e8].
FossilOrigin-Name: c053448a55f9d030e8ffe88cf4fc14ada7f6ec19
2015-02-09 16:09:34 +00:00
drh
d10d18da5f
Fix potential 32-bit integer overflow problems on the offset and length
...
parameters to sqlite3_blob_read() and sqlite3_blob_write(). For
sqlite3_blob_open(), make sure the *ppBlob return parameter is zeroed if
the interface fails with SQLITE_MISUSE.
FossilOrigin-Name: 5df02f50f8348dfde4fc15126abc7b7ef7803e69
2015-02-07 15:16:35 +00:00
drh
0e55db1cd8
Change the name of ".info" to ".dbinfo" and add an optional second argument
...
which is the ATTACH-ed DB about which information is provided. Provide
".indexes" as an alternative name to the legacy ".indices" command.
FossilOrigin-Name: 0f65a7e2e09f801b66897479d501607caeae4abf
2015-02-06 14:51:13 +00:00
drh
4bb8cb0927
Merge all recent trunk changes, including the movement of the pragma
...
table into the separate pragma.h header file.
FossilOrigin-Name: 3af19f84446ba5fc1ed754d0d73f6a6d7fb2f365
2015-02-04 23:13:48 +00:00
drh
1dae26bdab
Fix a typo in the --help output for speedtest1. Fix a dependency error
...
in the Makefile.in for speedtest1.
FossilOrigin-Name: f30a057aeeac2b863493b6325325b075a76b9d21
2015-02-03 19:20:03 +00:00
drh
c228be5b1f
Add the "index_xinfo" pragma. Add new columns to the "index_info" and
...
"index_list" pragmas.
FossilOrigin-Name: 30f51d7b3b292191e8351223242e708bb7f3dfa6
2015-01-31 02:00:01 +00:00
drh
1ffede8c86
Change SQLITE_TESTCTRL_INITMODE to SQLITE_TESTCTRL_IMPOSTER. Revise the order
...
of parameters. Give it the ability to reset the schema parse table so that
imposter tables can be erased.
FossilOrigin-Name: 42d5601739c90434e5adfda8fa99ef7b903877db
2015-01-30 20:59:27 +00:00
drh
0699f29a14
Added SQLITE_TESTCTRL_INITMODE for improved testability.
...
FossilOrigin-Name: 98e029134dc1300d3ecb48b41b5107ec69ba85db
2015-01-30 15:52:26 +00:00
drh
917682a4f4
Add a few simple test cases for SQLITE_TESTCTRL_INITMODE - cases which
...
also test PRAGMA integrity_check.
FossilOrigin-Name: 3a6e2afe408d2b0c8166d00def2048568169d87a
2015-01-30 15:40:15 +00:00
mistachkin
fdc2e6d344
Fix some duplicated test names.
...
FossilOrigin-Name: 1797158db2a818134c5cba1578f69ed85948b980
2015-01-29 19:27:31 +00:00