Commit Graph

6056 Commits

Author SHA1 Message Date
drh
5bd98aef66 Fix a bug in the LIKE query optimization. (Found by coverage testing.) (CVS 6137)
FossilOrigin-Name: fe90e9116b6e1e25cf3119d2777a8e9c135153ce
2009-01-07 18:24:03 +00:00
danielk1977
f70c1fee96 Make the same change as (6121) (accidentally reverted). Also enhance test_journal.c to catch this kind of bug. (CVS 6136)
FossilOrigin-Name: ccc9c211a285fd4da68b69e15594f080371be522
2009-01-07 18:08:48 +00:00
danielk1977
be87104706 Add a "synchronous = off" variant to savepoint6.test. (CVS 6135)
FossilOrigin-Name: 0f57011e3b21fa5f6a819ce5a7fd8d44ea70679f
2009-01-07 17:06:52 +00:00
danielk1977
a7c17af64d Change SQLITE_MAX_FUNCTION_ARG from 100 to 127 to match invariant H16124. Ticket #3567. (CVS 6134)
FossilOrigin-Name: 1fe79ffd772900bdca85ec6cf072677be53cd5ff
2009-01-07 16:15:42 +00:00
drh
f3c57015d8 For archival purposes, add the TCL script that was used to generate many
of the test cases for where7.test. (CVS 6133)

FossilOrigin-Name: 0e01cdc8d283acd2757d69bf6d8e36bb1f47d460
2009-01-07 15:52:54 +00:00
drh
ee03d629f5 Conjecture: a journal header with nRec==0 must be the last header in the
journal.  Add asserts to make this conjecture explicit. (CVS 6132)

FossilOrigin-Name: 15b5b5f90c2ffa79155cdc2dbc4fb5583cb72017
2009-01-07 15:33:45 +00:00
danielk1977
f90b7260b3 Fix for 'truncate file' operations on in-memory databases. (CVS 6131)
FossilOrigin-Name: 83d1eafbde556f56969c6f285b6767d2c658dbfc
2009-01-07 15:18:20 +00:00
danielk1977
9153d850cc Add a comment to the openSubjournal() function in pager.c. (CVS 6130)
FossilOrigin-Name: 04387ae10ab3be24c93497f4af6f48d6832f37eb
2009-01-07 10:52:56 +00:00
danielk1977
1fab7b6664 Fix a problem with reverting a 'DROP TABLE' command executed inside of a savepoint on an auto-vacuum database. (CVS 6129)
FossilOrigin-Name: 3a4bb83235e9a79297e7d5d47ac7674c9df960bf
2009-01-07 10:35:18 +00:00
danielk1977
fc158bf920 Fix savepoint related bugs. A rollback caused by an IO error or "OR ROLLBACK" clause while one or more savepoints were open was leaving the sqlite3 structure in an invalid state. (CVS 6128)
FossilOrigin-Name: e5d42c69a3b325ca12f53184e33964230acbdd1f
2009-01-07 08:12:16 +00:00
drh
f2a84e3ca6 Add a HIGHSTRESS parameter to the sqlite3_config_alt_pcache debugging
command in the test harness - to force calling pagerStress() more
frequently. (CVS 6127)

FossilOrigin-Name: e426860b94f5b47e3a265549dbac64a421cae425
2009-01-07 03:59:47 +00:00
drh
d6e5e09816 Pager changes attempting to verify that ticket #2565 cannot recur. (CVS 6126)
FossilOrigin-Name: 15b9dac455b3f457bb177fc4985b45957647cbec
2009-01-07 02:03:35 +00:00
drh
5093f6e5ee Now that we have permutations.test, it is really only necessary to run
all.test for a single cycle.  So make that the default. (CVS 6125)

FossilOrigin-Name: 3c2f292fb7c79ba9be32fe8f19e52b35b9cadf6a
2009-01-06 18:43:51 +00:00
danielk1977
076dce5336 Reduce the number of paths in btreeCopyFile(). (CVS 6124)
FossilOrigin-Name: df2c285cb99ac188c96dd1a4e6a30f689195a150
2009-01-06 18:21:08 +00:00
danielk1977
cd1cbff38b Modify test_journal.c to verify the page data being written to the journal file. (CVS 6123)
FossilOrigin-Name: 0d258956f8971c0af7853b836a7d6e7f3a800c37
2009-01-06 17:52:43 +00:00
drh
30d537011a Cleanup of the PAGERTRACE macro. Other comment changes in pager.c. (CVS 6122)
FossilOrigin-Name: ee7b4b60880e80e6fb0b2f93ebc6ee5ad6917f9d
2009-01-06 15:58:57 +00:00
danielk1977
be9c0ab276 The fix in (6120) wasn't quite right. This fixes it. (CVS 6121)
FossilOrigin-Name: ddc2ebfa529b15cdbdd3b6b6d4873cb085cfd3b9
2009-01-06 15:28:34 +00:00
danielk1977
f9bce3c54d Fix a recently introduced problem in "permutations.test autovacuum_crash". (CVS 6120)
FossilOrigin-Name: 2cdbb468ed81d35a7e1a580683864de60e103083
2009-01-06 15:20:58 +00:00
drh
04df18dce8 Update permutations.test so that it does not show an error when running
the singlethread and multithread test cases on THREADSAFE=0 builds. (CVS 6119)

