dan
1ce1b4a780
Run some of the existing test scripts with optimizations disabled as part of all.test.
...
FossilOrigin-Name: b0634d2f909fb192d20315e59fa31fcd8f316541
2010-12-07 14:32:28 +00:00
dan
c60982408c
Add tests to tkt-80ba201079.test.
...
FossilOrigin-Name: c370338c772bcd0797a23f83c3f6dc019640c6dd
2010-12-07 07:57:49 +00:00
drh
b0a7c9cd2f
Fix the build so that it once again works with SQLITE_OMIT_SHARED_CACHE
...
and SQLITE_OMIT_AUTOVACUUM.
FossilOrigin-Name: fabcb6b95e1d4059d1e6c6183f65846f6cbd5749
2010-12-06 21:09:59 +00:00
drh
f58ee7f1aa
Add the ability to disable constant factoring using sqlite3_test_control().
...
Add a TCL interface to this new capability and add tests cases to the TCL
test scripts to actually use the new capability.
FossilOrigin-Name: ad8bc68197f2b47435149c3dbc035f4e7210fc76
2010-12-06 21:06:09 +00:00
drh
ef4c059843
Back out part of the previous change that was not really necessary in order
...
to fix [80ba201079ea60], and which in fact serves no useful purpose.
FossilOrigin-Name: fa9eef865f2f399870305bef82296db25e5b3e90
2010-12-06 18:59:13 +00:00
drh
48b5b041d1
Initialize all constants at the very beginning of a prepared statement.
...
Do not allow constant initialization to occur once control flow has a chance
to diverge, to avoid the possibility of having uninitialized registers.
Ticket [80ba201079ea60807].
FossilOrigin-Name: c5c53152d68218bb5e7f922271dd7c50da2361c1
2010-12-06 18:50:32 +00:00
dan
eefab7512b
Have sqlite3_blob_bytes() return 0 following a failed call to sqlite3_reopen_blob().
...
FossilOrigin-Name: 476a8b492124d31e0656e61a6183ab55684c0bdf
2010-12-06 17:11:05 +00:00
drh
7a856fa64a
Version 3.7.4 release candidate 2.
...
FossilOrigin-Name: 40756fe1f109da8bccac0ca28f05435792c62f81
2010-12-04 19:35:04 +00:00
dan
014153f092
Fix a memory leak in fts3 that can occur in an OOM condition.
...
FossilOrigin-Name: 507027b70f71689f77dee3e849ebc66a1c4c3166
2010-12-04 18:20:18 +00:00
drh
ea76f55562
Remove an over-zealous call to memAboutToChange() from OP_MustBeInt.
...
OP_MustBeInt will never invalidate the Mem.z pointer so the memAboutToChange()
call is not necessary.
FossilOrigin-Name: 841cf7a7dbf0947cb7bde864609a8d3294f78689
2010-12-03 18:57:17 +00:00
drh
c80491dbd1
Version 3.7.4 release candidate 1
...
FossilOrigin-Name: 2e800cb87ded1a080469ea46878ac61f945f789e
2010-12-03 15:41:57 +00:00
dan
c99415d216
Add tests for fts3 to backcompat.test.
...
FossilOrigin-Name: b4eafde823bf30ebbb9232a88c9ddfa52f3cbabf
2010-12-03 15:04:26 +00:00
dan
25568441f5
Add the "valgrind" permutation. This is the same as veryquick.test except that it omits the multi-process tests that do not work under valgrind. No changes to production or existing test code.
...
FossilOrigin-Name: 49531300676b303f2ccec8d8d587b389c9eae98b
2010-12-03 10:32:06 +00:00
dan
4d8d27813c
Fix a bug causing fts3 to incorrectly return SQLITE_CORRUPT.
...
FossilOrigin-Name: 099195b14829f375055345b8322905ccd073d442
2010-12-02 17:39:26 +00:00
dan
3ed4afef3a
Exclude a test case from the inmemory_journal permutation of multiplex.test.
...
FossilOrigin-Name: 474196d6452f5868a712a9b0116d5f64c90d67c1
2010-12-02 14:47:06 +00:00
dan
c79b6a8c51
Fix a (harmless) valgrind warning in the rtree extension.
...
FossilOrigin-Name: a94b9a395e0be9549d8c28e2b86b995c73c7b671
2010-12-02 11:24:58 +00:00
dan
659816e9c2
Update misc7.test to account for EQP changes.
...
FossilOrigin-Name: 917af565ac0c71c14fcba56632e687ed938a856c
2010-12-02 06:08:53 +00:00
shaneh
8fcfc3449c
Changed multiplex shim's xFilesize to return an error on mismatched chunk size.
...
Added test of same.
FossilOrigin-Name: 6818c6e42faf233afa6b30799c5b425aa42d0783
2010-12-01 23:42:42 +00:00
shaneh
f5913a27bf
Make sure a test of multiplex shim doesn't fail if a file already exists.
...
FossilOrigin-Name: 80de240a329d8df4aa1e437711bf6ed889d92c5f
2010-12-01 22:08:45 +00:00
shaneh
72fe10fd15
Added TCL test case for converting to WAL mode with multiple connections.
...
Added exception to the test case for Windows for not being able to delete the open journal file.
FossilOrigin-Name: 7061601f4935af483f4068d257d6f8a9c728fd33
2010-12-01 20:49:42 +00:00
dan
ce7e189d24
Change the type of a variable in struct SrcList so that it fits in a 100 byte lookaside buffer on a 64-bit architecture.
...
FossilOrigin-Name: 7df43f4892e628ecb8a83c5ed2dce5e24f6dd529
2010-12-01 19:00:48 +00:00
shaneh
556f6bbc92
Fix some warnings under MSVC in fts3 module.
...
FossilOrigin-Name: c7771c0b22f2b45a47070cf84b9ecf1011e40404
2010-12-01 15:36:00 +00:00
dan
798b0072eb
Add test file e_resolve.test.
...
FossilOrigin-Name: 6858df9c72b1e9fb6c1a0050035b11822f87a5a7
2010-12-01 11:46:53 +00:00
dan
271065704c
Avoid recursive calls to sqlite3VdbeMemRelease() when deleting VM frames used by trigger programs.
...
FossilOrigin-Name: 119ffe955eb1e8016cb8131a63bd17557f395f3f
2010-12-01 08:04:47 +00:00
dan
4a8198255d
Add test file e_dropview.test.
...
FossilOrigin-Name: 6197822cc8310fd7e1d7151683833e8b39fe631a
2010-11-30 12:12:24 +00:00
dan
3239053e69
Fix a warning in os_unix.c.
...
FossilOrigin-Name: ee8dc8c87ed15b76ba437df23e1d7b1b7fa30296
2010-11-29 18:36:22 +00:00
dan
675f85c41c
On *BSD systems, reduce the number of open connections used by wal3.test to avoid running out of file-descriptors.
...
FossilOrigin-Name: 0a3cba95a14ae7a24b2d268567a02d651ab278dc
2010-11-29 18:22:44 +00:00
dan
0cb3a1eca4
Fix compiler warnings discovered while building SQLite on [ http://www.devio.us/ ].
...
FossilOrigin-Name: 5602ec95aa2a74d0624bb6c7d53e7a0d35536253
2010-11-29 17:55:18 +00:00
dan
5957b1bc73
Add tests for very small cache-sizes (less than 10 pages).
...
FossilOrigin-Name: 46b3fbdafe191cd0974cc3f46bc6aa52b3f1270e
2010-11-29 16:10:01 +00:00
dan
ccc7ff4d34
Add new test file e_droptrigger.test.
...
FossilOrigin-Name: d23ef9b88c6705219e5138e50f0f351f6401c401
2010-11-29 12:06:45 +00:00
drh
6ea28d6d84
Fix various compiler warnings.
...
FossilOrigin-Name: c412f61229b6ab1ac90b932afd56f7c5e3ba1cfe
2010-11-26 16:49:59 +00:00
dan
102b7de0e9
Fix an uninitialized variable in fts3.c.
...
FossilOrigin-Name: 3c3d076b42da36cd5413749ec022d0349325edfa
2010-11-26 16:31:43 +00:00
dan
609be6c912
Merge fts3 matchinfo() changes with trunk.
...
FossilOrigin-Name: 7d660b91b748126c499285713bd0237530a1a601
2010-11-26 15:17:12 +00:00
dan
72de061fb1
Add a couple of comments to fts3_snippet.c.
...
FossilOrigin-Name: ad8df6c5ee0055cf1161a3b700d69dbe07d969bc
2010-11-26 15:13:31 +00:00
dan
a93ca34129
Merge with latest trunk changes.
...
FossilOrigin-Name: 515cb3f4e5282551d300ba79c8885b8ca016a408
2010-11-26 10:58:48 +00:00
dan
c2f16cb12b
Add coverage tests (and associated fixes) for new matchinfo() code.
...
FossilOrigin-Name: 70495ceccc793d608930f59e330777f287ba1ede
2010-11-25 17:49:28 +00:00
dan
cf56554f42
Fix bugs in fts3 function matchinfo() when used with deferred tokens.
...
FossilOrigin-Name: ddc2b7ec2618b010c981ecfa05b3e53a9fac686f
2010-11-25 10:33:54 +00:00
dan
f9376540fa
Add code for the matchinfo 'longest common substring' feature.
...
FossilOrigin-Name: 71011a4f9baf09ec6935ad591145252bf3c286ed
2010-11-24 19:26:18 +00:00
dan
d6e12384bd
Fix crashes that can occur when queries are run on an FTS4 table containing zero rows.
...
FossilOrigin-Name: ed61fd20adef44d0f6b2345e0205b25f3641a15e
2010-11-24 15:02:22 +00:00
drh
01a109e50e
Fix a couple of compiler warnings in test_superlock.c. Add superlock.c
...
to the Makefile.in used by the configure script.
FossilOrigin-Name: 461f1a010f55e7da6b43ea65550066b1ca7abad0
2010-11-24 13:04:22 +00:00
dan
ad3acbbfb3
Remove some unused code from fts3. Add tests to fts3matchinfo.test.
...
FossilOrigin-Name: ae40b34cf7c24c9601bdfb5cbe5b20f05a376ea8
2010-11-24 11:51:56 +00:00
drh
df60971765
Cherry-pick the lemon.c updates out of the lemon-update-2010 branch into
...
the trunk.
FossilOrigin-Name: 1541ae3fbd7b3d471e002c0ad14e7846f7ad9415
2010-11-23 20:55:27 +00:00
drh
c84e033c92
The previous check-in with changes to the max_page_count pragma was not
...
quite correct. This check-in fixes the problem.
FossilOrigin-Name: 30c26c3b13b29ce57683e91ac11641d4eb4d678f
2010-11-23 20:25:08 +00:00
dan
1e66e40eb9
Experimental changes to fts3 function matchinfo().
...
FossilOrigin-Name: 9cf0f2b76bc68c168e3fa861b7235f384db21d38
2010-11-23 19:16:47 +00:00
drh
60ac3f426c
Fix the max_page_count pragma so that it will not set to a value smaller
...
than the current database size, as the documentation requires. Also,
remove all occurances of atoi() from the core.
FossilOrigin-Name: 2031974b606ef713b5f34522b2221470d98687c5
2010-11-23 18:59:27 +00:00
dan
15eac4e48a
Fix a typo in unixCurrentTimeInt64() preventing compilation with NO_GETTOD defined.
...
FossilOrigin-Name: 3df3e79b56821201b4f5ecd23f94d485745c48c3
2010-11-22 17:26:07 +00:00
dan
18826195f2
Extra tests for "PRAGMA checkpoint_fullfsync".
...
FossilOrigin-Name: e38c81cc18d2ceaa1644aaba64530ba5d1fbf2cf
2010-11-20 12:01:35 +00:00
dan
e284a0e94b
Add extra tests for test_superlock.c.
...
FossilOrigin-Name: 1c4e58e7211522f0e7dfddd3a2b52f1d0c5421e7
2010-11-20 10:57:44 +00:00
drh
27f9aba18c
Merge the checkpoint_fullfsync pragma and the superlock demonstration into
...
the checkpoint-v2 experimental branch.
FossilOrigin-Name: ebf74015f09fe241c1c6902dc8954f2b59ab41ec
2010-11-19 18:51:31 +00:00
dan
11f273fc0e
Add tests for "PRAGMA checkpoint_fullfsync".
...
FossilOrigin-Name: 765aa1b862fa38cede89bafe0e10c094e0544b7e
2010-11-19 18:48:10 +00:00
drh
204eaecda4
Merge in the superlock demonstration changes.
...
FossilOrigin-Name: 570e79a8eb3bb2d2a15c46c55fbf52c9dd3e3ae8
2010-11-19 18:36:44 +00:00
drh
c97d84638e
Add the checkpoint_fullfsync pragma which enables F_FULLFSYNC on checkpoint
...
operations only, not during ordinary commit fsyncs.
FossilOrigin-Name: a069867301de3ca2e1753bd4d2e426d27365be4c
2010-11-19 18:23:35 +00:00
dan
e336b0017d
Add file test_superlock.c with example code for obtaining an exclusive lock on either rollback or wal mode databases.
...
FossilOrigin-Name: 1a3e7417a2184188fe21c3284e58720da9ca11cf
2010-11-19 18:20:09 +00:00
drh
3eb0811457
Add the SQLITE_FCNTL_FILE_POINTER verb to sqlite3_file_control().
...
FossilOrigin-Name: 4425b0645d0afebe3172201012d501c6992daa38
2010-11-19 14:37:49 +00:00
dan
24cd616ed8
Add file test/tt3_checkpoint.c that adds a multi-threaded test for blocking checkpoints to threadtest3.
...
FossilOrigin-Name: 648dd157ef3b7b790764698fd4dd7107c25212c9
2010-11-19 09:58:11 +00:00
dan
08756372d0
Add extra test cases for blocking checkpoints.
...
FossilOrigin-Name: ac348ae25cb0239dc525bb473cc83cdb1b3de205
2010-11-19 07:17:09 +00:00
dan
f2b8dd588d
Fixes for SQLITE_BUSY handling in blocking checkpoint code.
...
FossilOrigin-Name: 4c663a4dcc77e00558edd94f58410605b95db33a
2010-11-18 19:28:01 +00:00
dan
d2892119c8
Merge with latest trunk fix.
...
FossilOrigin-Name: a8910e89dee326d7788b29e77820eb1e114739ca
2010-11-18 16:59:24 +00:00
dan
38777db5fe
Ensure tcl is using utf-8 as the system encoding when running capi3e.test.
...
FossilOrigin-Name: 0a95589f2166f9ce420e647b73e8c797fe8f4833
2010-11-18 16:58:48 +00:00
dan
7e0454fc72
Merge with latest trunk changes.
...
FossilOrigin-Name: e376480f0855c598c91529abacbd73e31d9f4713
2010-11-18 16:32:53 +00:00
dan
bdd9af0fc8
Update test cases to account for the change in the previous commit.
...
FossilOrigin-Name: ae089ec881beb1c2d278303ba964aaeffad1afe4
2010-11-18 16:14:24 +00:00
shaneh
13acedf254
Added some tests to check that umlaut characters are supported in filenames.
...
FossilOrigin-Name: c36f275d70ec8f6dead6adac02885026fdff9666
2010-11-18 15:44:59 +00:00
drh
3b691b5466
Restrict the scope of the fts3ExprCost() subroutine inside of FTS3.
...
FossilOrigin-Name: 76681870a4705179f78976e7fda638a6fea0b9f9
2010-11-18 13:52:34 +00:00
drh
437261d077
Fix compiler warnings.
...
FossilOrigin-Name: 6c4f1d5c24522d1f541a2b96b229ad0374f99c19
2010-11-18 13:47:50 +00:00
drh
e5a8a1df0d
Prevent a possible segfault when the sqlite3_value_numeric_type() interface is
...
misused to try to determine the numeric type of the NULL value returned
from sqlite3_column_value() with an invalid column number.
FossilOrigin-Name: 501b743bcb60cda0acf63bcf8a4abbf00797b347
2010-11-18 12:31:24 +00:00
dan
cdc1f049bf
Modify the interface to the blocking wal-checkpoint functionality.
...
FossilOrigin-Name: 72787c010c8944e8fcf9c98aa4482f129142d8e9
2010-11-18 12:11:05 +00:00
drh
79d086dffc
Restrict the scope of the sqlite3_stmt_readonly() interface to a specific
...
subset of prepared statement types.
FossilOrigin-Name: 919b06c3a803abb9236606a9b5885f0d8181e730
2010-11-17 02:02:45 +00:00
drh
f03d9ccc45
Adding the sqlite3_stmt_readonly() interface.
...
FossilOrigin-Name: fd5b2f23dd5111d2f0934dd828bae36b755024c1
2010-11-16 23:10:25 +00:00
dan
a58f26f93f
Add experimental command "PRAGMA wal_blocking_checkpoint", which uses the busy-handler to block until all readers have finished in order to ensure the next writer will be able to wrap around to the start of the log file.
...
FossilOrigin-Name: 7e3fc2c833a5baa08820c499867b6902bdc2ed5a
2010-11-16 18:56:51 +00:00
drh
95aa47b10a
Use the estimated number of rows computed for subqueries in the cost
...
computations for outer queries.
FossilOrigin-Name: 56bbc539246a6dc9f1ae1edb898db7a4f6f6d322
2010-11-16 02:49:15 +00:00
drh
04098e6085
Change the EQP output for the min/max optimization from "SCAN" to "SEARCH".
...
Other changes in where.c in support of full branch coverage testing.
FossilOrigin-Name: d52b593978aa1776af7aeb957c4f8df0c5cb7e43
2010-11-15 21:50:19 +00:00
drh
03b6df1e8e
Fix the EQP logic so that it correctly reports OOM errors while formatting
...
"detail" text.
FossilOrigin-Name: 136c2ac24ee1663bc0904bce1a619ecef3d11c1c
2010-11-15 16:29:30 +00:00
dan
3985479b9d
Change some test cases to account for the new EXPLAIN QUERY PLAN output.
...
FossilOrigin-Name: 88a854e18fc6bd619fa8d8a911abff50a9b76b9e
2010-11-15 16:12:58 +00:00
dan
91da6b8397
Test some example code from documentation page eqp.html.
...
FossilOrigin-Name: 547bc2c232cbf7b7ff295287ab8fddb880e517f9
2010-11-15 14:51:33 +00:00
drh
4f48d644e9
Merge the EXPLAIN QUERY PLAN changes from experimental into trunk.
...
FossilOrigin-Name: ce27bf38405ce805dad95ec22cbe68ddc7af544a
2010-11-15 14:44:30 +00:00
dan
712322dff7
Minor additions to vacuum.test.
...
FossilOrigin-Name: a397ed162246fef32b8c5db36d995bf9a8005a2e
2010-11-15 11:35:50 +00:00
dan
4bc39fa188
Change the EXPLAIN QUERY PLAN output to use "USING INDEX" instead of "BY INDEX", and to use "SEARCH" instead of "SCAN" for loops that are not full-table scans.
...
FossilOrigin-Name: 6611b76b0296875fb9903b25dfaa783a9c12eaa1
2010-11-13 16:42:27 +00:00
dan
fa00aa2ea1
Add EXPLAIN QUERY PLAN test cases to check that the examples in the documentation work.
...
FossilOrigin-Name: 85fdad850a4da33fd74f5394b921a63ea6b40bdb
2010-11-12 17:41:37 +00:00
dan
fffadc52f9
Change the test_multiplex.c code to use wrapper functions for all sqlite3_vfs methods (instead of copying function pointers from the underlying vfs into the multiplex vfs). This is required to work with test_osinst.c.
...
FossilOrigin-Name: 1244ef9f7ef813d86dca6f8e01681fa55ee9eec8
2010-11-12 15:49:04 +00:00
drh
69174c490a
Reduce the number of branches that need to be tested in the
...
explainIndexRange() function of where.c.
FossilOrigin-Name: 6fdae9a635a43e1bf7e4a480de1413064732c6b0
2010-11-12 15:35:59 +00:00
dan
30969d3f26
Use "COMPOUND" instead of "COMPOSITE" in the EXPLAIN QUERY PLAN output to describe UNION, UNION ALL, EXCEPT and INTERSECT operations.
...
FossilOrigin-Name: 28643b85d93d27a44b9370e4087efa8fa2af7f8e
2010-11-11 17:48:51 +00:00
dan
7f61e92c3a
Add a row of EXPLAIN QUERY PLAN output for each composite select operation (UNION, EXCEPT etc.) in the query.
...
FossilOrigin-Name: 00fb8468b5f2c48a3c91b86803bf306a0331496f
2010-11-11 16:46:40 +00:00
dan
acf1987d18
Fix a bug in the EXPLAIN QUERY PLAN code.
...
FossilOrigin-Name: 7ae068952fba4395b4aa437613a5ed2bd9ddf941
2010-11-11 11:43:01 +00:00
dan
47eb16d4ce
Modifications to test cases to account for new EXPLAIN QUERY PLAN output.
...
FossilOrigin-Name: 30904ef8412348464e893e9e1551ef22cad24a3e
2010-11-11 10:36:25 +00:00
shaneh
eb5dae1a65
Fix an assert that fired incorrectly when PRAGMA omit_readlock was set.
...
FossilOrigin-Name: e068758222bcd3f2367e9346f7154780cd395ddd
2010-11-09 20:33:33 +00:00
dan
22c6a595b1
Merge with latest trunk changes.
...
FossilOrigin-Name: 4b5c93bc7c43c80962ddae65c58037bf5977b94b
2010-11-09 17:49:39 +00:00
dan
17c0bc0c4a
Add missing comments and fix other issues with routines used by new EQP features.
...
FossilOrigin-Name: 925f35c535396603e13bb12e9a361072e2c2c223
2010-11-09 17:35:19 +00:00
dan
4a07e3db27
Further enhancements and fixes for explain query plan.
...
FossilOrigin-Name: 73c93f5a2a32ee8c5d07c9ba33b2641e72626627
2010-11-09 14:48:59 +00:00
shaneh
050d09abdc
Changes to the multiplex VFS to optionally (compiler define) allow
...
the "chunk extension" to overwrite the right-most chars of the filename
instead of simply being appended.
FossilOrigin-Name: 07da0a0beffda324d28fd2768c542ff69d4dbff2
2010-11-08 19:16:16 +00:00
dan
2ce224535f
Experimental changes to EXPLAIN QUERY PLAN.
...
FossilOrigin-Name: f4747eb83dacce6430ad6e5eb20155ffad975514
2010-11-08 19:01:16 +00:00
shaneh
0596beec9f
Fix to xTruncate and more journal mode tests for the multiplex VFS.
...
FossilOrigin-Name: 65fa1164f035d270db48db6474da888aacfba3bd
2010-11-05 20:50:43 +00:00
dan
a0c989dde7
Fix os_unix.c so that it works with the test_multiplex module.
...
FossilOrigin-Name: 72ba3e368bec34532ec7b5e856a4daa7e1c8cccb
2010-11-05 18:07:37 +00:00
shaneh
b5830294dc
More tests and added support for xDelete in multiplex VFS.
...
FossilOrigin-Name: f2004b44bfba62a7a2296b161a25aefdf55e035a
2010-11-05 17:51:25 +00:00
shaneh
e5a6ad6d63
Additional error checking and tests.
...
FossilOrigin-Name: 1ab9a59237bed6d03b55153a67588486f9adc67b
2010-11-05 03:58:58 +00:00
shaneh
fd1552f269
Additional tests and commenting for the multiplex VFS.
...
FossilOrigin-Name: 8ed944ba74566c6241d655a39801ad192c61219a
2010-11-05 03:43:54 +00:00
drh
d4e5285c90
Update the configure script for version 3.7.4.
...
FossilOrigin-Name: 18a73795b427e3d04a8a437410a271a50bbe32e4
2010-11-05 00:04:57 +00:00
drh
9bb7ae268e
Merge the multiplexer VFS demo into the trunk.
...
FossilOrigin-Name: 1635d927cd434052303e0e75f58a08a1e2fefd86
2010-11-05 00:01:39 +00:00
drh
5af3ebd05b
Fix the Makefile.in so that it works with the multiplexer VFS.
...
FossilOrigin-Name: 54e2efb6679433e48106247ed6ea0d4c029438b8
2010-11-05 00:00:42 +00:00
drh
5e41ac3460
Back out an unintended change to permutations.test.
...
FossilOrigin-Name: 57fe35357dba7ebb382486b916004004b35f8c55
2010-11-04 21:14:12 +00:00
shaneh
b59b95a403
Another change for testing on Windows.
...
FossilOrigin-Name: 2625886b1997dc92e7c3669a4f6ccf3560a4dd80
2010-11-04 21:13:56 +00:00
drh
5a092e98fa
Fix the main.mk makefile to include test_multiplex.c for testfixture.
...
FossilOrigin-Name: c27c51180e88744939ba5af099b6e510968ed2c3
2010-11-04 21:03:47 +00:00
shaneh
8a922f758d
First attempt at a sharding VFS to split large DBs.
...
FossilOrigin-Name: dd4dc8a4269e23ffe0e18438690da6077e17cdad
2010-11-04 20:50:27 +00:00
shaneh
7a420e227c
Fix size so it's really 32x32.
...
FossilOrigin-Name: 62c494f6947e53808404081c8f48cc327ef814e7
2010-11-04 20:47:44 +00:00
shaneh
f922d71570
Updates for Windows.
...
FossilOrigin-Name: cc9d9a12c3b19320b0ecfa78a6cee3d668004988
2010-11-04 20:46:09 +00:00
dan
6a88adcdeb
Include the print_pager_state() function only if SQLITE_DEBUG is defined.
...
FossilOrigin-Name: 3104f17e5dd0be4f176905dde6df3be50ba28702
2010-11-04 04:47:42 +00:00
dan
af4c214e1f
Changes to allow FTS4 tables to be created without the underlying %_docsize table (in order to save space).
...
FossilOrigin-Name: 31989b18f53d97eddfb39660ef04fbf9463583e0
2010-11-02 17:41:52 +00:00
drh
07bf3918f9
Add evidence marks for the sqlite3_blob_reopen() interface. Fix compiler
...
warnings in test1.c. Fix incorrect evidence marks on e_select.tcl.
FossilOrigin-Name: 3771faa88eda3eb91264ce0982e22f53596abd4b
2010-11-02 15:26:24 +00:00
dan
e08c2066c9
Add test cases to restore coverage of pager.c and wal.c.
...
FossilOrigin-Name: 6cae552927392d8b735aa118c318d7468097ebeb
2010-11-01 18:45:08 +00:00
dan
8c40800439
If a database file with the WAL flag set is opened in exclusive-locking mode, use heap memory to store the wal-index instead of shared-memory.
...
FossilOrigin-Name: 8dd5c69198619866923c6053b71899c1fb8c4c67
2010-11-01 17:38:24 +00:00
drh
b6e321c09a
Change the version number to 3.7.4.
...
FossilOrigin-Name: db64843b540d23c58fe4de199a7fc40d44900bc4
2010-11-01 14:34:31 +00:00
dan
bfa7e199ba
Fix a broken test case in exclusive.test.
...
FossilOrigin-Name: 582db83294599ffd7265d3ab2db2765e7e4fbb8d
2010-11-01 05:54:06 +00:00
dan
6bd2c735fa
Changes to test scripts so that they work with SQLITE_ENABLE_ICU.
...
FossilOrigin-Name: 465c819fdb601961eddb7304642c823d78111992
2010-11-01 05:42:26 +00:00
drh
3308b6ac52
Fix a test module comment typo reported on the mailing list.
...
FossilOrigin-Name: 87eb1f04d2dd06f34f1385006bf42ae6c8903d46
2010-10-31 22:47:15 +00:00
drh
0ee6862072
Fix a typo in a comment inserted by the amalgamation builder.
...
Typo reported on the mailing list.
FossilOrigin-Name: 6a6bb6ce733b421b42fa251dbda7fb19f72361ff
2010-10-31 22:42:27 +00:00
dan
cfddb09e3b
Test cases and minor changes to make fts3 more robust in the face of a corrupt database.
...
FossilOrigin-Name: b770290561f5450e4d985ca0050ef5eb01657c80
2010-10-30 15:21:13 +00:00
dan
797f3ee87c
Add extra test cases and changes to fts3 to avoid crashing on a corrupt database.
...
FossilOrigin-Name: 252f0e457d3e33404df87d3e6c44ede61b78319c
2010-10-29 18:45:10 +00:00
dan
ec03364911
Add new "dynamic_triggers" test case to threadtest3.c.
...
FossilOrigin-Name: a4691563dd2b3e5e8474467b0c5c46fb26351b77
2010-10-28 15:52:04 +00:00
dan
2b359bdbe4
Enforce the MAX_EXPR_DEPTH limit while building expression trees during SQL parsing.
...
FossilOrigin-Name: 2625eee0cb7f22dba61459b689e33a03ecebb6da
2010-10-28 11:31:23 +00:00
dan
f1f22bcc22
Avoid trying to allocate a negative number of bytes of memory in the test wrapper for sqlite3_blob_read().
...
FossilOrigin-Name: 739b5d9aa4eaa4191ca512d0dbf94a6bdbb12d97
2010-10-27 19:08:26 +00:00
dan
6c09b78d83
Merge experimental fts3/fts4 changes with trunk.
...
FossilOrigin-Name: 988164cf485300fb3d189fd1453c23c48e737e24
2010-10-27 18:10:00 +00:00
dan
8aaa252d8c
Fix a buffer overread in fts3 that can occur if the database is corrupt.
...
FossilOrigin-Name: 84194c4195d7144ff7f9cedcdc74fdd908f3bfcd
2010-10-27 16:52:27 +00:00
drh
efdde169f6
Fix a memory leak in the update_hook method of the TCL interface.
...
FossilOrigin-Name: 1d17e3dc832d789c3665e240dac5019fc4f9c18b
2010-10-27 15:36:21 +00:00
dan
8c30711208
In fts4, store the total number of bytes of for all records in the table in the %_stat table.
...
FossilOrigin-Name: 941647d121ac60e2eabc998cfe79b157fb918d7e
2010-10-27 10:55:54 +00:00
dan
61c7f59c10
Structural coverage tests for vdbeblob.c. Including experimental new API sqlite3_blob_reopen().
...
FossilOrigin-Name: 97c6b2616ddcce2337778c6ee88a973cc4fe999d
2010-10-26 18:42:52 +00:00
dan
e3d82a8723
Add missing header comments for changes related to the experimental sqlite3_blob_reopen() API.
...
FossilOrigin-Name: d1cc5c93f09c9092ec478c04e8d9a8b1f9c0cb04
2010-10-26 11:56:57 +00:00
dan
c7c91257d5
More coverage tests for fts3.c.
...
FossilOrigin-Name: 7a2f2864002d4e9a487e2779ae05513880ecb4d1
2010-10-26 07:14:25 +00:00
dan
e25ac099f1
Further improvements to coverage of fts3.c. Fixes for bugs revealed by the same.
...
FossilOrigin-Name: 918b609290127f54326c638d82837d117398eade
2010-10-25 19:01:25 +00:00
dan
ddf80eb8ce
Test coverage improvements for fts3.c.
...
FossilOrigin-Name: a8b1d99899678b72c2a487909eabed321593d55f
2010-10-25 12:47:43 +00:00
dan
74c3e78cad
Add test for matchinfo when a phrase includes some common tokens.
...
FossilOrigin-Name: 80a54ebc41e4224ab93d92cb390524db1c398155
2010-10-25 09:01:57 +00:00
dan
378d0ab97b
Fixes for the matchinfo() function related to FTS4 common token handling.
...
FossilOrigin-Name: deb80eac9112d21835dfd3cee08ed8f09d975bf7
2010-10-23 19:07:30 +00:00
dan
cfff8343ae
Add new test file fts3defer2.test.
...
FossilOrigin-Name: 5a4d5bfcaeb78a81713f138b01c0ea45a15c4d6c
2010-10-22 19:03:33 +00:00
dan
789cb8f5cf
Add missing comments and fix compiler warnings in new FTS3/4 code. Other minor fixes too.
...
FossilOrigin-Name: 1c9c70fec3c88319f7b2efe5316694a6ce0ab1a5
2010-10-22 16:44:39 +00:00
dan
76de8a750a
Prevent an assert from failing when opening a zero-length database file with an apparently hot journal with locking_mode=exclusive set.
...
FossilOrigin-Name: f000ac1e52f56f5fcbc2f8b9cd632656c6dc6002
2010-10-22 13:55:50 +00:00
drh
1ea870125c
Make sure the estimated row count for ephemeral tables is initialized so that
...
automatic indices can be used on those tables.
FossilOrigin-Name: d30f7b2deffdba373a2e0988f433c631c790a7b5
2010-10-21 22:58:25 +00:00
dan
ca3b8f9c86
Merge trunk changes into experimental branch.
...
FossilOrigin-Name: fd1e5cade04961c2f5438a1dfcc2e15eafb4503f
2010-10-21 15:49:47 +00:00
dan
06b5db0e39
Fix some segfaults that could occur in obscure circumstances where error messages contained characters that could be mistaken for printf format specifiers.
...
FossilOrigin-Name: f91471e7234db490f97298b1ccb8d6c7fc45b089
2010-10-21 15:12:44 +00:00
drh
3edd8a555d
Fix a typo-bug that prevented --disable-amalgamation from working in
...
Makefile.in. Also fix an overly long line in Makfile.in.
FossilOrigin-Name: 2c3c4ba035e548e97101142692133cf685da16bc
2010-10-21 12:34:29 +00:00
drh
020efb1666
Add new WHERETRACE macros for better diagnostics of the query planner.
...
Added a new test case for the performance regression fixed by the previous
check-in.
FossilOrigin-Name: 1e0db99797be2821716de7138931ebd5cf8fa63b
2010-10-21 03:13:58 +00:00
drh
75ad260c2d
Fix the query planner so that it uses the multi-index OR-clause solution if
...
that is the lowest cost estimate. A prior bug cause the multi-index solution
to be ignored in some circumstances.
FossilOrigin-Name: 28ba6255282b1419b8b165e8461018d257b1f6c2
2010-10-21 02:05:06 +00:00
dan
4e76cc3650
Updates to FTS4 to improve performance and make more accurate cost estimates for prefix terms.
...
FossilOrigin-Name: d0a450ce78e99f55c862f26f9332786660007a0a
2010-10-20 18:56:04 +00:00
dan
4f7c5e684a
Experimental changes to fts4 to try to selectively avoid loading very large doclists.
...
FossilOrigin-Name: 5ae0ba447a561e3b6637b52f9b83a9fc683d2572
2010-10-19 14:07:59 +00:00
drh
075ed30a9f
Avoid taking locks on unused database connections when committing a
...
read transaction.
FossilOrigin-Name: c0ee614fd988f445c4884a37f494479bdd669185
2010-10-14 01:17:30 +00:00
drh
94bb2ba619
Check-in [d3c95e3a4e08d0] was incorrect. This is the correct fix for
...
sqlit3_bind_blob(). Ticket [860399cc408f2dd5f4]
FossilOrigin-Name: ea8c2f5f8a890dcb422e9e46298ae6ca378c74b7
2010-10-14 01:16:32 +00:00
drh
6fec9ee34c
Fix the sqlite3_bind_blob() interface (and its kin) so that the destructor
...
is invoked if the binding fails. Ticket [860399cc408f2dd5f41aed44b]
Update the documentation to explain which interfaces invoke their
destructors on failure and which do not.
FossilOrigin-Name: d3c95e3a4e08d08028e9bc7f282074e32b9cf950
2010-10-12 02:13:32 +00:00
drh
88404c2a7d
Make sure the sqlite3_create_collation() interfaces always return an error
...
code if they fail. Ticket [a04e42a3fcacaffa3133436].
FossilOrigin-Name: 6464276ec1c0951a6edc59eb402ca3dd49629a18
2010-10-11 17:58:21 +00:00
drh
4e49c77f88
Further changes to extension loading to support compile-time options.
...
FossilOrigin-Name: f818fb6f73ada64eaf8785d9bb2d439b6d755461
2010-10-11 17:57:41 +00:00
drh
fd7ebbf696
Make APIs added since version 3.6.0 accessible to loadable extensions.
...
FossilOrigin-Name: 76c64a35567880b49af076df61c9fee76e934f14
2010-10-11 13:12:04 +00:00
dan
a975b59f94
Add tests to e_createtable.test.
...
FossilOrigin-Name: 38bec827f1a0603ad36d1dc1bc83430ae370df38
2010-10-08 16:09:43 +00:00
drh
14f7e16bc6
Version 3.7.3
...
FossilOrigin-Name: 2677848087c9c090efb17c1893e77d6136a9111d
2010-10-08 02:34:02 +00:00
drh
4c6a4788fb
Update the CLI test script to expect a version number of 3.7.3.
...
FossilOrigin-Name: e55ada89246d4cc5f476891c70572dc7c1c3643e
2010-10-07 13:29:13 +00:00
drh
51e79a7a3f
Update the configure script and Makefile so that they work with 3.7.3.
...
FossilOrigin-Name: 97b63a1168c761d4754d91062b73086f36069517
2010-10-06 20:25:00 +00:00
drh
5e87be8705
Fix long-standing bugs with the handling of LIMIT clausing in
...
compound SELECT statements with FROM clause subqueries.
Ticket [38cb5df375078d3f9].
FossilOrigin-Name: b0450120eabfe5455cea1ed04cec587a5540b6b7
2010-10-06 18:55:37 +00:00
dan
14d14607a5
Fix minor test suite problems causing errors on OSX.
...
FossilOrigin-Name: 759c954fee215a64f21fe13491515eebebbc6d01
2010-10-06 16:42:52 +00:00
dan
d468ad6559
Fix a bug in test code that was causing a valgrind error. No changes to production code.
...
FossilOrigin-Name: f29da7bec68fa2cdd97c75b30f7ab25c96f8d49a
2010-10-06 09:57:33 +00:00
drh
f7f55edb68
Do not embedded #if inside an assert() statement.
...
Fix for check-in [dca8763872a]
FossilOrigin-Name: d7d4a94fc1209fd32d7c8e20ac83eb169b81ee25
2010-10-05 18:22:47 +00:00
dan
96b958afae
Have the pager change to at least WRITER_CACHEMOD state before marking any pages as dirty (instead of immediately after). Otherwise, if an error occurs, the pager may be left in WRITER_LOCKED state with dirty pages in the cache.
...
FossilOrigin-Name: 471a4efbb7e5e32b144b2e2128337a6af950b8f5
2010-10-05 17:02:47 +00:00
drh
4533cd052d
If walLockExclusive() fails for reasons other than SQLITE_BUSY inside of
...
walRestartLog() then propagate that error back up to the application.
FossilOrigin-Name: 04dcba6b3379d2168609950ed919c8f743705333
2010-10-05 15:41:05 +00:00
drh
e062d7b847
Avoid all memory allocation (and hence the possiblitity of OOM failure)
...
in sqlite3_value_double() and sqlite3_column_double().
FossilOrigin-Name: 4afdf9705a7c2b67aea31c5d51b9c295867d62d1
2010-10-05 12:05:32 +00:00
dan
0015739ae5
Fix an assert() failing on OSX.
...
FossilOrigin-Name: dca8763872aa6244cb1a0f519167b360a6372d0d
2010-10-05 11:33:15 +00:00
dan
0a9312d92d
Prevent backcompat.test from mistaking directories for binary executables.
...
FossilOrigin-Name: 717a1e50f005714b1d5233f80697db14cd8af659
2010-10-05 08:13:44 +00:00
drh
547caad4c4
Fix a performance regression (relative to version 3.6.23.1) caused by the
...
query planner taking into account non-indexable WHERE clause terms to select
the outermost join loops when it should be selecting tables for the outermost
loop that do not benefit from being in an inner loop.
FossilOrigin-Name: ece641eb8951c6314cedbdb3243f91cb199c3239
2010-10-04 23:55:50 +00:00
dan
b4eb82f6cf
Fix a couple of test script problems.
...
FossilOrigin-Name: dd106901407a4d98644dd614e16e9fdc10cd7423
2010-10-04 16:06:11 +00:00
dan
072734ec6c
Fix memsubsys1.test so that it works with TEMP_STORE>=2.
...
FossilOrigin-Name: 8ad88ee0c1145eb9f92267c31d7d787739718716
2010-10-04 15:47:30 +00:00
shaneh
4b03f21e4f
Warning cleanup from MSVC.
...
FossilOrigin-Name: cde62657d6f410a3d6899cd7b4000d276fe3c813
2010-10-04 14:11:54 +00:00
dan
55f1da093c
Fix broken evidence marks in e_expr.test.
...
FossilOrigin-Name: 37ff94cec8a50d42c18f2253541bbcb0a6dfd0c3
2010-10-04 11:01:17 +00:00
dan
7b755196eb
Add tests for table-constraints to e_createtable.test.
...
FossilOrigin-Name: 70f511872e938e096537fb0ca097ccdd3b33becc
2010-10-04 10:45:32 +00:00
dan
57f7f4b815
Add tests for CHECK and UNIQUE constraints to e_createtable.test.
...
FossilOrigin-Name: fb8db5581d884e5eb380480bc08d2106bfb6a9fc
2010-10-01 19:04:37 +00:00
drh
aa1cf5abc0
Add #ifndef USE_SYSTEM_SQLITE...#endif around the bundled SQLite library
...
for the TCL bindings.
FossilOrigin-Name: 8d85584a4e0761afa0ff1e9e69036f1a66ab22dc
2010-10-01 17:23:46 +00:00
drh
4f788ec41a
Updates to the showjournal.c utility in order to bring it up to version 3.
...
FossilOrigin-Name: fa97d895463be6fd963c29b4525c2664193e36ec
2010-10-01 13:28:43 +00:00
drh
d66ff0aeaa
Merge experimental into trunk: Refactor the text-to-numeric conversion
...
routines to work without zero-terminators and in UTF16 as well as UTF8.
Avoid invalidating strings with doing affinity conversions.
FossilOrigin-Name: 07ee080ec4527fd2191f41231208da66b3f6b955
2010-09-30 20:33:40 +00:00
shaneh
a03a0563c1
Fix some matching issues in enc4.test affected by TCL versions.
...
FossilOrigin-Name: dd6d61a967e3c0d98b78987f6f7bb9bdf090174e
2010-09-30 20:11:24 +00:00
dan
a3f5108c1f
Add further tests to e_createtable.test.
...
FossilOrigin-Name: 0a4528d629018eae0b0f3e173ebda666c2e2d502
2010-09-30 18:43:14 +00:00
shaneh
0246dced24
Fix memory leak in enc4.test script.
...
FossilOrigin-Name: bfc294ae437e02984c08d47bed7b7fb49b71a1c2
2010-09-30 18:30:17 +00:00
shaneh
9fc47111f0
Additional encoding tests.
...
FossilOrigin-Name: c7f9363617a66ee43a87816ad42aaf2b75f13ea2
2010-09-30 18:19:44 +00:00
drh
6b87056570
Remove unnecessary calls to memAboutToChange() in vdbe.c. An affinity
...
change no longer invalidates shallow copies.
FossilOrigin-Name: afb0fd0b0421c42630c5e6e5e8811aca634bc9d0
2010-09-30 18:12:01 +00:00
drh
025586a259
Do correct affinity transformations on floating point values which have
...
a decimal point at the beginning or end of the mantissa.
Ticket [3998683a16a7076e08f5].
FossilOrigin-Name: ca154f97a590745539b2cbfd77eb319fd7392a40
2010-09-30 17:33:11 +00:00
shaneh
5f1d6b616e
Changes to remove sqlite3FitsIn64Bits().
...
FossilOrigin-Name: 43fef1cab6315f837782ea601d5a2aeb9843ab3c
2010-09-30 16:51:25 +00:00
drh
9351862b6d
Fix the handling of default values for ALTER TABLE ADD COLUMN columns so
...
that is able to deal with negative numbers, including large negative numbers.
Ticket [8454a207b9fd2243c4]
FossilOrigin-Name: ce6cc16e3a151a0c67855abde1411422dfcc8828
2010-09-30 14:48:06 +00:00
drh
9339da1f22
Rework the text to numeric conversion routines so that they work with either
...
UTF8 or UTF16 and do not require a NULL terminator. This allowed text to
numeric conversion without reallocating the string.
FossilOrigin-Name: 14eed3a0e0a45c6f2904a3a134aa27c159916f7b
2010-09-30 00:50:49 +00:00
dan
fac2bd452a
Add test cases to e_createtable.test.
...
FossilOrigin-Name: f34dc54d46d05adf1f52db51442195b3285a26b9
2010-09-29 18:26:24 +00:00
dan
8f1a8afd16
Add tests for "CREATE TABLE ... AS SELECT ..." statements to e_createtable.test.
...
FossilOrigin-Name: 1ef0dc9328f47506cb2dcd142150e96cb4755216
2010-09-29 23:09:23 +00:00
drh
65bafa6570
Updates to sqlite3_finalize() documentation.
...
FossilOrigin-Name: 8c5994cf8e5ae0c1cb8f655ac83e52e668e75c86
2010-09-29 01:54:00 +00:00
drh
8a8a0d1d60
Simplify the test that determines if the name of a new table collides with
...
a prior index name.
FossilOrigin-Name: 3f30f00a384d23582f3fe5e68add7fb7d7834926
2010-09-28 20:26:44 +00:00
dan
39f1bcb1df
Fix some problems that can occur if a trigger has the same name as another database object.
...
FossilOrigin-Name: 655991ec8a781d67d69fc353853403b9a811acf2
2010-09-29 07:16:46 +00:00
drh
c98a4c6db7
Merge accidental fork.
...
FossilOrigin-Name: 33c8b9c710db6a1a987c11ab6f3a6bc120257ce9
2010-09-28 17:37:44 +00:00
dan
a16d106037
Add tests to e_createtable.test. Allow a table to be created if there is an index of the same name in a different attached database.
...
FossilOrigin-Name: 6251e587403eed822b9011ed25a3a807e8fa2a6f
2010-09-28 17:37:28 +00:00
drh
f39d29c0bd
Get ANALYZE working again with -DSQLITE_ENABLE_STAT2 and virtual tables.
...
FossilOrigin-Name: b7a26427afc43c9bbdf365b775379eb57187bc97
2010-09-28 17:34:46 +00:00
dan
72c5ea3279
Disallow statements of the form "CREATE TEMP TABLE main.t1 ...".
...
FossilOrigin-Name: dd1b34bab7edaaedd985882f6e16b16940a46d38
2010-09-28 15:55:47 +00:00
drh
0f0b13ade9
Updates to e_vacuum.test so that it works when SQLITE_DEFAULT_AUTOVACUUM=1 is
...
set.
FossilOrigin-Name: 890816c52d688f01be9a8abd8b4c9375eed4de7e
2010-09-28 15:25:20 +00:00
drh
6ac78a0d9f
Fix several harmless compiler warnings.
...
FossilOrigin-Name: 7be03ecc04235420e54fed8a88742243278de160
2010-09-28 14:26:36 +00:00
dan
e2248da1d0
Fix an incompatibility with OMIT_VIRTUALTABLE in e_vacuum.test.
...
FossilOrigin-Name: 7d0b881a6294b7f13069b2e4b69c0c0d46606505
2010-09-28 14:11:25 +00:00
drh
3063d9ab1d
Updates to the sqlite3_get_table() documentation.
...
FossilOrigin-Name: c7aa238c3797d8f735739a182d18aeada089def2
2010-09-28 13:12:50 +00:00
drh
a63f6a9de7
Update the version number to 3.7.3 in preparation for the next release.
...
FossilOrigin-Name: 88108fff672b6012ffe87ba4b1efe6d5a07037d1
2010-09-28 07:24:49 +00:00
drh
f78f18e4e5
Merge fixes for ticket [b351d95f9cd5ef17e9d9dbae18f5ca8611190001] into
...
the trunk.
FossilOrigin-Name: 1f7ef0af8d9e41cd41f9046d198132eabd89ab18
2010-09-28 07:14:03 +00:00
drh
d81a142bfa
Replace some unreachable branch instructions with assert() statements.
...
FossilOrigin-Name: 88b84bf18a4b27626f8a0a2d313706ddd4f13749
2010-09-28 07:11:24 +00:00
drh
746fd9cc58
Tweaks to help facilitate structural test coverage.
...
FossilOrigin-Name: ff49a5f00b3aa83bdacc95a32d60527c740a6c09
2010-09-28 06:00:47 +00:00
drh
8b1db07f4e
Test case and fix for the specific failure of ticket [b351d95f9cd5ef17e9d9dbae].
...
FossilOrigin-Name: 57789cfe674dbbd4d5e4663774d1e7c541f7bdc4
2010-09-28 04:14:03 +00:00
drh
7153d1fb6e
Use OP_Copy rather than OP_SCopy at one point in aggregate processing where
...
it is needed to avoid shallow-copy misuse.
FossilOrigin-Name: a5eefd5239bf5b4f9d0bdfb312f5b33c0a196178
2010-09-28 03:55:02 +00:00
drh
ebc16717fa
Continuing work toward detecting and fixing shallow-copy misuse.
...
FossilOrigin-Name: d0342f4bb9d25dd1dba3957778faa993fb9cc81c
2010-09-28 00:25:58 +00:00
drh
2b4ded993b
Add assert() statements that fail when a shallow copy is accessed after the
...
original has been modified. These assert() statements should detect the kinds
of subtle SCopy bugs such as caused the fault
in ticket [b351d95f9cd5ef17e9d9dbae18f].
FossilOrigin-Name: 8b8e1732e8410efd5f8e308c43abe521584e87a0
2010-09-27 21:09:31 +00:00