drh
75d8f84678
Treat "or" as an ANSI-C keyword, even though it is not. Ticket #3588 . (CVS 6185)
...
FossilOrigin-Name: ed4e308caaa50c55aa01cd34079f1be5c8a93c71
2009-01-15 17:40:42 +00:00
drh
a1e2f3e0f9
Version 3.6.10 (CVS 6184)
...
FossilOrigin-Name: 21b720cc9b9f88b8262c85c58287dd01486c936e
2009-01-15 17:04:23 +00:00
drh
ef731a7b84
Disable test case select2-2.0.3. This was a timing test that sometimes
...
fails due to CPU contention with other processes on the same host. (CVS 6183)
FossilOrigin-Name: ffdf91fec93aed35cf3dde1edbe9d7f8a5d23ae8
2009-01-15 15:23:59 +00:00
drh
c7288ee0b8
Avoid using ENOTSUP on systems that do not define that symbol.
...
Ticket #3512 . (CVS 6182)
FossilOrigin-Name: fcb6c677124102558f7a7a22bc3569b664424a4c
2009-01-15 04:30:02 +00:00
drh
a81c64a2da
Make some changes requested by Fedora. (CVS 6181)
...
FossilOrigin-Name: 7bc08bc719c2e9ca6d92d4709c0478e15fdfb131
2009-01-14 23:38:02 +00:00
drh
8f800a7d42
Fix the shell so that the ".schema" command works regardless of the
...
pragma settings. Ticket #3585 . (CVS 6180)
FossilOrigin-Name: 6f6b638e44a8cfc741594f02b0178fa98ed7e2c1
2009-01-14 23:17:55 +00:00
drh
8f941bc7a1
Add asserts to detect if a transaction commits without first incrementing
...
the transaction counter. These asserts are intended to prevent future
problems similar to ticket #3584 . (CVS 6179)
FossilOrigin-Name: b676ccfd9019e65b52251332d94de1b3018ec823
2009-01-14 23:03:40 +00:00
drh
d162988b47
Fix typos in comments in FTS3 implementation. (CVS 6178)
...
FossilOrigin-Name: b0f066630c35c4947d3ecd29d32d91036da19e94
2009-01-14 18:59:41 +00:00
drh
6add3c41a4
Increment the version number in preparation for yet another release. (CVS 6177)
...
FossilOrigin-Name: dce60ea764ae50f1008d178029eff5b3959eca38
2009-01-14 18:59:12 +00:00
danielk1977
104f1fef2d
Fix a problem with committing a transaction while there are other active statements. Sometimes, the database change counter was not being updated. (CVS 6176)
...
FossilOrigin-Name: b7d2a477aa2c3dbbb81d18fba1faa6835711b5c3
2009-01-14 17:45:57 +00:00
drh
44015f9ee3
Version 3.6.9 (CVS 6175)
...
FossilOrigin-Name: b6ce8199a9286eb2d0a590abc8ef080594d84f83
2009-01-14 04:09:36 +00:00
drh
94eb90c78b
Here is the test case to prove that ticket #3581 is fixed. (CVS 6174)
...
FossilOrigin-Name: f5f5ef646bef6de6a744b565e089219d4e47397d
2009-01-14 01:10:40 +00:00
drh
a7e770612b
Make sure the OR-clause optimizer takes the cost of sorting into account.
...
Reset the rowid cache on the OP_Rewind and OP_Last opcodes. Bump the
version number so that we can do an emergency release. Ticket #3581 . (CVS 6173)
FossilOrigin-Name: d28b58209bf5eb575d0cad8dc71ac043395c6471
2009-01-14 00:55:09 +00:00
drh
a9e364f00f
Updates to comments as suggested by tickets #3578 and #3579 . (CVS 6172)
...
FossilOrigin-Name: b5927213b6171e57018f1f265940c9bcc7a0ba04
2009-01-13 20:14:15 +00:00
danielk1977
5f2d46b313
If the journal file is open when unlocking the database, close it just before unlocking the database file instead of just after. This may fix #3572 . (CVS 6171)
...
FossilOrigin-Name: 36fe9a7a51b5279f1a3964139aa636e81f9c8b06
2009-01-13 16:03:44 +00:00
drh
6338323c49
Version 3.6.8 (CVS 6170)
...
FossilOrigin-Name: 8ca0b7c13620c8e2acf73343ebfb13128dd4c3b1
2009-01-12 15:46:57 +00:00
danielk1977
838cce4382
Only run tests that depend on SQLITE_PREFER_PROXY_LOCKING builds when said symbol is set. (CVS 6169)
...
FossilOrigin-Name: 5d88f8be7342acd2a7ed6f269bec615cd03e59e2
2009-01-12 14:01:45 +00:00
drh
44805ad8b6
Sometimes a single byte is written to the main database file. Make sure
...
that journaltest knows this. (CVS 6168)
FossilOrigin-Name: e0af5a43f3c6ae41042c74339e7404d3373fd6ce
2009-01-11 18:24:27 +00:00
drh
c0731c9d10
Fix an assert() so that it works correctly with SQLITE_TEMP_STORE=3. (CVS 6167)
...
FossilOrigin-Name: fd2bbcf8d8d03eecd4614636ae787331a8e99816
2009-01-11 17:00:02 +00:00
danielk1977
c499bf1dc0
Fix jrnlmode.test so that it does not run tests involving in-memory journals during the "journaltest" permutation. (CVS 6166)
...
FossilOrigin-Name: b47ddefc772ee59aa1509ab8d8f229a3d7c4ddaf
2009-01-11 05:54:40 +00:00
drh
487b51e65c
The crash8.test depends on auto_vacuum being off. Make sure that is the
...
case. (CVS 6165)
FossilOrigin-Name: 3538d2a981c5abfe2f88aec75175ae33475e6bcb
2009-01-11 00:44:47 +00:00
drh
8a5268739e
In io.test, reset the connection after manually deleting the journal file,
...
so that the connection does not continue to use the old deleted journal file. (CVS 6164)
FossilOrigin-Name: 1e79f4f9e59469fb9e3e0007163de3e604dcf00f
2009-01-11 00:42:02 +00:00
drh
f57cf606bc
Adjust savepoint.test so that it can deal with SQLITE_TEMP_STORE=3. (CVS 6163)
...
FossilOrigin-Name: 3cb910f0ce116af3f291cb913b32abc89493bcc5
2009-01-11 00:18:38 +00:00
danielk1977
9393497826
Do not run crash8.test as part of the "journaltest" permutation. crash8.test uses "PRAGMA synchronous=off", which is incompatible with journaltest. (CVS 6162)
...
FossilOrigin-Name: 5f184da6758327e0d5fefe61ac3be06a79cc8269
2009-01-10 18:51:40 +00:00
danielk1977
02983931eb
Remove the unused Pager.alwaysRollback flag. Fix a couple of comments in pager.c. (CVS 6161)
...
FossilOrigin-Name: 8f0672af8d7d46124d01e540eec7b43fc16dd552
2009-01-10 17:57:48 +00:00
drh
ceb92adb9d
Remove an faulty assertion inserted a few days ago. (CVS 6160)
...
FossilOrigin-Name: 495f017e03f32420e6a6a7685125a86929cef142
2009-01-10 17:02:02 +00:00
drh
47c3b3e099
When compiled with SQLITE_DEBUG (in other words, when assert() is enabled)
...
the ALWAYS and NEVER macros will throw an assertion if their arguments are
not true or false, respectively. (CVS 6159)
FossilOrigin-Name: 64a8dcd8d6152108809e4d10c459f1de5d36a435
2009-01-10 16:15:20 +00:00
danielk1977
7cbd589da0
Improve coverage of pager.c. (CVS 6158)
...
FossilOrigin-Name: 855c4093cf331496d9ef508011ad814e91e3882f
2009-01-10 16:15:09 +00:00
drh
96c7a7d95f
Fix a bug caused by overzealous code test coverage simplifications.
...
Bug found by TH3. (CVS 6157)
FossilOrigin-Name: 3da5578726cb22118dfca38a2098a1e378644387
2009-01-10 15:34:12 +00:00
drh
d1fa7bca39
Remove some unused code from expr.c in order to increase test coverage. (CVS 6156)
...
FossilOrigin-Name: 2cbea64fb00a1b5b8aa0e9c958b2a09256ae59bc
2009-01-10 13:24:50 +00:00
danielk1977
c87239fb32
Fix a bug in the previous commit - use SQL comments instead of Tcl comments in SQL blocks. (CVS 6155)
...
FossilOrigin-Name: 3d7a8de248ad5fba0e9c88f439cd2d988dcbab8c
2009-01-10 11:13:39 +00:00
danielk1977
9585528844
Add a malloc failure test case that covers a few previously untested lines in pager.c (CVS 6154)
...
FossilOrigin-Name: 000aedb0471b5f5a69e7b61f5e1d4b2644994f32
2009-01-10 11:10:18 +00:00
drh
d2cb50b74c
Coverage improvements in pragma.c. Change the __DARWIN__ macro to __APPLE__,
...
which is available by default on Leopard. (CVS 6153)
FossilOrigin-Name: 64c56226b91e57883c8059f65330318e53376b8a
2009-01-09 21:41:17 +00:00
danielk1977
0371f1b243
Increase pager.c coverage a bit. Fix an assert failure that can occur following a "PRAGMA omit_readlock" command on a read-only database. (CVS 6152)
...
FossilOrigin-Name: 0f3f9011fa143f7b63c9bf79d3e411327d5c6f9d
2009-01-09 17:11:04 +00:00
drh
5807c4ccc5
Fix two problems in test instrumentation that show up on some fulltests. (CVS 6151)
...
FossilOrigin-Name: c917961743e9ab60a096801c8910c6cd8367ee2f
2009-01-09 14:29:35 +00:00
drh
6402250ea2
Simplifications to btree.c to improve test coverage. (CVS 6150)
...
FossilOrigin-Name: ac84f106d572e881136adc3434d00d70564f57cb
2009-01-09 14:11:04 +00:00
danielk1977
03ba3fa02c
Add a couple of coverage tests. (CVS 6149)
...
FossilOrigin-Name: 6a64109d1f9b63ac8b29ea2c77da02506387b4a1
2009-01-09 10:49:14 +00:00
drh
1c767f0df3
More coverage improvements. (CVS 6148)
...
FossilOrigin-Name: 6e171c0a64850013b26a223189d5bebcc0a01a8b
2009-01-09 02:49:31 +00:00
drh
e2f02bacc1
Increased test coverage. (CVS 6147)
...
FossilOrigin-Name: 45bb5703d7ef5e835b43a6fa7ee2a2d96db76939
2009-01-09 01:12:27 +00:00
drh
103bd88cf7
Increased test coverage in where.c. (CVS 6146)
...
FossilOrigin-Name: 1e5725c5179660277c2e8c321877d7ee3ca21808
2009-01-08 21:00:02 +00:00
danielk1977
ad0ea2280a
Fix a comment in pager.c. No actual code changes. (CVS 6145)
...
FossilOrigin-Name: 44d3bfddf44b10b3744db6b41bc3f53c3903df5e
2009-01-08 18:04:13 +00:00
danielk1977
484fe37c9e
Avoid an 'invalid cast' warning in test_osinst.c. (CVS 6144)
...
FossilOrigin-Name: 931f3a21bd4b6c5760ed64c23e8210cf2c3e3ab5
2009-01-08 17:57:31 +00:00
danielk1977
112f752be8
Fix a couple of potential corruption problems in pager.c. (CVS 6143)
...
FossilOrigin-Name: 5a39525ba3e65f1c6df3cf23fbfb57f6a0bf4b62
2009-01-08 17:50:45 +00:00
drh
4fd18c4b31
Add a test script for ticket #2565 . Change the assert() in pager.c into
...
a testcase() macro. (CVS 6142)
FossilOrigin-Name: 1e53e382e5030de4d908098bf77af053dd81f0c5
2009-01-08 15:24:01 +00:00
drh
617634eca2
Allow database files to be created in the root directory on unix.
...
Ticket #3570 . (CVS 6141)
FossilOrigin-Name: 81014334ad57e380e21c47ad6eebe9f16b4ad24c
2009-01-08 14:36:20 +00:00
danielk1977
e86a5b7798
Clean up test_journal.c to make it easier to follow. (CVS 6140)
...
FossilOrigin-Name: 5a28c7c7b45655dcfd0da4898e77d0240b511c5f
2009-01-08 12:05:56 +00:00
drh
171256c45c
Increase test coverage of where.c. Make sure OR-optimization works on
...
UPDATE and DELETE in addition to SELECT. (Bug found by coverage tests.) (CVS 6139)
FossilOrigin-Name: 4b2c08e8984befb12fa2173ca89d9f54cf764d22
2009-01-08 03:11:19 +00:00
drh
7c2fbdeba2
Add new test cases to increase coverage of where.c. (CVS 6138)
...
FossilOrigin-Name: 2e1ab51f05447f9c1f291636b53b1ec584003841
2009-01-07 20:58:57 +00:00
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
drh
aeba020bea
Fix the FTS3 module with parenthesis syntax so that it will work in
...
the amalgamation. (CVS 6087)
FossilOrigin-Name: c2b9891fc05ec05b270f108f61ab81b2df874e01
2008-12-31 16:01:04 +00:00
drh
04bbcd5ce9
Fix a bug in the multi-index OR cost estimator. Remove leftover "breakpoint"
...
commands from test scripts. (CVS 6086)
FossilOrigin-Name: b090d5736d7eaec17a39d3133e1587b1d2a42acb
2008-12-30 17:55:00 +00:00
drh
eb9441eb06
Add LEFT JOIN test cases for multi-index OR in where9.test. (CVS 6085)
...
FossilOrigin-Name: 96f3b62914adde34079f08428b4e2fe81c193612
2008-12-30 16:35:53 +00:00
drh
46129af9fb
Get EXPLAIN QUERY PLAN working with the multi-index OR optimization.
...
Added new test script "where9.test". (CVS 6084)
FossilOrigin-Name: 4b6460221011e02bedb724169e8e4793e539e65a
2008-12-30 16:18:47 +00:00
danielk1977
13da67e5aa
Add further pseudo-randomly generated test cases to where8.test. (CVS 6083)
...
FossilOrigin-Name: e01f6ef9d981d50a70c05edc4ef8135dbc473ba1
2008-12-30 16:13:04 +00:00
danielk1977
c1071e53e7
Fix a bug in where8.test causing a tcl exception. (CVS 6082)
...
FossilOrigin-Name: 495b569a3921042c36667a415c1353201760fa17
2008-12-30 15:51:40 +00:00
danielk1977
9357416a25
Add a few more tests to where8.test. (CVS 6081)
...
FossilOrigin-Name: ac28aa8b618d59628c5b8fc6fe649ec14f554b11
2008-12-30 15:26:29 +00:00
drh
239080fbd5
Still more test cases in where7.test. (CVS 6080)
...
FossilOrigin-Name: eb9ba5fe70df56ee00828f7dbaf71ae6f825737d
2008-12-30 14:40:06 +00:00
drh
1cfdce1c45
Add many new test cases to where7.test. (CVS 6079)
...
FossilOrigin-Name: 174985831f9c8f5c393556d3248b01852573abc7
2008-12-30 14:14:03 +00:00
danielk1977
6e10b39078
Do not run savepoint4.test (crash simulation tests) in permutations.test. It slows things down too much. (CVS 6078)
...
FossilOrigin-Name: 2df02b543edd77282aabff08327c3ab102139a24
2008-12-30 13:21:50 +00:00
danielk1977
5f0ff5d527
Add a couple of extra tests for the "WHERE ... OR" optimization. (CVS 6077)
...
FossilOrigin-Name: 35c87585b81866e73a58adffe6af79ddcac57cf6
2008-12-30 12:00:12 +00:00
danielk1977
992347f2ed
Fix a bug in where.c causing a malfunction when an INDEXED BY clause specified an unusable index on other than the leftmost table in the FROM clause. Ticket #3560 . (CVS 6076)
...
FossilOrigin-Name: f8ff0212129ce602a1e1e9ad702c47b9302f2f21
2008-12-30 09:45:45 +00:00
danielk1977
d597e08b23
Fix a bug in README.tokenizers. Ticket #3559 . (CVS 6075)
...
FossilOrigin-Name: b8898d132e84888dc7c51b2f1ab67f78cc21f31b
2008-12-30 06:36:50 +00:00
danielk1977
ab9b703fde
Invoke the authorization callback when compiling SAVEPOINT, ROLLBACK TO and RELEASE commands. (CVS 6074)
...
FossilOrigin-Name: e49807b16f7f86d3f2290d6c1f7562f3db6330f9
2008-12-30 06:24:58 +00:00
drh
954701a054
Always make sure WhereClause objects are initialized to zero when they
...
are first allocated. (CVS 6073)
FossilOrigin-Name: 7d0ae55d6b2d263382f034eb89bbc368fab6a9bc
2008-12-29 23:45:07 +00:00
danielk1977
fdc4019b46
Add test file where8.test. (CVS 6072)
...
FossilOrigin-Name: bff460ec2c3e250de034a6b34312b897bb2f3749
2008-12-29 18:33:32 +00:00
danielk1977
381a4a4882
Remove an old variable declaration that was commented out using a C++ comment. (CVS 6071)
...
FossilOrigin-Name: 0b972f14f00340cbd4e310dea6d1a4f1c05f5628
2008-12-29 14:51:05 +00:00
danielk1977
f73ab8b8a9
Set the OPFLG_IN1 flag on a couple of extra opcodes. (CVS 6070)
...
FossilOrigin-Name: 03d0350441ef5fa5a9f22fcb0b760200614cf9f9
2008-12-29 10:39:53 +00:00
drh
ca8c4667a8
Multi-index OR optimizer response to ORDER BY rowid.
...
But fix in sqlite3_stmt_status(): report a full table scan
when "ORDER BY rowid" is used without constraints. (CVS 6069)
FossilOrigin-Name: 3464d369d3b6899ec726cf5b42b68b1dac2ba982
2008-12-28 20:47:02 +00:00
drh
294352578e
Optimize WHERE clauses that constain AND, BETWEEN, and LIKE terms as operands
...
of an OR. (CVS 6068)
FossilOrigin-Name: 67cf24b30e087796cfb0fccf47328e72ade5ecdc
2008-12-28 18:35:08 +00:00
drh
6df2acd216
Simplify the VM code that implements WHERE claues. (CVS 6067)
...
FossilOrigin-Name: fa95f843e179a38f663978d675607c4c3037928d
2008-12-28 16:55:25 +00:00
danielk1977
3460d19c85
Fix a problem with savepoint and incremental-vacuum. (CVS 6066)
...
FossilOrigin-Name: 08352f9ea9d2a1759320efc46e418079000855cb
2008-12-27 15:23:13 +00:00
danielk1977
45783d0148
Reset the column cache before coding each step of a trigger program. Candidate fix for #3554 . (CVS 6065)
...
FossilOrigin-Name: a1b1f6cd7d2c060bd75ce39347e1220b872806ed
2008-12-26 07:56:39 +00:00
danielk1977
8044294743
Fix a virtual table related assert() that can fail following a malloc failure. (CVS 6064)
...
FossilOrigin-Name: c6fd3b8f29927c0fc634f82885f144c78f0105d9
2008-12-24 11:25:39 +00:00
danielk1977
a641748220
Fix a couple of problems in test file test_journal.c that were causing segfaults when running all.test. (CVS 6063)
...
FossilOrigin-Name: 416c9efb49ba207a9a79d06d0b13854695a8876c
2008-12-24 09:30:22 +00:00
drh
23d04d5a20
Continuing improvements to the multi-index OR-clause optimizer. Added a
...
few simple test cases. (CVS 6062)
FossilOrigin-Name: 55d4f493e7df8515574a75caec9967d6c71b6012
2008-12-23 23:56:22 +00:00
danielk1977
67ddef6922
Fix a problem with the savepoint code and in-memory journals. (CVS 6061)
...
FossilOrigin-Name: 26ceebf38e7ae7bbda3284995b03f829a2d2493f
2008-12-23 19:15:56 +00:00
drh
3368a24e62
Fix an OOM problem in where.c. (CVS 6060)
...
FossilOrigin-Name: d2105f617eeb04c8177546c45bf6c63e72757f91
2008-12-23 16:23:04 +00:00
drh
30df00983e
Make sure nOverflow is always cleared when a page is released. (CVS 6059)
...
FossilOrigin-Name: 8d0f724477422db05ed46e58ce40a720107384f0
2008-12-23 15:58:06 +00:00
drh
dd5f5a6231
Multi-index OR-clause optimization now works for simple tests. There are
...
no test scripts for it yet, though. And it is disabled by default, pending
further testing and optimization. We need a lot of both. (CVS 6058)
FossilOrigin-Name: d77a702358deddfa9987147999d06a235e730fa9
2008-12-23 13:35:23 +00:00
danielk1977
1f58153a9a
Add a test to savepoint.test that tests that nothing goes wrong if an incremental vacuum occurs inside a savepoint. (CVS 6057)
...
FossilOrigin-Name: fc4f0621535e27eceb0b4b900a8c59dc06e84487
2008-12-23 11:46:28 +00:00
danielk1977
ae74e03e03
In sqlite3AddColumn(), use local variable 'db' instead of 'pParse->db'. (CVS 6056)
...
FossilOrigin-Name: 0c53a4c2da31f91947f1347f1d33d0c83b843d26
2008-12-23 11:11:51 +00:00
danielk1977
a4124bdfb7
Fix a couple of assert() failures that can occur in btree.c and pager.c. (CVS 6055)
...
FossilOrigin-Name: ae44e7482476478c8eeacfb80b282f17894530e5
2008-12-23 10:37:47 +00:00
danielk1977
7974759cb4
Fix a reference counting bug in rtree. Ticket #3549 . (CVS 6054)
...
FossilOrigin-Name: bbdc0e9f2481f8d59e05ea282b615f97e09fb471
2008-12-22 15:04:32 +00:00
danielk1977
8a7adb0dc0
Changes to test scripts so that veryquick.test runs with SQLITE_TEMP_STORE=3 defined. Also a fix to stop the same switch causing a crash in the savepoint code. (CVS 6053)
...
FossilOrigin-Name: ee0e6eae9f984472e44d7ee8f195c6e5d33f2efd
2008-12-22 11:43:35 +00:00
danielk1977
f3107512f7
Add a case to permutations.test to run tests with the test_journal.c backend installed. Also many fixes to test_journal.c and one quite obscure fix to pager.c. (CVS 6052)
...
FossilOrigin-Name: bb177e3072ab61d0af7af91660ebe4dafa487b42
2008-12-22 10:58:46 +00:00
danielk1977
852e232922
Fix a variable type to prevent a warning in the proxy-locking code. (CVS 6051)
...
FossilOrigin-Name: d9595b961800a13c141bebdb8c0a67377f30efad
2008-12-22 03:36:59 +00:00
drh
111a6a7d47
Continue refactoring where.c in preparation for installing OR-clause
...
optimizations. (CVS 6050)
FossilOrigin-Name: 778e91ddb834f6084ecdf3909692b54bb7da8f6d
2008-12-21 03:51:16 +00:00
danielk1977
a0fc72967e
Add a vfs backend that detects problems like the one addressed by (6043) and (6047). (CVS 6049)
...
FossilOrigin-Name: 49172e487610268662c39fc4038032779a41c47f
2008-12-20 18:33:59 +00:00
drh
7f1e8a071f
Do not use long long constants in code. Ticket #3547 . (CVS 6048)
...
FossilOrigin-Name: 51b3bfc3b9628ca4ec754fa7f23aef7302f890ff
2008-12-20 13:18:50 +00:00
danielk1977
ecfef98536
Fix the crash-followed-by-corruption bug revealed by savepoint4.test. This is actually the same bug as was fixed by (6043). The fix was not entirely correct. (CVS 6047)
...
FossilOrigin-Name: 688336266f0aa5630f4f550ae3787a64f39f9cfa
2008-12-20 08:39:57 +00:00
drh
3a5990ab44
Specify type "void" in the parameter list of functions that take no parameters.
...
Tickets #3545 and #3546 . (CVS 6046)
FossilOrigin-Name: c2228bd14ae54b17450f64357bf835d08c447250
2008-12-20 02:14:39 +00:00
drh
1a58fe0290
Enhanced analysis of OR terms in a WHERE clause. Another step toward being
...
able to use indices with OR-connected WHERE clause terms. (CVS 6045)
FossilOrigin-Name: c3f7aa019c613e18457f090685725dd8a6a336b9
2008-12-20 02:06:13 +00:00
danielk1977
47e23024b1
Add extra crash test cases that stress the savepoint mechanism to savepoint4.test. Currently, these tests are causing database corruption which (obviously) needs to be fixed. (CVS 6044)
...
FossilOrigin-Name: e06a968aa5b17ce12ea179b36a99ad74d274fd2c
2008-12-19 18:45:52 +00:00
danielk1977
488af09972
Add some crash-tests for savepoint. Fix a bug revealed by these tests. (CVS 6043)
...
FossilOrigin-Name: 6f36c16678b6e3baa5a9d9ceba1a756a8034f3e1
2008-12-19 16:31:11 +00:00
danielk1977
d34c03a946
Add the file ext/fts3/README.syntax, containing documentation describing the two query syntaxes now supported by fts3. (CVS 6042)
...
FossilOrigin-Name: ed81ad5a5d22304a4d96e778e8e9094f74c461c0
2008-12-19 11:37:38 +00:00
drh
233a531ba7
Fix the Oracle and MS-Sql command-line terminator logic in the CLI.
...
Ticket #3544 . (CVS 6041)
FossilOrigin-Name: dcc8935fa0ccf86648c22818823bf1daef8f3939
2008-12-18 22:25:13 +00:00
danielk1977
34cf35dac4
Increase test coverage of new savepoint code. (CVS 6040)
...
FossilOrigin-Name: d915718d0b346982d686d131a159b67e28fc02a8
2008-12-18 18:31:38 +00:00
danielk1977
12dd54962d
Add savepoint2.test, a file containing savepoint tests similar to tests in trans.test and avtrans.test. And a few savepoint bug fixes. (CVS 6039)
...
FossilOrigin-Name: 98a53d91f6c0c2692d3b56687fdaba8eeab0959d
2008-12-18 15:45:07 +00:00
danielk1977
78d41832fc
Fix a bug in icuOpen() in fts2. (CVS 6038)
...
FossilOrigin-Name: b9c722bd96b44e0fabd1564ddd982d2aabb7047c
2008-12-18 05:30:26 +00:00
drh
700a22612b
Update the WHERE clause processing infrastructure in preparation for adding
...
multi-index OR evaluation. (CVS 6037)
FossilOrigin-Name: 78401b33febf678cfeec2a35514eb4172de420ab
2008-12-17 19:22:15 +00:00
danielk1977
fd7f045225
Add the savepoint feature. This feature is largely untested at this point. (CVS 6036)
...
FossilOrigin-Name: 34b56600ec0c5cd7b5faab265750252bc9850e3e
2008-12-17 17:30:26 +00:00
danielk1977
f0f9f75443
Fix some strict-aliasing problems in fts3_expr.c. (CVS 6035)
...
FossilOrigin-Name: 20a4ca5d361ecbb982129171f10cccac4f5ad093
2008-12-17 15:49:51 +00:00
danielk1977
33e8903540
Modify fts3 to support a more complex expression syntax that allows parenthesis. The new syntax is not entirely backwards compatible, so is disabled by default. Use -DSQLITE_ENABLE_FTS3_PARENTHESIS to enable it. (CVS 6034)
...
FossilOrigin-Name: 7389b9ecb80294569845c40a23e0c832d07f7a45
2008-12-17 15:18:17 +00:00
drh
66f7d87bfc
Version 3.6.7 (CVS 6033)
...
FossilOrigin-Name: f4f40370fb83d677df3fbf2c51c4bb4a3e5ccc7a
2008-12-16 18:15:58 +00:00
shane
153015969b
Fix a compile error in an assert() and a warning with MSVC builds. (CVS 6032)
...
FossilOrigin-Name: 8b8f6a6ab597e06e60557ab56c6ee7f8522ed570
2008-12-16 17:20:38 +00:00
drh
66e8008404
Make sure the memory returned from sqlite3ScratchMalloc() is 8-byte aligned.
...
Ticket #3542 . (CVS 6031)
FossilOrigin-Name: 13b56b7ff97c3abc116dae934f6d1330bbb7762d
2008-12-16 13:46:29 +00:00
drh
49c3d5735d
New hyperlinks added to C interface documentation. No changes to working code. (CVS 6030)
...
FossilOrigin-Name: 230cb68e07ec791fa4a46dee8506716d52a99426
2008-12-15 22:51:38 +00:00
drh
a4835e9a45
Add test cases that verify evaluation of randomly generated SQL expressions. (CVS 6029)
...
FossilOrigin-Name: 4685ffccd37456fc527a7f7178885a060b474ad8
2008-12-15 16:33:29 +00:00
drh
e99fa2af71
Convert the "~" and "NOT" operators to be two-address instructions.
...
Ticket #3541 . (CVS 6028)
FossilOrigin-Name: ea9b747efb22fd3f679c3ef86ed51986c5ad9436
2008-12-15 15:27:51 +00:00
danielk1977
01ecbeeb57
Add the example from #3359 to the test suite. (CVS 6027)
...
FossilOrigin-Name: 84f8417c0794d3e5cec88f59ea71a7d557044409
2008-12-14 14:45:20 +00:00
drh
e13fab3ccf
Fix the name of the source algorithm in the comments of the script generators
...
for the recently checked-in test cases for integer boundary-value testing. (CVS 6026)
FossilOrigin-Name: adba0f3c01ba2407466d0120c411c398218bdaeb
2008-12-14 02:55:16 +00:00
drh
0dc5124391
Add many new integer boundary value tests. Ticket #3536 . (CVS 6025)
...
FossilOrigin-Name: 45277238d355caa1fbeea67c6c6d1a8f231eabda
2008-12-12 19:19:22 +00:00
drh
959403f894
Rework the rowid lookup logic in the query optimizer to fix various
...
boundary value problems. Ticket #3536 . Renamed the OP_MoveXX opcodes
to OP_SeekXX. (CVS 6024)
FossilOrigin-Name: e545490a2828f7f703172dda6d2b9f3342dc134a
2008-12-12 17:56:16 +00:00
drh
bfbfadb43a
Previous change to the OP_ForceInt opcode did not work correctly when the
...
input is a negative floating point value. This change is the fix.
Ticket #3536 . (CVS 6023)
FossilOrigin-Name: f6c50f357c302907a5398c551a5c596f7d305031
2008-12-11 20:03:22 +00:00
drh
b952676e08
Make sure the OP_ForceInt vdbe opcode does not cause a rowid overflow.
...
Ticket #3536 . Tests to verify this change will be checked in separately. (CVS 6022)
FossilOrigin-Name: 6a049c6595550c123e77199cf7f3898bfcf40c86
2008-12-11 19:50:18 +00:00
drh
88a003e28e
Guard against attacks from deliberately corrupted database files. (CVS 6021)
...
FossilOrigin-Name: da2ec96422b1f9de2e47d3b8c19ed20579742a9b
2008-12-11 16:17:03 +00:00
drh
a1ba47783d
Increase the version number to 3.6.7. (CVS 6020)
...
FossilOrigin-Name: 7c367515f86c36b7ec8603754b20f1c7c4a0690a
2008-12-11 13:08:15 +00:00
drh
03e1f51070
Initialize a local variable so as to avoid a valgrind warning. (CVS 6019)
...
FossilOrigin-Name: 0d316160fc9e24262457d330abee40f447ff909e
2008-12-11 13:05:00 +00:00
shane
7d3846ac26
Removed a few more harmless warnings from MSVC. (CVS 6018)
...
FossilOrigin-Name: 72fd92bd67ed2b8e193cf3119e60d0a8f1e819c9
2008-12-11 02:58:26 +00:00
drh
103fe74315
Fix the TCL test harness so that it compiles and runs on OSX with
...
SQLITE_ENABLE_LOCKING_STYLE. (CVS 6017)
FossilOrigin-Name: 561d5de16ec07546a3bb691f308fb2495a0d0a43
2008-12-11 02:56:07 +00:00
drh
15b024c22a
Initialize the yyzerominor constant generated by lemon. (CVS 6016)
...
FossilOrigin-Name: 76c8f6ba87f333f15444ba5444bc675ec4cfd89e
2008-12-11 02:20:43 +00:00
drh
3abbd39a87
More code obfuscation designed to thwart compiler warning messages. (CVS 6015)
...
FossilOrigin-Name: 0a1888a7e6fb56e56d8078e7792379d908ba7a70
2008-12-10 23:04:13 +00:00
drh
9c1905fb77
Try to remove compiler warnings from vdbe.c. (CVS 6014)
...
FossilOrigin-Name: 50352950df5d5a8b7da8c18b6667b8242a359f7d
2008-12-10 22:32:56 +00:00
shane
18e526c16b
Work to remove harmless MSVC compiler warnings. (CVS 6013)
...
FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808
2008-12-10 22:30:24 +00:00
drh
0e4deca3e1
The strlen30 function in tclsqlite.c should be defined regardless of whether
...
or not the amalgamation is used. (CVS 6012)
FossilOrigin-Name: d8e8c7e51c09dc4e4d7e45ba1866c78713d6f5aa
2008-12-10 22:18:39 +00:00
drh
4f21c4af30
Fix an issue with the new sqlite3Strlen30() introduced by
...
check-in (6007). Additional casts for compiler warnings. (CVS 6011)
FossilOrigin-Name: 258722b6178f60eaccef1675aab3edc456d413a5
2008-12-10 22:15:00 +00:00
drh
1bd10f8a00
Additional work at eliminating silly compiler warnings. (CVS 6010)
...
FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e
2008-12-10 21:19:56 +00:00
shane
00c586a238
Fixed typo in comment in mkkeywordhash.c. (CVS 6009)
...
FossilOrigin-Name: b7dd05b403e69caca814ccd8824130f176160cd5
2008-12-10 20:11:01 +00:00
shane
5854393cd9
Added option (-l) to lemon parser to have it skip printing line numbers (#line ... ). (CVS 6008)
...
FossilOrigin-Name: ccb9393a7a10f0970419b860af293b0bdad7f894
2008-12-10 20:10:04 +00:00
drh
ea6788322e
Never use strlen(). Use our own internal sqlite3Strlen30() which is
...
guaranteed to never overflow an integer. Additional explicit casts to
avoid nuisance warning messages. (CVS 6007)
FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
2008-12-10 19:26:22 +00:00
drh
b27b7f5d3b
More explicit type casting to silence VC++. (CVS 6006)
...
FossilOrigin-Name: 14e6d19c3157ccdce170e769d678c7f472dd3db2
2008-12-10 18:03:45 +00:00
drh
dc5ea5c785
Remove or rename local variables that shadow other variables or parameters. (CVS 6005)
...
FossilOrigin-Name: e7e9fa4fa1b7fc0668f4e3a51873ee5d11893f42
2008-12-10 17:19:59 +00:00
drh
f49661a4eb
Add explicit casts to silence nuisance warnings from VC++. (CVS 6004)
...
FossilOrigin-Name: da1cbfa766f7f379c01f4ac9c1210462d8d7c590
2008-12-10 16:45:50 +00:00
drh
092d5efc70
Use memcpy() rather than "=" to copy a structure, in order to work around
...
a bug in the XLC compiler on AIX. Ticket #3344 . (CVS 6003)
FossilOrigin-Name: 18bbcafc16bb985a7c74e07ffb9c4f28273a7cfd
2008-12-10 11:49:06 +00:00
drh
032ca70167
Remove some obsolete markup from sqlite.h.in. (CVS 6002)
...
FossilOrigin-Name: d1d05e2a8a6e474e4921742ba055200d7f4d21ce
2008-12-10 11:44:30 +00:00
drh
e862f03f5f
Return an appropriate out-of-memory message when sqlite3_errmsg() is called
...
following an SQLITE_NOMEM error. (CVS 6001)
FossilOrigin-Name: 228ebe4115cfb2deafd504a52a230bf646fcd8f1
2008-12-09 14:46:09 +00:00
drh
cd2b561302
Finish incomplete edit of resolve.c from check-in (5998). (CVS 6000)
...
FossilOrigin-Name: 0d7e150e8c6cb801e68273c9d0793ce31d1f31fd
2008-12-09 14:03:22 +00:00
drh
e1991d2a8d
Additional test cases for nested subqueries in a WHERE clause. (CVS 5999)
...
FossilOrigin-Name: 4f10f19dd1e66cd29b0e1e26506154d670c3bc46
2008-12-09 13:12:56 +00:00
drh
2bf90f1e64
A subquery in the result set of a SELECT should be able to look into outer
...
queries to find variable references. But a subquery in the FROM clause
should not be able to do this. Ticket #3530 . (CVS 5998)
FossilOrigin-Name: be03fa0543044dc46952695e963d9b82afed892b
2008-12-09 13:04:29 +00:00
shane
aef3af54dd
Removed some harmless compiler warnings and converted some "double" ops to "int" in date.c. (CVS 5997)
...
FossilOrigin-Name: 5eb648a0b599c83504b892e2a5cefe6a837d6017
2008-12-09 04:59:00 +00:00
drh
aa78bec993
Get rid of more silly compiler warnings. (CVS 5996)
...
FossilOrigin-Name: 59ae0020683766993c38e2b76a436d78d3e4bd63
2008-12-09 03:55:14 +00:00
drh
8df32841de
Suppress more silly compiler warnings. (CVS 5995)
...
FossilOrigin-Name: 1522c2c6677b97edfa09dd64b4f9ed139aeb5bec
2008-12-09 02:51:23 +00:00
drh
ec1724e888
Fix compiler warnings in where.c and in the TCL test harness. (CVS 5994)
...
FossilOrigin-Name: 680755dbf01e20569b87068b1515b144903c566e
2008-12-09 01:32:03 +00:00
drh
b3190c1501
Some minor name refactoring in where.c. Avoid declaring variables before
...
initializing them in the amalgamation because VC++ doesn't like that. (CVS 5993)
FossilOrigin-Name: 6ed696e7c03351514278338fa986539cf0fac178
2008-12-08 21:37:14 +00:00
drh
e91d16be4d
Fix a bug in win32 command-line client introduced during efforts to reduce
...
the number of harmless compiler warnings (check-in (5982).) (CVS 5992)
FossilOrigin-Name: 6c0b2e7579ee5504617831a5e8bb6193e283ad30
2008-12-08 18:27:31 +00:00
drh
1875f7a3db
The amalgamation now compiles cleanly on GCC with options
...
-pedantic-errors -Wno-long-long. (CVS 5991)
FossilOrigin-Name: 73c7302c5f76a2f61ecd75f8bda69bb500d3119c
2008-12-08 18:19:17 +00:00
drh
128255fce6
Fix two unused-parameter warnings in the parser. (CVS 5990)
...
FossilOrigin-Name: cf419d0b01c0144b752f4283ba9668747339b218
2008-12-08 16:01:12 +00:00
drh
555f8de7ef
Fix a segfault associated with the column cache that occurs on nested VIEWs.
...
Ticket #3527 . (CVS 5989)
FossilOrigin-Name: 490138a2012fcb4c859e1cf12a35e314ec1060d2
2008-12-08 13:42:36 +00:00
drh
bbce338412
Make sure a memory allocation error did not prevent UTF16 to UTF8 conversion
...
prior to doing a string comparison. (CVS 5988)
FossilOrigin-Name: 9d061e20d885bee7ac7875500a0e7c238b540a63
2008-12-06 16:46:13 +00:00
drh
2aca5846da
Make sure the KeyInfo object attached to a transient table used for
...
sorting records the sqlite3 object used for memory allocation, so that
memory allocation failures on UTF16 to UTF8 conversion can be recorded. (CVS 5987)
FossilOrigin-Name: 76246d9f0d4e995f6be6fbd1fa2bcabc1b9566ae
2008-12-06 16:10:42 +00:00
drh
085bb7f094
Mark the hash table enlargement in pcache1.c as a benign-failure malloc. (CVS 5986)
...
FossilOrigin-Name: 5c0fe63a6374abe98e45c11ada54c064c19bbab8
2008-12-06 14:34:33 +00:00
drh
2c41ef063e
Make the minimum allocate size for RowSet objects large enough to accommodate
...
8-byte pointers. (CVS 5985)
FossilOrigin-Name: b74885e0856c46412f7cf4dca4cafb740cb9a28b
2008-12-05 23:40:22 +00:00
drh
e43ba702bc
Fix integrity check so that it always reports memory allocation errors that
...
it encounters. (CVS 5984)
FossilOrigin-Name: 2a3f5ce14c050b135ab9d2247aee84ca37882c4b
2008-12-05 22:40:08 +00:00
drh
9bf9e9c86d
Make sure the nOverflow flag in MemPage is reset to zero after every insert. (CVS 5983)
...
FossilOrigin-Name: bfde3dae0c7b97308344519ca06cd4b290e8cf47
2008-12-05 20:01:43 +00:00
drh
902b9ee436
Fix harmless compiler warnings. Improved comments in the query optimizer. (CVS 5982)
...
FossilOrigin-Name: adedd697b475dadaa2eeae0d0413603195c955cf
2008-12-05 17:17:07 +00:00
drh
6a1e071f3d
Make use of sqlite3DbMallocSize to maximize the size of growable buffers
...
after each reallocation. Added new comments and testcase() macros to
where.c. (CVS 5981)
FossilOrigin-Name: 46f2d08959423e130a5b346138311649d92f0fde
2008-12-05 15:24:15 +00:00
drh
165be38b82
Variable name changes in the query optimizer for disambiguation and
...
clarification. Clear space in boolean vectors for new bit values to
encode new query plan templates. (CVS 5980)
FossilOrigin-Name: 81bd0b5ce8a1cf057064c44e9b5371502cb8c58c
2008-12-05 02:36:33 +00:00
drh
da55c48a9a
Expand table.* properly on a USING or a NATURAL join. Ticket #3522 . (CVS 5979)
...
FossilOrigin-Name: 06d206ef7d5e433ccde347d63dfcd2177545e1fd
2008-12-05 00:00:07 +00:00
drh
8d99363c1b
Fix a segfault that can occur in the RowSet object following a malloc
...
failure. (CVS 5978)
FossilOrigin-Name: cb0f1658d3db7ccf80843d66fa85af8de44710d0
2008-12-04 22:17:55 +00:00
drh
3d4501e573
Replace the VDBE Fifo object with the new RowSet object. (CVS 5977)
...
FossilOrigin-Name: 39a0750b49cf55e9c0927169ca47db909f5c16ea
2008-12-04 20:40:10 +00:00
drh
947bd8091b
Make sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE is
...
disabled. Fix compiler warnings when SQLITE_ENABLE_LOCKING_STYLE is
disabled. (CVS 5976)
FossilOrigin-Name: 4697249fcc6041ba7d2fb89589c855a8bec71eb2
2008-12-04 12:34:15 +00:00
drh
1822eee09c
Fix a memory leak in the shell that occurs when a ".import" command fails.
...
Ticket #3517 (CVS 5975)
FossilOrigin-Name: cb9c15431c53b13b70d006d8c47741ebc1caaca3
2008-12-04 12:26:00 +00:00
drh
47b1066f8c
Always enable the OP_Blob opcode in the VDBE even when
...
SQLITE_OMIT_BLOB_LITERAL is defined, since that opcode is used for other
purposes as well. Ticket #3518 . (CVS 5974)
FossilOrigin-Name: 760333de65328281137e02423904f860df572391
2008-12-04 12:17:30 +00:00
drh
fbdc7f69b3
Allow the entire FROM clause of a SELECT statement to be in parentheses. (CVS 5973)
...
FossilOrigin-Name: 72ebc8cbe00f77f7864146de7c0954c4f1c59b8d
2008-12-03 23:23:40 +00:00
drh
c66d5b64de
Fix a missing forward declaration that is needed when
...
SQLITE_PREFER_PROXY_LOCKING is defined. (CVS 5972)
FossilOrigin-Name: 24235300b3f64f0396e1016afbe31aec9ea69b62
2008-12-03 22:48:32 +00:00
drh
715ff30e27
Reorganize the proxy-locking method in os_unix.c. Additional cleanup. (CVS 5971)
...
FossilOrigin-Name: 31f6090e22b54d657afc8c23171d000d47850205
2008-12-03 22:32:44 +00:00
aswift
f0551ee5e4
Make os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970)
...
FossilOrigin-Name: 3efedac6aa4f544d40c2f782109d4e1795e449a0
2008-12-03 21:26:19 +00:00
drh
6b9d6ddc21
Continue with the cleanup of os_unix.c. (CVS 5969)
...
FossilOrigin-Name: 215d36ea89078036fb66b5154f054613b735dab3
2008-12-03 19:34:47 +00:00
drh
08609ce7f0
Fully initialize the unused bytes of the buffer that will become the journal
...
file header, in order to silence a complaint from valgrind. (CVS 5968)
FossilOrigin-Name: 2822cbb960dbef9d30586ee112d74f9f566309fa
2008-11-29 22:49:23 +00:00
drh
9b35ea62c7
Continuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967)
...
FossilOrigin-Name: c13df0311ef4f6a510f42105293f7c53c323fda8
2008-11-29 02:20:26 +00:00
drh
7708e9720b
Continuing work on the os_unix.c refactoring. Removed all of the
...
LOCKING_STYLE_* constants and instead pass around pointers to the
underlying sqlite3_io_method objects. (CVS 5966)
FossilOrigin-Name: 1017d2fb1935a278ef442030bf7bdf5e112c566a
2008-11-29 00:56:52 +00:00
drh
734c9864cb
First step in refactoring os_unix.c. This is work in progress. The code
...
compiles and runs on Linux and MacOSX (as long as SQLITE_ENABLE_LOCKING_STYLE
is turned off), but there are a few test failures. (CVS 5965)
FossilOrigin-Name: 7825cd63e5cb390a9c2c05957ebc9b189612f04a
2008-11-28 15:37:20 +00:00
drh
c5053fb922
Add 19 new assert() statements in btree.c that attempt to detect writing to
...
a cache page which is not writeable. (CVS 5964)
FossilOrigin-Name: f9c7359065829b016d8cd04304c02509c254fe05
2008-11-27 02:22:10 +00:00
pweilbacher
5a1841a18c
expected error message has trailing space (CVS 5963)
...
FossilOrigin-Name: 165bc2d7658e14eda8b375329e4286dc4d048f3a
2008-11-26 20:09:14 +00:00
pweilbacher
d102d1134b
remove warning in os2Sync() with SQLITE_NO_SYNC set (CVS 5962)
...
FossilOrigin-Name: 68a51f67afd54f1c423206a92b36a33af071d5e1
2008-11-26 20:03:21 +00:00
pweilbacher
efdabe9e64
make os2Randomness() act the same as other platforms with SQLITE_TEST (all zeroed buffer) (CVS 5961)
...
FossilOrigin-Name: 5d189df39a3a5e99372826f87f9f20bbd92f1565
2008-11-26 19:56:48 +00:00
drh
a9bce108be
Fix the test condition for the test cases added to prevent regressions of
...
ticket #3508 . (CVS 5957)
FossilOrigin-Name: 4e94aa3bedc6dba003a2a4ecbba9c11c465eab4f
2008-11-26 13:44:30 +00:00
danielk1977
36e20936f6
Fix an obscure memory leak that can follow an IO error. (CVS 5956)
...
FossilOrigin-Name: 8271229c66c72c344ad7afb901b88d9cdaaa6f43
2008-11-26 07:40:30 +00:00
danielk1977
0cd1bbd0b8
Fix a couple of assert() failures provoked by running with a small default cache-size (64 pages). (CVS 5955)
...
FossilOrigin-Name: 1a66481a37dd9a21673c0ffb3df2be0614fe9f63
2008-11-26 07:25:52 +00:00
danielk1977
c015e39ff9
Move the definition of function transferOwnership() in os_unix.c to below the static functions it calls. (CVS 5954)
...
FossilOrigin-Name: 622cb59791ab9f61c2e5131cb6ece5e75cdc9fae
2008-11-25 12:07:40 +00:00
shane
46fdc8f586
Added cast to PAGE_TO_PGHDR1 macro to remove warning. It looks like despite the warning, the compiler (tested with VS2005 and GCC on Windows) was doing the right thing. Ticket #3510 . (CVS 5953)
...
FossilOrigin-Name: e93cec0a72c7c330e63d38d683f4c8b63e0f8070
2008-11-24 20:05:38 +00:00
shane
467bcf360e
Fixed some spelling errors in sqliteInt.h. Ticket #3509 . (CVS 5952)
...
FossilOrigin-Name: 7e134a5c1a9f103abd9d655483ad54cffae7e3ef
2008-11-24 20:01:32 +00:00
shane
481e9f2089
Added test case to in4.test to try and duplicate crash reported on the mailing list. (CVS 5951)
...
FossilOrigin-Name: 8502fba37bb13c019252d0a65973a78982ec44aa
2008-11-24 15:32:00 +00:00
pweilbacher
c06b54fe59
fix the compile warnings on OS/2 (CVS 5950)
...
FossilOrigin-Name: b7d0ec838b806e7b2532bef1d59279c32fb206d3
2008-11-22 19:50:53 +00:00
drh
17d46fc7f1
Make sure the error message handler is able to deal with NULL expression
...
spans. Ticket #3508 . (CVS 5949)
FossilOrigin-Name: ce36b6474a62f0a5b8d82968ca9a171f7143ae31
2008-11-22 18:28:50 +00:00
pweilbacher
aabbed2218
Fix testfixture linking problem by marking unix-only symbol as such. (CVS 5944)
...
FossilOrigin-Name: 2ca8b82247277baf3b81b5111988305ad5f67701
2008-11-21 23:35:02 +00:00
drh
107886abe8
Factor out and simplify the canonical pathname logic in the VxWorks OS
...
interface. (CVS 5943)
FossilOrigin-Name: adb0aafaa6b1ea06541f653a2559f099fb1b2795
2008-11-21 22:21:50 +00:00
drh
6c7d5c5b33
Work toward cleaning up and refactoring the os_unix.c VFS module.
...
Change IS_VXWORKS to OS_VXWORKS. The VxWorks implementation can now
be built and tested on Linux using -DOS_VXWORKS=1 -Dsem_t=int -DPATH_MAX=512 -DNO_GETTOD=1. (CVS 5942)
FossilOrigin-Name: 30a0132a83ce95d45f106fce1439e7509fdc64d1
2008-11-21 20:32:33 +00:00
danielk1977
6c359f071d
Fix the OOM handling for explain statements so that it is the same as for regular statements if the OOM error occurs from within a call to sqlite3_column_text() or text16(). (CVS 5941)
...
FossilOrigin-Name: 891b14e138c4d6cac0dfb234d8aedc5dabe376ab
2008-11-21 16:58:03 +00:00
danielk1977
f730075312
Fix a segfault that can be caused by an INSTEAD OF trigger on a view that includes an expression of the form "table.column" in the select list. (CVS 5940)
...
FossilOrigin-Name: 88a09dbb4b54be4010aae767157a1e2002237909
2008-11-21 16:22:18 +00:00
danielk1977
956f4319be
Fix an assert() failure that can occur after an OOM error. (CVS 5939)
...
FossilOrigin-Name: 4c765758c18d7aeffe6e1cf658d2847f9460a956
2008-11-21 09:43:20 +00:00
danielk1977
b247c21c15
Fix the problems demonstrated in tkt35xx.test in a different way to (5936). (CVS 5938)
...
FossilOrigin-Name: ddf980a50127a9de35edeca5549f4b51e3f733e6
2008-11-21 09:09:01 +00:00
danielk1977
3e168ebec2
Add another test case to tkt35xx.test showing that a statement rollback can also trigger the problem. (CVS 5937)
...
FossilOrigin-Name: 74c08b8dd9577d1997b4bc8147beed786150f22b
2008-11-21 08:50:50 +00:00
drh
c047b9f74d
On a ROLLBACK, if there page cache entries which are dirty but not in the
...
rollback journal, make sure they get reinitialized in the btree layer. (CVS 5936)
FossilOrigin-Name: faded96f36229ee85039276db693391d0f10648c
2008-11-21 03:23:43 +00:00
drh
41022645ee
Fixes to the proxy locking so that os_unix.c compiles on linux with proxy
...
locking omitted. (CVS 5935)
FossilOrigin-Name: 6f910b7036817f4bb4de807bf48938d20ab033cc
2008-11-21 00:24:42 +00:00
aswift
aebf413d9a
Added support for proxy file locking style
...
Added pragma support for controlling proxy file locking
Added file control access to last errno and proxy locking
Added support for TMPDIR environment variable
Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934)
FossilOrigin-Name: b9bc36d3d5e35821ef69c0881a84c0afed253c9e
2008-11-21 00:10:35 +00:00
drh
d164fd3483
When a memory allocation fails on the %Q conversion in sqlite3_mprintf(),
...
make sure the error is reported back up the call stack. (CVS 5933)
FossilOrigin-Name: eebacbc9d7d0625dfbe6367046fa4a0ca9c04e74
2008-11-20 18:20:28 +00:00
shane
c7b7f1ae1d
In os_win.c, if SQLITE_TEST defined, winRandomness() should return all zeroes like os_unix.c. (CVS 5932)
...
FossilOrigin-Name: 00b68a1e3164fbf04dabb480c2037be45612b4e4
2008-11-19 21:35:46 +00:00
drh
10ec0fa557
Version 3.6.6 (CVS 5931)
...
FossilOrigin-Name: 01a6e2820af0729f01ce90664ce9a6aa63e5b09a
2008-11-19 21:03:37 +00:00
drh
1e9db16c55
Force the corruptC.test script to use file format 1. (CVS 5930)
...
FossilOrigin-Name: deadc2548d1e43cbbfe3af049cc5f59ee55bda46
2008-11-19 18:43:07 +00:00
shane
6468ad04e4
In bitvec.c: removed some of the recursion, minor optimizations, added comments, improved consistency. (CVS 5929)
...
FossilOrigin-Name: 54d714fba6624e0c7adb961317c75a8a8c5fa8de
2008-11-19 18:30:34 +00:00
drh
1feb7dd391
Update the SECURE_DELETE code to track the latest changes in the pager. (CVS 5928)
...
FossilOrigin-Name: e058f509374e98e48eafeba2f1dadff9633d1190
2008-11-19 18:30:29 +00:00
danielk1977
f3d3c27a0c
Fix some compiler warnings that show up when building the amalgamation only. (CVS 5927)
...
FossilOrigin-Name: d1abe8a1c9a990b02c71d6c249436381c9fde443
2008-11-19 16:52:44 +00:00
danielk1977
a03396aafb
Fix a few more compiler warnings. (CVS 5926)
...
FossilOrigin-Name: 70b2f6839ca97dfc08f72875283f5c75c8fcf0cc
2008-11-19 14:35:46 +00:00
danielk1977
c70dfc477f
In os_unix.c, use "IS_VXWORKS" instead of "defined(__RTP__) || defined(_WRS_KERNEL)". Purely because it's easier on the eyes. (CVS 5925)
...
FossilOrigin-Name: 92c91a6cd7bcbe79206bdf7708fe9049a7b7fdd6
2008-11-19 13:52:30 +00:00
drh
1aa690c87c
Version number to 3.6.6. (CVS 5924)
...
FossilOrigin-Name: 8cc120fb3aed835a2cd081963317b7f1b1ac4b73
2008-11-19 12:43:20 +00:00
danielk1977
397d65f641
Eliminate some of the "unused parameter" warnings in os_unix.c. (CVS 5923)
...
FossilOrigin-Name: 2f5aaad90b7e3bbb31866c43db3e24a1be26f03b
2008-11-19 11:35:39 +00:00
danielk1977
1ceedd3736
Simplify the way the pager layer invokes the busy-handler callback. (CVS 5922)
...
FossilOrigin-Name: 7bd1ac189906d87ed360875551d50147dd2186f6
2008-11-19 10:22:33 +00:00
danielk1977
62c14b3487
Changes to avoid "unused parameter" compiler warnings. (CVS 5921)
...
FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
2008-11-19 09:05:26 +00:00
drh
b232c23297
Add an alternative application-defined pcache implementation and add test
...
cases to permutations.test to invoke it. Added the SQLITE_CONFIG_GETPCACHE
method to sqlite3_config(). (CVS 5920)
FossilOrigin-Name: 16f1e6ec2ad92f68c0079a0c2b5ca08a3b4af816
2008-11-19 01:20:26 +00:00
drh
4c6517848f
Fix to the lemon parser template when YYSTACKSIZE is 0 (dynamically
...
allocated stack space). (CVS 5919)
FossilOrigin-Name: 00ccc5967f8912961029a3513445c5e2ac713560
2008-11-18 23:25:54 +00:00
pweilbacher
50128aea6a
Add support for SQLITE_NO_SYNC for OS/2, too. (CVS 5918)
...
FossilOrigin-Name: 2990b5b8e7bd8f91af24e5a606666077855ae283
2008-11-18 23:03:39 +00:00
drh
1d2988554c
Expose the MBCS->UTF8 convert routine in the Win32 backend. (CVS 5917)
...
FossilOrigin-Name: f4411f0c8075adc8a37002ac7ad958ff3158c0c0
2008-11-18 19:18:52 +00:00
drh
2161474f62
Application-defined page cache documentation updates. (CVS 5916)
...
FossilOrigin-Name: db0f1203591fcc4c554c47cdf28abe279cf7f1d5
2008-11-18 19:18:08 +00:00
danielk1977
cdcfe95cec
Reduce the number of "missing initializer" warnings. (CVS 5915)
...
FossilOrigin-Name: d68e2795e72f1bfc0bf3b8e75cdec2e0b3d5bfcb
2008-11-18 07:27:24 +00:00
danielk1977
00e136135e
Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914)
...
FossilOrigin-Name: 8009220c36635dd9b6efea7dc13281ca9625c40a
2008-11-17 19:18:54 +00:00
danielk1977
234329761a
Modifications to avoid unsigned/signed comparisons in where.c. (CVS 5913)
...
FossilOrigin-Name: f35606d1d8cd6dba541a79dcb1307698b8831854
2008-11-17 16:42:00 +00:00
danielk1977
64202cfec6
Modifications to avoid signed/unsigned warnings in vdbe.c. (CVS 5912)
...
FossilOrigin-Name: 9939dd839ac13708f9b5b877c48729b1781eedf3
2008-11-17 15:31:47 +00:00
danielk1977
89d4004f03
Changes to btree.c to avoid the unsigned/signed comparison warnings. (CVS 5911)
...
FossilOrigin-Name: 24469dbace433ca89e22274f741f382052c5d17d
2008-11-17 14:20:56 +00:00
chw
971854898a
Added support for vxworks >= 6.4; RTP mode tested, kernel mode untested. (CVS 5910)
...
FossilOrigin-Name: f45a1493636a5ee474dd6c0b5d286be2249b05aa
2008-11-17 08:05:31 +00:00
danielk1977
d92db531c8
Modifications to pager.c to avoid the unsigned/signed warnings. (CVS 5909)
...
FossilOrigin-Name: cb6be84dfc5d6546d07359b32fe04555561325de
2008-11-17 04:56:24 +00:00
danielk1977
44cd45c85d
Fix compiler warnings in pcache1.c related to comparison of unsigned and signed values. (CVS 5908)
...
FossilOrigin-Name: ce77ea989ea0bf4b44d5b9d0e58d30fd956038d3
2008-11-15 11:22:45 +00:00
danielk1977
032c0c14f9
Add a line to genfkey.README showing how to link against a shared library. Ticket #3502 . (CVS 5907)
...
FossilOrigin-Name: 800274b76945a41ca4ea72c455d220103a6b01dc
2008-11-15 04:54:31 +00:00
danielk1977
777da0848d
Fix a couple of memory leaks that may follow malloc failures. (CVS 5906)
...
FossilOrigin-Name: 4cf8a8e1bf22e1d8f7166e64328a95fe36c75033
2008-11-13 19:12:34 +00:00
shane
dcc50b74e6
Fixed several more crashes due to corrupt db files. Added corruptC.test to soak.test. (CVS 5905)
...
FossilOrigin-Name: 9b7a52e952c81e50611e04d2d79003b0ddc57ee5
2008-11-13 18:29:50 +00:00
shane
84ca3837c2
Added support for -DSQLITE_NO_SYNC to os_win.c. (CVS 5904)
...
FossilOrigin-Name: 2649337937077d2dba7cdc7473fcd176aa252a52
2008-11-13 18:20:43 +00:00
shane
ec21707dd7
Fixed typo in tkt3472.test that prevented the test from running. (CVS 5903)
...
FossilOrigin-Name: 428a5479200dc24e2ee9b4a85ef6caadacbdbbd7
2008-11-13 18:02:51 +00:00
danielk1977
093e0f6ffe
Avoid committing a transaction from within the xSync() method of a virtual table. Fix for #3497 . (CVS 5902)
...
FossilOrigin-Name: eabb8b7591eab164c637d78ca4df00fcb5bd3c5b
2008-11-13 18:00:14 +00:00
danielk1977
ac8d7b35fa
Minor changes to get memsys5 compiling and its tests passing. Ticket #3495 . (CVS 5901)
...
FossilOrigin-Name: 96453ca16e90bc0c0cbfb75b3e39899f56d6ea66
2008-11-13 16:21:50 +00:00
danielk1977
d17e71c95c
Update mksqlite3c.tcl to include new file pcache1.c. (CVS 5900)
...
FossilOrigin-Name: 00442e0f57b52808d087154c84ece531bf1cfb62
2008-11-13 14:42:18 +00:00
danielk1977
bc2ca9eb39
Add an API to support custom page cache implementations. (CVS 5899)
...
FossilOrigin-Name: 47866d6708e9b69e367937fd85f93580fd025447
2008-11-13 14:28:28 +00:00
danielk1977
0d0654119f
Avoid some buffer overreads detected by valgrind while running corruptC.test. (CVS 5898)
...
FossilOrigin-Name: faa6bd7b615837c920b5b3b027115caa2f56ec15
2008-11-12 18:21:36 +00:00
drh
f99b7c8d56
Version 3.6.5 (CVS 5897)
...
FossilOrigin-Name: 369f74983bb1b6a6426260148018cdc084fc2b49
2008-11-12 15:38:53 +00:00
drh
7ab49bfd1e
Do not redefine the MIN and MAX macros if they are already defined. (CVS 5896)
...
FossilOrigin-Name: f41dd2053c8a297a05b47d0ef631b4d9a7db2fff
2008-11-12 15:24:27 +00:00
danielk1977
ef988b47a4
In corruptC.test, explicitly set "PRAGMA auto_vacuum = 0". (CVS 5895)
...
FossilOrigin-Name: b6563af8f9517760c2346a820e241b0517a10fe0
2008-11-12 14:22:25 +00:00
drh
03c7a2f1a1
Update the version number to 3.6.5. (CVS 5894)
...
FossilOrigin-Name: f150b870e3a24d407d8d5ac374e2a7d0f4072a2d
2008-11-12 14:21:05 +00:00
drh
0d7f4fc4b0
Omit the threadOverrideEachOthersLocks tests for builds that non-unix
...
or non-threadsafe. (CVS 5893)
FossilOrigin-Name: ab418656dbf3d2e055b2462a155d90863fef6582
2008-11-12 14:07:51 +00:00
drh
d72a276e9a
Fix a faulty assert in select.c. Ticket #3494 . (CVS 5892)
...
FossilOrigin-Name: e89f9c806328e0de2e8633e09242f67e26f43d76
2008-11-12 12:27:31 +00:00
danielk1977
ab396298c4
Modify a failing test case in corruptC.test. The test case was failing only because the integrity_check was returning a slightly different error message than expected. (CVS 5891)
...
FossilOrigin-Name: 0953f300f8e8b2bed79ef3189a1cb29f058f388b
2008-11-12 11:57:41 +00:00
danielk1977
360e634ed4
Fix a database corruption related crash uncovered by corruptC.test. (CVS 5890)
...
FossilOrigin-Name: 395084acbb4c8ef878d858f640f1ed6be908d175
2008-11-12 08:49:51 +00:00
danielk1977
259a455f71
Make sure affinities and implicit collation sequences are correctly used by comparison expressions in the select-list or having clause of an aggregate query. Ticket #3493 . (CVS 5889)
...
FossilOrigin-Name: b8ceaa00500f29bbbd0cc5aec71a6ffa91ae6b43
2008-11-12 08:07:12 +00:00
shane
0af3f8935f
Fixed a few more crashes when dealing with corrupt db files. (CVS 5888)
...
FossilOrigin-Name: f8bb34e40917e55696376d2def932a41ad43d0ae
2008-11-12 04:55:34 +00:00
shane
34ac18daf5
Fixed crash during an UPDATE when free cell size is corrupt. (CVS 5887)
...
FossilOrigin-Name: ec18667e2d2826a27f2c052ba3790ab5b8cf0bc4
2008-11-11 22:18:20 +00:00
shane
826d5b7e1c
Prevent a crash during an UPDATE when the cell offset is corrupt. (CVS 5886)
...
FossilOrigin-Name: 99d4172ed6825c7efb6cbb28eb00d98323a13954
2008-11-11 20:51:50 +00:00
drh
dfef499856
Send the "Incomplete SQL" error message of the CLI to stderr instead of
...
stdout. Ticket #3476 . (CVS 5885)
FossilOrigin-Name: dacae200477afffec826b3ca1517f33b110b6122
2008-11-11 18:55:03 +00:00
danielk1977
95338ab70c
Remove some asserts that refer to variables removed in (5830). (CVS 5884)
...
FossilOrigin-Name: 9d880a6fd244fb73d0fce7e8180177c54d95cde2
2008-11-11 18:43:00 +00:00
danielk1977
41a6a61d94
Change the way threadsOverrideEachOthersLocks() works to avoid trying to write-lock a (potentially) read-only files. Also, assume that on non-linux systems threads do override each others locks. Ticket #3472 . (CVS 5883)
...
FossilOrigin-Name: 8ecae0943b06102fe22133db0dcaf58ecbd39545
2008-11-11 18:34:35 +00:00
drh
a78c22c433
Cleanup in flattenSubquery. Add OOM tests for flattenSubquery. Fix issues
...
with OOM errors causes problems for flattenSubquery. Ticket #3485 . (CVS 5882)
FossilOrigin-Name: ea5f4baa041aed934600f0f96b84afb92a14bc47
2008-11-11 18:28:58 +00:00
shane
5780ebdf79
Fixed crash in integrity_check with corrupt content offset size in page header. (CVS 5881)
...
FossilOrigin-Name: 0659a666ff0a9fc81ee4df3c35e535164c79e588
2008-11-11 17:36:30 +00:00
drh
86a7a69cbe
Avoid signed/unsigned comparison warnings in bitvec.c by changing the
...
types of loop variables to unsigned int. (CVS 5880)
FossilOrigin-Name: da869446c53ec6ed769bba01cdc2b6fd69a8b5c9
2008-11-11 15:48:48 +00:00
drh
4d01aeedbb
When an assignment occurs in a boolean, always test the result using "!=0"
...
to avoid confusion and make it clear that assignment is intended, not
an equality test. Ticket #3491 . (CVS 5879)
FossilOrigin-Name: 89ee5295bdea6f2c093eb6a44d69917dcc8459e3
2008-11-11 00:36:16 +00:00
drh
c717b382b8
Fix the CLI so that it does not terminate input when an Oracle or MS-SQL
...
command terminator mark is seen in the middle of a string literal.
Ticket #3490 . (CVS 5878)
FossilOrigin-Name: 68662e3b487b80b2c94cd2376060388bd8df0e4e
2008-11-11 00:30:11 +00:00
drh
753cc1077b
When an OOM error occurs while resizing an sqlite_value object, make sure
...
the value of the object is set to NULL. Ticket #3488 . (CVS 5877)
FossilOrigin-Name: 7b9c9b35fffb233e76148182426199d51243fba7
2008-11-11 00:21:30 +00:00
drh
2e904c5f9e
Fix the documentation of the SQLITE_FUNCTION authorizer code so that it
...
agrees with how SQLite has always behaved. Ticket #3489 . (CVS 5876)
FossilOrigin-Name: 806b6ed202292e386ac3e51cebcfb67f3870cd2f
2008-11-10 23:54:05 +00:00
shane
b2111838c6
#ifdef out unused static function mutexIsNT(). Ticket #3481 . (CVS 5875)
...
FossilOrigin-Name: 239186804c7541abc512da33bba8f6fc7d24a374
2008-11-10 20:01:40 +00:00
shane
c782f69abb
Updated comment in source. Ticket #3453 . (CVS 5874)
...
FossilOrigin-Name: 83caa22087bcaa184eff559971262e4d7eecd0e0
2008-11-10 19:24:38 +00:00
shane
c8330f4b1d
Add check for ifcapable autovacuum to vacuum2-3.3 test. Ticket #3435 . (CVS 5873)
...
FossilOrigin-Name: fc36f2fc45b2d319ef0be97e1af1748d3e862690
2008-11-10 18:20:16 +00:00
shane
2479de3a20
Removed a few more small parts of memsys6 code, including some config and test code for it; (CVS 5872)
...
FossilOrigin-Name: a11241d6fbc9e0408d5adc73d494b85124d2d609
2008-11-10 18:05:35 +00:00
shane
831c329542
In btree.c, omit calls to setChildPtrmaps() if SQLITE_OMIT_AUTOVACUUM is defined. Ticket #3439 . (CVS 5871)
...
FossilOrigin-Name: e0f07323e878c44ad2ccc38628c74c27f79e35ef
2008-11-10 17:14:58 +00:00
shane
7ba429a61c
Fixed typos; Consistent use of Mac OS X name; (CVS 5870)
...
FossilOrigin-Name: dfc94743378e576ecc5c567ae4020bf9594a3fb9
2008-11-10 17:08:49 +00:00
drh
bbf695d6ea
Prevent buffer overruns when converting malformed UTF16 to UTF8. Ticket #3482 . (CVS 5869)
...
FossilOrigin-Name: 3f657e88767f60d305dd6151e7aa54363341d052
2008-11-07 03:29:33 +00:00
drh
98c58356ae
Prevent a rollback from crashing if the sector-size field of the
...
rollback journal is corrupted. (CVS 5868)
FossilOrigin-Name: cf9d1d933f6b6713018928d9a7680ae63e8edcd0
2008-11-07 00:24:53 +00:00
drh
4c17c3fb11
Add documentation to make it clear that short reads from xRead in the VFS
...
must be zero-filled. (CVS 5867)
FossilOrigin-Name: fb311d6f4098a08f05b3fac9a2a7e2a53c38bb5f
2008-11-07 00:06:18 +00:00
drh
1735fa8892
Fix a bug in the CAST operator associated with the column cache. (CVS 5866)
...
FossilOrigin-Name: 1b6a5140446da896f69fddc8d1ea076815bb45e3
2008-11-06 15:33:03 +00:00
drh
0793f1bdb4
Fix memory allocation problems when string length exceeds limits. (CVS 5865)
...
FossilOrigin-Name: b568e325205acaa2f63bce2d6cc2808edc9f2e01
2008-11-05 17:41:19 +00:00
drh
ad4a4b8047
The COMMIT command now works even if there are pending queries, as long
...
as the pending queries are reading and not writing the database. (CVS 5864)
FossilOrigin-Name: 51f04aaff2803487933b9dfcf39f27a249f18a98
2008-11-05 16:37:34 +00:00
shane
7b607a081f
Should be 'memjournal.lo' instead of 'memjournal.o'. Ticket #3480 . (CVS 5863)
...
FossilOrigin-Name: 8b868604217571cf2f60cdf46adb9721ca071bf9
2008-11-04 21:51:03 +00:00
danielk1977
5f6d0268fb
Add test cases for sqlite3_db_mutex(). (CVS 5862)
...
FossilOrigin-Name: f818e8e5cb20c51922d0b5424f17649e0692f273
2008-11-04 14:55:47 +00:00
drh
2838b47234
Enhance documentation of sqlite3_db_mutex(). (CVS 5861)
...
FossilOrigin-Name: 3aed410ab08557ec92101e5d7c4c90ba50555ddc
2008-11-04 14:48:22 +00:00
drh
c46f52034f
Avoid a segfault when OOM on a simple EXPLAIN query. Ticket #3478 . (CVS 5860)
...
FossilOrigin-Name: acf26cc0f77b3a308d86f6dc02ecda66a4b12fd0
2008-11-04 14:25:06 +00:00
drh
4413d0e976
Add the sqlite3_db_mutex() interface. No test cases yet. (CVS 5859)
...
FossilOrigin-Name: d95de32e8ded397adeef8f7a29b87bc85669ac95
2008-11-04 13:46:27 +00:00
drh
3e0a3c9df4
Test cases to verify that COMMIT and ROLLBACK return SQLITE_BUSY when
...
there are active statements. (CVS 5858)
FossilOrigin-Name: cedfa214e4e979ab04a30f558f767d46862151de
2008-11-03 21:40:00 +00:00
drh
dfe88ece74
Change the name of the Cursor object to VdbeCursor. (CVS 5857)
...
FossilOrigin-Name: fdb98fd8c1706085ebeef8e48ac6737839bed5e5
2008-11-03 20:55:06 +00:00
danielk1977
e435975093
Modify an assert() statement to fix #3473 . No other code changes. (CVS 5856)
...
FossilOrigin-Name: aca6b260c0dd1a1515b70f3567a0653b6bcdeea2
2008-11-03 09:39:45 +00:00
danielk1977
3072c5ea11
Fix a bug reported on the mailing list triggered by the pattern "SELECT <col>, (SELECT ... FROM tbl WHERE rowid > <col>) FROM ...". (CVS 5855)
...
FossilOrigin-Name: 6c918c4eb9362ebfdbe0486515679102b2862970
2008-11-03 09:06:05 +00:00
shane
2d16fb1d34
Test that single byte corruptions in increasingly larger quantities are handled gracefully. (CVS 5854)
...
FossilOrigin-Name: c73d915923e393f72e1c0897526a20527db2e03c
2008-10-31 13:57:40 +00:00
danielk1977
10fb749b37
Change the way sqlite3VdbeSetColName() is called so as to remove a few lines of code. This also fixes #3470 . (CVS 5853)
...
FossilOrigin-Name: bfce91429b1dad6e0ca36929e41a7adfb30f8522
2008-10-31 10:53:22 +00:00
drh
1c0dc8256b
Fix a faulty assert() in the merge implementation of the UNION operator.
...
Ticket #3467 . (CVS 5852)
FossilOrigin-Name: cd1662e964d9c071a41038676c5a6ef2c990f1ac
2008-10-30 22:13:23 +00:00
danielk1977
f150c9de55
Fix a crash that can follow a malloc failure in sqlite3ValueFromExpr(). Ticket #3468 . (CVS 5851)
...
FossilOrigin-Name: 0996783b1b7e6dda166565071cbd19f23e7edbbc
2008-10-30 17:21:12 +00:00
drh
99dfe5eb47
Add the sqlite3_extended_errcode() interface. Change to return
...
SQLITE_BUSY instead of SQLITE_ERROR when a COMMIT is attempted and one
or more queries are still pending. (CVS 5850)
FossilOrigin-Name: 4c6a90a16627b1664bf7f15ab40b440b3bd60b48
2008-10-30 15:03:15 +00:00
danielk1977
281d8bd3ac
If a hot-journal file is detected but the application does not have the required read/write permissions, return SQLITE_CANTOPEN. Prior to this change, SQLITE_BUSY was returned. Ticket #3457 . (CVS 5849)
...
FossilOrigin-Name: dc5308c7629abe6a3bad21489c8e97087c264e5a
2008-10-29 07:01:56 +00:00
drh
d1370b6d92
Remove the vestigial mem4 and mem6 memory allocators. Add the
...
SQLITE_ZERO_MALLOC compile-time option and the mem0.c module to
handle memory allocation for that case. (CVS 5848)
FossilOrigin-Name: 4651f590f0b8bf13938b2b15d5082136e763af8d
2008-10-28 18:58:20 +00:00
drh
27c3bd7b73
Add data structure description comments to memjournal.c. (CVS 5847)
...
FossilOrigin-Name: e9c2adbcbf5c28837b06e0fbba93f1764cc3607f
2008-10-28 18:12:36 +00:00
danielk1977
0f3f072d9f
Avoid exposing internal interfaces sqlite_attach() and sqlite_detach() as SQL scalar functions. Ticket #3466 . (CVS 5846)
...
FossilOrigin-Name: 679c0b35aaa1ea488a205cc03802e7078a2bcf29
2008-10-28 17:52:39 +00:00
danielk1977
52bd7912af
If an SQLITE_DELETE authorization callback returns SQLITE_IGNORE, proceed with the delete operation but disable the truncate optimization. (CVS 5845)
...
FossilOrigin-Name: 65a2e131732399f0f14f982eb0689482fdb87b6c
2008-10-27 15:34:32 +00:00
danielk1977
c7af484b4b
Make sqlite3_count_changes() and total_changes() work with "DELETE FROM <table-name>". (CVS 5844)
...
FossilOrigin-Name: e68e4282adb9003aa297d033aeb5d9cadee215cd
2008-10-27 13:59:33 +00:00
danielk1977
9a02fb444c
Remove some if() conditions that are always true from delete.c. (CVS 5843)
...
FossilOrigin-Name: 297ad90dd3a69002e6e4175e9e3938b3a627574d
2008-10-27 08:24:38 +00:00
danielk1977
a7435e31ab
Remove unused parameter from function rtreeInit() (part of the r-tree extension). (CVS 5842)
...
FossilOrigin-Name: 3224ea59812d0f3b5685bd92751054b81e3b681e
2008-10-25 17:10:10 +00:00
drh
31daa63f3e
Disable the result-set alias cache when on conditional code branches.
...
Ticket #3461 . The column cache and result set alias cache mechanisms are
prone to this kind of error and need to be refactored. This check-in should
be considered a temporary fix in advance of a more general redesign of the
whole mechanism. (CVS 5841)
FossilOrigin-Name: 1fa3bbd8220ce073e91935ea362b6f5d5d6d2859
2008-10-25 15:03:20 +00:00
danielk1977
a2f8c24ca3
Add file tkt3461.test with a few examples of bug #3461 . Because these tests currently fail they are disabled for now. (CVS 5840)
...
FossilOrigin-Name: f2cc159159278201809022706c28bc53b6c3c859
2008-10-25 09:34:59 +00:00
danielk1977
f96a3778f9
Fix a bug in pragma table_info. Column default values specified as negative numbers (col DEFAULT -1) were being reported as NULL by the pragma. (CVS 5839)
...
FossilOrigin-Name: 0e448bc6096c7ee3b21dbd22dc4ca9470ae7ba31
2008-10-23 05:45:07 +00:00
shane
b1cd7308dc
Updated configure/makefiles to handle SQLITE_ENABLE* compile options. Made sure makefile passes command line options (OPTS=-Dfoo) to the compiler. Add -DSQLITE_COVERAGE_TEST=1 if gcov being used. (CVS 5838)
...
FossilOrigin-Name: acb106e51f8bb7449a0e214075c559cc66497277
2008-10-22 18:27:31 +00:00
shane
891adeac5c
Removed some more dead code and fixed some unresolved externals for WINCE. Ticket #3420 . (CVS 5837)
...
FossilOrigin-Name: 5276e31d42070e7b94bd6050c4fa484dfbfe98ca
2008-10-22 16:55:47 +00:00
shane
049fc21db9
Make sure variable declarations occur first in code blocks. (CVS 5836)
...
FossilOrigin-Name: b78f44c91fcf3920e69c11a6f72e8f032905a3c7
2008-10-22 16:26:47 +00:00
shane
3ed4e64cd8
Test cases for ticket #3442 . (CVS 5835)
...
FossilOrigin-Name: a8bb5acf708c8f7e52d3f67b85094116386f10fa
2008-10-22 16:04:42 +00:00
danielk1977
d207d8084e
Fix an assert() failure that can occur following a malloc() failure. Ticket #3455 . (CVS 5834)
...
FossilOrigin-Name: e0d3aa75b4fa0e706185a3058b5962916e30d066
2008-10-22 10:45:37 +00:00
danielk1977
6553c5c81a
Update the autoconf build system to include memjournal.c. (CVS 5833)
...
FossilOrigin-Name: a3c810f0c80e3e9dfe60a0ffd8688d7c76a30d50
2008-10-21 04:30:31 +00:00
drh
1885d1c201
When a name in double quotes falls back to being a string literal,
...
make sure it has no affinity. Ticket #3442 . (CVS 5832)
FossilOrigin-Name: 81cfee5c14f241f5ae7f607d73b0b5cb821cda24
2008-10-19 21:03:27 +00:00
danielk1977
39281b4b42
Add the memjournal.c file that should have been with the previous checkin. (CVS 5831)
...
FossilOrigin-Name: 0509eff0e6b5cdeeb52c12c0574ea63e9715bcb5
2008-10-17 19:13:04 +00:00
danielk1977
b3175389c7
Add "pragma journal_mode=memory". Change the way rollback works for in-memory databases so that it reuses the journal_mode=memory code. (CVS 5830)
...
FossilOrigin-Name: 39ebf01addf9d0867daafd06a38719e725128f9c
2008-10-17 18:51:52 +00:00
drh
7b228b3e39
Fix a typo in documentation. Ticket #3447 . (CVS 5829)
...
FossilOrigin-Name: 5ce2ddffea807d45318619cc9e259a99dfa14346
2008-10-17 15:10:37 +00:00
danielk1977
d39fa70c79
Fix an error in (5826). (CVS 5828)
...
FossilOrigin-Name: 8065a92f705dfa04863ba4a828f5bd2803901be8
2008-10-16 13:27:40 +00:00
drh
9e885cd885
Fix a naming problem when SQLITE_MUTEX_NOOP is used. (CVS 5827)
...
FossilOrigin-Name: 35ce71c6f19953a17aa37abe1c0c97685070e2f6
2008-10-15 19:03:02 +00:00
danielk1977
d138dd8687
Do not open and sync the directory in unixDelete() if the SQLITE_DISABLE_DIRSYNC option is defined. (CVS 5826)
...
FossilOrigin-Name: 8ef141644edc5182785c6a554222c2ffbe92fef5
2008-10-15 16:02:48 +00:00
drh
3ad92f1b64
Version 3.6.4 (CVS 5825)
...
FossilOrigin-Name: cd73cffab39d80393f26a20c90aa97cb73d595ea
2008-10-15 11:59:23 +00:00
danielk1977
ab7bee892b
After running speed1.test and speed1p.test, reset the size of the lookaside buffer. Otherwise, subsequent runs of malloc5.test may report an error. Changes to test code only. (CVS 5824)
...
FossilOrigin-Name: 9283478e69d84aa99b2d4636587c8c0b34e7c4da
2008-10-15 11:43:55 +00:00
danielk1977
4bd3ce69ac
Disable the page-cache at the end of pcache2.test. (CVS 5823)
...
FossilOrigin-Name: 3d2d05b6286e2a22a711e02f37748065b3b7f86e
2008-10-14 19:21:51 +00:00
drh
9965a04a63
Fix the amalgamation generator to recognize indented #include directives.
...
Ticket #3438 . (CVS 5822)
FossilOrigin-Name: 494510d8f25c69f5a5f5937b92f505849def6745
2008-10-14 18:21:11 +00:00
drh
72cbd078c3
Fix the xRandomness() method on the unix VFS to return the number of bytes
...
of randomness obtained. (CVS 5821)
FossilOrigin-Name: b7687e2f2dfa5b0a01ba87ae0bf13684cda50499
2008-10-14 17:58:38 +00:00
drh
7cd30bd3d0
Make sure malloc3.test runs even if a CREATE TABLE transaction commits
...
prior to the last OOM error. (CVS 5820)
FossilOrigin-Name: 603c40e5b47e4798136af5420a1fa1511791a934
2008-10-14 15:54:08 +00:00
danielk1977
a0042db80f
Update main.mk so that a couple of fts3 files are compiled with SQLITE_TEST when building testfixture. (CVS 5819)
...
FossilOrigin-Name: 8eb315ee5c2a15919171b7d495ac4f1c851b2da9
2008-10-14 14:56:01 +00:00
danielk1977
376687518e
Modifications to main.mk so that -DSQLITE_ENABLE_FTS3 works. (CVS 5818)
...
FossilOrigin-Name: a06d226dee0df0df1aedb9c17353332c6a6e712f
2008-10-14 14:28:35 +00:00
pweilbacher
ab88e17ce3
fix a few return codes in the OS/2 VFS (CVS 5817)
...
FossilOrigin-Name: 4e978a40f7ee93b09093e82173edc74a992aadeb
2008-10-13 21:46:46 +00:00
drh
104d74c752
Get the load extension tests working on amd64. Needed for test coverage. (CVS 5816)
...
FossilOrigin-Name: 119b69fba0c27c4c479749360176b6eb69d2e70f
2008-10-13 17:09:11 +00:00
drh
21717ed6f0
Fix the SQLITE_OMIT_DATETIME_FUNCS compile-time option so that it builds
...
successfully. (CVS 5815)
FossilOrigin-Name: c3f91645159511250c9f86c2a97d819f0253d182
2008-10-13 15:35:08 +00:00
drh
1554262148
In rollback.test, do not check for journal deletion if the journal mode
...
is not DELETE. Call show_memstats after each test module in all.test
and quick.test. (CVS 5814)
FossilOrigin-Name: df2c28dc7310510bada292a2e8c1be073803858c
2008-10-13 14:16:11 +00:00
danielk1977
30629571f6
Use one less temporary table in genfkey.c. The retired table was being used to workaround the bug fixed by (5812). (CVS 5813)
...
FossilOrigin-Name: 73efca985a05930df761b42886a3ba1c5199f32a
2008-10-13 10:56:48 +00:00
danielk1977
d0ffa1e815
If sqlite3_column_value() is called to obtain a value with the MEM_Static flag set, clear it and set the MEM_Ephem flag before returning. Otherwise, if the value is passed to sqlite3_bind_value() or sqlite3_result_value(), sqlite may attempt to use the buffer after the statement has been finalized. This is not always valid, as MEM_Static only guarantees that a MEM.z buffer will be valid for the lifetime of the owner statement, not that it is actually a static buffer. (CVS 5812)
...
FossilOrigin-Name: b055bfc4e5268d8a66d6a4f5e8aec1285fe4b8e7
2008-10-13 10:37:49 +00:00
shane
a3465f2d78
Check for failures in winTruncate. Ticket #3415 . (CVS 5811)
...
FossilOrigin-Name: 500c50561fba88948aad21d1aef1e1e96ab8c3aa
2008-10-12 02:27:38 +00:00
shane
e5447f5c1c
Added -DSQLITE_ENABLE_RTREE=1 to the mkdll.sh script. Ticket #3427 . (CVS 5810)
...
FossilOrigin-Name: 66f57ecb1626f3c5292070c1b9a9c1a9a9164d4f
2008-10-12 02:03:37 +00:00
shane
b0650c26a5
Add gcov compile options to link line when GCOV option enabled. (CVS 5809)
...
FossilOrigin-Name: 3ddda111867f64d9dfd729c50c4d0555cac1499d
2008-10-12 01:49:41 +00:00
shane
eec556d3b7
Added SQLITE_OMIT_DEPRECATED compile time option to leave out deprecated functions. Updated test scripts to skip tests of deprecated functions if they are compiled out. (CVS 5808)
...
FossilOrigin-Name: ba3711acee6f4659bbf133a23d8f9f37e14d0f38
2008-10-12 00:27:53 +00:00
drh
189077f376
Add macros tests so that the compiler always recognizes that x86_64 is little endian. (CVS 5807)
...
FossilOrigin-Name: b201e7093c7c47b23b0f17a0890a344f3792d6d3
2008-10-11 18:11:21 +00:00
danielk1977
9ff3f3f772
When transfering an error message from a statement handle to the database handle so that it can be accessed by sqlite3_errmsg(), a malloc may fail. If this malloc fails, it is considered benign. (CVS 5806)
...
FossilOrigin-Name: 311003aff85e6b6c47e854d33f46eee31da6f30c
2008-10-11 17:51:38 +00:00
drh
419fcf66db
Conditionally omit prototypes in pcache.h when the corresponding routines
...
are not used. Ticket #3430 . (CVS 5805)
FossilOrigin-Name: 977ae12c365846e1bc582fd17146151953b5ed68
2008-10-11 17:42:28 +00:00
drh
ddecae7995
Fix to sqlite3DbMallocRaw() when SQLITE_OMIT_LOOKASIDE is defined so that
...
once it fails it continues to fail. Add a comment explaining why this is
important. (CVS 5804)
FossilOrigin-Name: 63dd8be70d333c56171dfd254406abb1af685b0f
2008-10-11 17:35:16 +00:00
drh
8867e38aab
Fix a OOM segfault in the BETWEEN operator parsing - discovered while
...
using SQLITE_OMIT_LOOKASIDE. Add SQLITE_OMIT_LOOKASIDE to test_config.c and
bypass lookaside.test when defined. (CVS 5803)
FossilOrigin-Name: 2a21d52c651ba113c472b6686dcf8ba009924305
2008-10-11 17:06:04 +00:00
danielk1977
435f29d6eb
Add "nolookaside" case to permutations.test. (CVS 5802)
...
FossilOrigin-Name: 56fb7a22864774fcbd8cd00195359dc0f223ec8b
2008-10-11 17:04:04 +00:00
drh
10fe840e4d
Fix a memory leak on ORDER BY of a compound select caused by the resolver
...
on a flattened query. Also fix a OOM segfault in WHERE clause processing. (CVS 5801)
FossilOrigin-Name: d2c252d6bbde4ae14da6c9e6c2683d763d11c59f
2008-10-11 16:47:35 +00:00
drh
4150ebf86f
Added an assert() to detect lookaside memory leaks. Also added the
...
SQLITE_OMIT_LOOKASIDE compile-time option which is useful in trying to
track down lookaside memory leaks. (CVS 5800)
FossilOrigin-Name: 0c4c66071a46cecc5f87afb8f8f01ae2c90ee9b3
2008-10-11 15:38:29 +00:00
drh
99655beecf
Fix an assertion fault that occurs with SQLITE_THREADSAFE=0. (CVS 5799)
...
FossilOrigin-Name: 28bba42b338afd63e1dad9f431d631f6f3027275
2008-10-11 15:20:04 +00:00
drh
f8cecdab84
Add the SQLITE_OMIT_TRUNCATE_OPTIMIZATION option. Other unrelated
...
documentation enhancements. (CVS 5798)
FossilOrigin-Name: fab4940d54fd1e5459a3d0d9b64b491e6972fd8d
2008-10-10 23:48:25 +00:00
shane
49ffdbf47e
Further simplifications of the code for the LIMIT clause on an UPDATE or DELETE. Added a few test cases to wherelimit.test. (CVS 5797)
...
FossilOrigin-Name: 282c6a46b25f4e4278fd4c8b0b1cde1de28d8f51
2008-10-10 18:25:45 +00:00
danielk1977
c30bfeee4e
Add the genfkey program to the tool/ directory. (CVS 5796)
...
FossilOrigin-Name: 84e73fe8a6f538c4b1bb4f641a661d6fafb60c76
2008-10-10 17:58:26 +00:00
danielk1977
50af3e1d2d
Change 'pragma foreign_key_list' to return some extra information. (CVS 5795)
...
FossilOrigin-Name: 3bb33cf59da49f13201c0226e964cda067a4e780
2008-10-10 17:47:21 +00:00
drh
1b67f3caf2
Simplify the symbol hash table to use only a single key class. Other
...
changes to improve code coverage. (CVS 5794)
FossilOrigin-Name: ff50a8a7e5a15fac192939ff3206fa18d1c5a6dd
2008-10-10 17:41:28 +00:00
drh
adfae6c68b
Documentation updates. No changes to code. (CVS 5793)
...
FossilOrigin-Name: 07b5f70317a0b2d32df86a01bdeec79ead00f68c
2008-10-10 17:26:35 +00:00
drh
931577f1cc
Simplify the parser reduction code for the LIMIT clause on an UPDATE or
...
DELETE. (CVS 5792)
FossilOrigin-Name: 3de179630e812396ec29e77f7a06758472d0802f
2008-10-10 14:27:16 +00:00
shane
b235db9c7b
Re-factored memory allocation failure handling in the sqlite3LimitWhere() function based on failures in the mallocJ.test script. (CVS 5791)
...
FossilOrigin-Name: 43507bbefbf79e8db8fe31319ad621d48247983f
2008-10-10 13:35:57 +00:00
shane
468327f16a
Added mallocJ.test to test allocation failure handling of the new LIMIT/OFFSET support for UPDATE/DELETE. (CVS 5790)
...
FossilOrigin-Name: 5375b348b12a4ae149472c84d6f05a78a5542a21
2008-10-10 13:34:29 +00:00
shane
8a7389f276
Initial test cases for the new LIMIT/OFFSET support for DELETE/UPDATE. (CVS 5789)
...
FossilOrigin-Name: d9f5e15ca00d4d54dc395926e4c9171f1d24982a
2008-10-10 06:01:59 +00:00
shane
273f619b58
Updated LIMIT support for DELETE/UPDATE. Omit option changed to SQLITE_ENABLE_UPDATE_DELETE_LIMIT. (CVS 5788)
...
FossilOrigin-Name: c10e8a3c7ab7f21c95f24d0aba590f5b18a4b028
2008-10-10 04:34:16 +00:00
danielk1977
510f96590b
Fix an assert() failure that can occur if the user attempts to set an into an integer primary key column to a text value in a table that has a BEFORE UPDATE trigger. (CVS 5787)
...
FossilOrigin-Name: c2cf9d60d6626844193b008a37e4417aa0a0f323
2008-10-09 18:48:30 +00:00
drh
5eddafeb64
New speed testing tools. (CVS 5786)
...
FossilOrigin-Name: 2d427746d53104ca032c404f7f65c51b41b7a20e
2008-10-09 17:57:33 +00:00
drh
da81eab599
Add a test to verify the sqlite3_column_name() interface returns the
...
correct value when the query is of the form: "SELECT rowid,* FROM...".
Ticket #3429 . (CVS 5785)
FossilOrigin-Name: e90d5a5515f7096e247e6059cf77f8089ed90b2c
2008-10-09 15:56:45 +00:00
drh
9583d53e8f
Update the version number to 3.6.4. (CVS 5784)
...
FossilOrigin-Name: 4b973ac98d027cc1097fa9845eb4a8489b633ea4
2008-10-09 15:56:06 +00:00
drh
073e7b1ca3
Minor cleanup of the new "status" command on the TCL bindings. (CVS 5783)
...
FossilOrigin-Name: ec01bd72ee875df179c680c1a40304d2f807fe38
2008-10-09 14:45:25 +00:00
danielk1977
be51a65dbc
After an OP_NullRow is executed on a cursor, cause any subsequent OP_Next or OP_Prev to behave as if there were no more rows to traverse. Ticket #3424 . (CVS 5782)
...
FossilOrigin-Name: af679f6170b346fe61df7dae963b2a2853e62a62
2008-10-08 17:58:48 +00:00
drh
d1d384888b
Add the experimental sqlite3_stmt_status() interface. (CVS 5781)
...
FossilOrigin-Name: de473efb35ffdf9a8222a70a84dfd7d3198c87c1
2008-10-07 23:46:38 +00:00
drh
e82f5d04c3
Raise the hard upper bound on SQLITE_MAX_FUNCTION_ARG to 1000 from 100.
...
The default upper bound is still 100, but it can now be raised as high
as 1000 at compile-time. (CVS 5780)
FossilOrigin-Name: 79df72ee836db91647913055ba6cf55558679b01
2008-10-07 19:53:14 +00:00
drh
18472fa7b8
Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0
...
option always removes all mutex code. For application-defined mutexes only,
use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1. Ticket #3421 . (CVS 5779)
FossilOrigin-Name: 02a12eb1cfe9307c66556105a1a99d657cc01ab5
2008-10-07 15:25:48 +00:00