FossilOrigin-Name: 301b57b7bac949dd77037ad3175ba87c41c8c843
2009-01-06 14:50:11 +00:00
danielk1977
401b65ed77 Fix a memory leak in test_journal.c (test code). Also remove function pager_truncate_cache(), a wrapper around sqlite3PCacheTruncate(), from pager.c. (CVS 6118)
FossilOrigin-Name: a64f3db0b39af53c8d8f80c242baa8aa4b5bd04e
2009-01-06 14:34:34 +00:00
drh
1c8781f43b Fix compiler warnings. (CVS 6117)
FossilOrigin-Name: da770a8dff183b28aca287cafb9c8b82b98ea968
2009-01-06 14:19:36 +00:00
danielk1977
f2c31ad8af Add some savepoint related test cases and fix a few problems. (CVS 6116)
FossilOrigin-Name: 8c62ea4fded2251e9daf16f2a050f94359299d76
2009-01-06 13:40:08 +00:00
drh
a6dbbacbcb Remove leftover "breakpoint" from the fuzz.test script. (CVS 6115)
FossilOrigin-Name: c2482d8877a5f9e387b288377e410ae1b8267f3c
2009-01-06 00:11:25 +00:00
drh
813f31eafe Fix a problem in the WHERE clause generator when the FROM clause is empty. (CVS 6114)
FossilOrigin-Name: a7015625610624be1645e918d0a62cf85bec86ce
2009-01-06 00:08:02 +00:00
drh
de58ddb709 The fix in (6111) was not quite right. This version works better. (CVS 6113)
FossilOrigin-Name: 5f80140a2df48fd43a7cbc0990de0205004541b0
2009-01-05 22:30:38 +00:00
drh
66cd1822fe Reenable fuzz testing for all.test. Make sure the query flattener copies
over aggregate information from expressions on outer query terms while
flattening. (CVS 6112)

FossilOrigin-Name: e02323b3629545a3e7e7db0d4edc76807ae903aa
2009-01-05 19:36:30 +00:00
drh
68ac65ecdc Make sure the MEM_Zero flags is cleared whenever removing MEM_Blob. (CVS 6111)
FossilOrigin-Name: b2131e868a3a948ba81f7458270493085da1ae60
2009-01-05 18:02:27 +00:00
drh
8f51eb8fa0 Include fuzz3.test in all.test. Get fuzz3.test working again. (CVS 6110)
FossilOrigin-Name: 77dc19cfabca54353509ff346b12975044d416d5
2009-01-05 17:19:03 +00:00
danielk1977
0d519ca883 Fix some test code problems in "permutations.test journaltest pager.test". (CVS 6109)
FossilOrigin-Name: cf627752c4537f709acae26a1e335731d55bddb2
2009-01-05 17:15:00 +00:00
danielk1977
7e445fbf33 Add some tests with attached databases to savepoint.test. Also tests of creating and dropping tables in auto-vacuum mode inside of a savepoint. (CVS 6108)
FossilOrigin-Name: ca7f11d50d1a73443d18c79dfe4223c975c6e20b
2009-01-03 15:06:38 +00:00
drh
853799a26e When the commit_hook calls a query recursively, make sure the commit_hook
is not invoked recursively.  Ticket #3564. (CVS 6107)

FossilOrigin-Name: 27ae406537c07073db46ecde40c65c78fbb73170
2009-01-03 14:04:38 +00:00
drh
a8a71bac3f Fix a typo in a comment. (CVS 6106)
FossilOrigin-Name: 50f57cd1456f18919a8c90efa05da446ae12788d
2009-01-03 12:55:17 +00:00
danielk1977
e7e6f12aaa Add test file savepoint6.test. Contains pseudo random tests of savepoint related commands. (CVS 6105)
FossilOrigin-Name: 2946fbb7183d597b4db1db203eb5fd57c9762dc4
2009-01-03 10:41:29 +00:00
drh
7539b6b81a Memory allocation failure in Bitvec are probably all benign. Still, add
code to check this, just to be sure. (CVS 6104)

FossilOrigin-Name: 4688e1c8b1203c3538aa862421ed344888059fe2
2009-01-02 21:39:39 +00:00
drh
9f0bbf9cae Reinitialize page 1 of the database file following a ROLLBACK TO of a
transactional SAVEPOINT on an initially empty database. (CVS 6103)

FossilOrigin-Name: 3e9efb763875b20c856d748c19e449080a3ae97c
2009-01-02 21:08:09 +00:00
drh
49b9d33892 Fix compiler warnings in pager.c (CVS 6102)
FossilOrigin-Name: 78dd7909da15a9b2cbcdb9cbe86798cfc24f3230
2009-01-02 18:10:42 +00:00
danielk1977
cd38d520d1 Modify the (transaction) method of the tcl interface to use savepoints. This makes nested calls to (transaction) work more intuitively. (CVS 6101)
FossilOrigin-Name: f047758de9b499866aa4ddf16011498b12a7b963
2009-01-02 17:33:46 +00:00
shane
5df7c0f96b Add fts_expr.* files to Makefile.in. (CVS 6100)
FossilOrigin-Name: 524c8634dfa5926f38fac8bac1da6a14178c7764
2009-01-02 15:47:01 +00:00
shane
d3fc21d1fd Many of the boundary tests depend on a working 64-bit implementation of TCL, so skip them if this is not available. (CVS 6099)
FossilOrigin-Name: b1a4a17f8752d27f3b360019490ab3f15a1f629f
2009-01-02 15:45:47 +00:00
drh
4698e790b3 Increment the version number to 3.6.8. (CVS 6098)
FossilOrigin-Name: 7509641a4c410b1eaaf1edba259fbe01cd60b108
2009-01-02 12:35:03 +00:00
drh
be90df0b3e Do not display matches against
the right-hand side of a NOT operator in the output
of the FTS snippet() or offsets() functions. (CVS 6097)

FossilOrigin-Name: d44c84c0f77bd0fc4a9942177b6cae6d109b89b7
2009-01-02 01:10:42 +00:00
danielk1977
c81806f3ed Fix a (benign) valgrind error that can occur following malloc failure while executing a 'ROLLBACK TO savepoint' command. (CVS 6096)
FossilOrigin-Name: 9ff8598f3be123a244f71b45e77af913b836504a
2009-01-01 15:20:37 +00:00
danielk1977
fc8c9f84ab Fix some problems in the fts3 expression parser with mismatched parenthesis. (CVS 6095)
FossilOrigin-Name: ccfe4580ac7ba9add0e69c786a9a3a43d69b7753
2009-01-01 14:06:13 +00:00
drh
b39187ae89 Additional test cases and cleanup of FTS3 parenthesis processing. (CVS 6094)
FossilOrigin-Name: afac4293000f81410d105a99956605bf7102fa62
2009-01-01 12:34:45 +00:00
danielk1977
758bc07c43 Add a couple of extra tests for the fts3 expression parser to improve mcdc coverage. (CVS 6093)
FossilOrigin-Name: 13146b34935d339d7b8379083e024647af07e2c1
2009-01-01 07:42:49 +00:00
danielk1977
5973e6a30b Add pseudo-random tests of the fts3 expression parser. Revise the fix in (6091). (CVS 6092)
FossilOrigin-Name: 11c2d4686197fb3f0d601651d5bbb3492af8f0dd
2009-01-01 07:08:54 +00:00
danielk1977
49b4b4d84a Fix a bug parsing "<expr> AND (abc NEAR def)" in fts3_expr.c. (CVS 6091)
FossilOrigin-Name: d1a6a2edd799d65ff88510df951e909919e35b6b
2009-01-01 04:19:51 +00:00
drh
f3d20c04a2 Avoid surplus bytes at the end of the keyword string table.
Add testcase() macros to make sure all keywords are used during
testing. (CVS 6090)

FossilOrigin-Name: 73958060aaf641d93bede3a42851e5b3451f5432
2008-12-31 21:52:40 +00:00
drh
42128b9e33 Fix the name in the documentation of the compile-time macro for
enabling FTS3 parenthesis processing. (CVS 6089)

FossilOrigin-Name: ac8258da6ecd3ea37f394dc3b48834eb57832cf4
2008-12-31 19:27:53 +00:00
drh
757b178100 Fix the FTS3 expression parser so that it works in the amalgamation when
FTS3 is disabled. (CVS 6088)

FossilOrigin-Name: 7e238e8604b9a9f786d84a47d21c6b42f1585755
2008-12-31 16:27:58 +00:00