drh
2333606e9c
Fix a problem in check-in (6226) which could cause an assertion fault
...
following a malloc failure. The prior check-in was for ticket #3624 . (CVS 6235)
FossilOrigin-Name: 1ffe44e9d6b49346a75850a977953de12c127069
2009-02-03 13:19:12 +00:00
drh
478000cf5c
Check-in (6230) introduced a bugs in SUBSTR() which was caught by the fuzz
...
tester. Fixed by this check-in. Related to ticket #3628 . (CVS 6234)
FossilOrigin-Name: cd2e7f6c0fe4c0c648f8ca21388ab0769164f5ef
2009-02-03 13:10:54 +00:00
drh
07d3117aed
Make group_concat() a 1- or 2-value function, as the documentation says it
...
should be. Use the md5sum() function to verify ticket #3179 , not
group_concat(). This undoes the ill-advised group_concat() change of
check-in (5233). (CVS 6233)
FossilOrigin-Name: f2ae82c4d46c2eca30fc60a50ab5064728f20739
2009-02-02 21:57:05 +00:00
drh
bdb339ff73
Omit the TEMP keyword from the schema of TEMP tables created using
...
CREATE TEMP TABLE AS SELECT ..... Ticket #3630 . (CVS 6232)
FossilOrigin-Name: 3b0a25548c4c15c86aadcd9a6c3af0adafb85c17
2009-02-02 18:03:21 +00:00
drh
a0df4ccfe3
Minor simplifications to SQL function implementations. (CVS 6231)
...
FossilOrigin-Name: 92e5c27f20f150c1777c1b91d35207ade961319d
2009-02-02 17:29:59 +00:00
drh
65595cd60b
Update the SUBSTR function so that works consistently when the
...
2nd parameter is 0. Ticket #3628 . (CVS 6230)
FossilOrigin-Name: 5fc125d362df4b8525c7e1ab34a14f505756af24
2009-02-02 16:32:55 +00:00
drh
9373b01882
Restrict the RANDOM() function to have zero arguments. Ticket #3627 . (CVS 6229)
...
FossilOrigin-Name: b8b546b6ed799dc1621ef7b06273249af1042fb2
2009-02-02 01:50:39 +00:00
drh
8198d25442
Fix SUBSTR() so that it returns NULL if any argument is NULL.
...
Ticket #3626 . (CVS 6228)
FossilOrigin-Name: 779fce82b7a89b972da488ce8bd35e23ca120c04
2009-02-01 19:42:37 +00:00
drh
4e79c59454
Fix the SUBSTR() function so that when the 3rd argument is negative,
...
it counts backwards from the selected start point. Ticket #3625 . (CVS 6227)
FossilOrigin-Name: 2217339badf1e84edbed1309c39b9f8dfd7646ff
2009-02-01 19:23:32 +00:00
drh
a605fe8d8b
Change the replace() function to return a copy of its first argument when
...
the 2nd argument is an empty string. Ticket #3624 . (CVS 6226)
FossilOrigin-Name: ffebf10f6fb2c7f3083992e2c712682b4cdcc6f0
2009-02-01 18:08:40 +00:00
drh
9437bd2945
Adjust comments in vdbe.c to use OP_MakeRecord instead of the obsolete
...
OP_MakeIdxRec. Ticket #3619 . (CVS 6225)
FossilOrigin-Name: 0d2abbbff5d9e12e2382ed201bf1648c5918c1c0
2009-02-01 00:29:56 +00:00
drh
c5cad1e350
Add a new test command, sqlite3_mprintf_long, for testing the behavior
...
of "long integer" printf formatting. Ticket #3621 . (CVS 6224)
FossilOrigin-Name: 3ba1a17b1306bc61b9861ec8d3b239e16a3081ba
2009-02-01 00:21:09 +00:00
drh
565911e912
Make the TO keyword available even if SQLITE_OMIT_ALTERTABLE is defined.
...
Ticket #3622 . (CVS 6223)
FossilOrigin-Name: 3890985ca6750584876596fd0a124f47ee032075
2009-02-01 00:00:45 +00:00
drh
dfbc3a8a3b
Better error message when coalesce() has too few arguments. Ticket #3623 . (CVS 6222)
...
FossilOrigin-Name: 9cd43c82a3c123829806aa7bf14efdd29f4424d8
2009-01-31 22:28:48 +00:00
danielk1977
64beba4338
Avoid a segfault when running vacuum on an in-memory database. Ticket #3620 . (CVS 6221)
...
FossilOrigin-Name: 407830c6839a81fa0a1010940740df3011713a88
2009-01-31 14:54:06 +00:00
drh
c531a22377
Fix a round-off error when moving dates by negative modifier amounts.
...
Ticket #3618 . Enhance the "NNN years" modifier to accept fractional
years. (CVS 6220)
FossilOrigin-Name: 86be908c5e77ba2b9ac98e394fa987b443d790f8
2009-01-30 17:27:44 +00:00
shane
1a38964b50
Made code to remove unused parameter warning part of the conditional. Ticket #3610 . (CVS 6219)
...
FossilOrigin-Name: c5dca1146de72071ed2e5fdf6890f41682272587
2009-01-30 16:09:22 +00:00
shane
f71f89e842
Changes to setupLookaside() in main.c to better handle lookaside buffer configurations of zero-size. Ticket #3616 . (CVS 6218)
...
FossilOrigin-Name: 0a2c7f740397c5c6373434c75d73c2714f14dd32
2009-01-30 06:11:54 +00:00
shane
9db299fb8f
Implemented the SQLITE_LAST_ERRNO op in the xFileControl() method of os_win.c. Ticket #3615 . (CVS 6217)
...
FossilOrigin-Name: 9ea871f3e8ce1ec5cffb72f13704c3002d3f5383
2009-01-30 05:59:10 +00:00
shane
6a91ca06b8
In test case incrvacuum-15.1 close both db handles (db and db2) before attempting to delete test.db. Ticket #3614 . (CVS 6216)
...
FossilOrigin-Name: e764a7c5d369e2ff736d662b1209b3d54d778caf
2009-01-30 05:47:15 +00:00
shane
d87897dfa2
Minor changes to remove a few MSVC compiler warnings at /W3. Ticket #3610 . (CVS 6215)
...
FossilOrigin-Name: c74c78e4eb7f6d674b7564b33387db996fbe5725
2009-01-30 05:40:27 +00:00
drh
db15bcd550
Add test cases to make sure that keywords that we say can be used as
...
identifiers really can be used as identifiers. These tests were
inspired by ticket #3612 , but they do not directly address ticket #3612 . (CVS 6214)
FossilOrigin-Name: 6041ca87a16858f047727bc01f10b0bbc83609ed
2009-01-29 19:27:46 +00:00
vapier
832a36dbf5
add a cvsignore file (CVS 6213)
...
FossilOrigin-Name: 68c8cdd73b2b9f03264f9fdd27cddb65e1bdc7ae
2009-01-29 02:54:56 +00:00
drh
20abac2f87
Fix a segfault that can occur when attempting to insert into
...
a corrupt database file. Need a test case. (CVS 6212)
FossilOrigin-Name: 68957cf0c4bae0c6cf450b4de1d6bc1bc64b232c
2009-01-28 20:21:17 +00:00
vapier
6acb2cf665
regenerate autotools (CVS 6211)
...
FossilOrigin-Name: 813a3c96863acc9dd6ccd41e7ac9f57d635bcc0d
2009-01-28 04:46:28 +00:00
vapier
6d120f39aa
unify TCLLIBDIR handling with libtclsqlite3.so and use libtool to install it rather than custom tclinstaller.tcl ... this integrates better with autotools and avoids relinking issues (RPATH pointing to builddir) (CVS 6210)
...
FossilOrigin-Name: 3a049ca761f36d0fdb3b5b5f254c00210b373e9e
2009-01-28 04:46:14 +00:00
drh
6711002c7b
Add testcase() macros for coverage in date.c. (CVS 6209)
...
FossilOrigin-Name: 90b42eba8e02402c342e04236148bbd5e4d93eb8
2009-01-28 02:55:28 +00:00
vapier
695f097075
use AC_MSG_xxx funcs rather than echo
(CVS 6208)
...
FossilOrigin-Name: ed08025ad2c5c9e52732ad91192e1c6d58272c87
2009-01-26 21:43:16 +00:00
vapier
fe7e82e4be
( #3449 ) search for tclConfig.sh first by asking tclsh itself where it is (CVS 6207)
...
FossilOrigin-Name: ff2912dc1483bf934c94bd7866b4ec314a0d784f
2009-01-26 21:39:33 +00:00
vapier
8f50e7b865
( #1428 ) installed shared libs with exec perms (CVS 6206)
...
FossilOrigin-Name: 3f2a3414d008636e0d70f3ed8b728ffdd46ae9fc
2009-01-26 21:25:57 +00:00
vapier
2574da5fd5
( #3583 ) add a rule for sqlite3.pc in case the .in file is updated (CVS 6205)
...
FossilOrigin-Name: 4d03b69317acde5c29f38ae88276c15abf05266a
2009-01-26 20:59:02 +00:00
drh
bae6f21892
Remove obsolete files from the tools subfolder. (CVS 6204)
...
FossilOrigin-Name: d74560803e16eb2d28fc644b9aedb8c60eb224c6
2009-01-24 15:23:00 +00:00
drh
dc86e2b2cd
Fix some minor compiler warnings. Added sqlite3Isalpha() for use in
...
the soundex() function. (CVS 6203)
FossilOrigin-Name: bfc71edca471221add6b32b867d0b15171974eaf
2009-01-24 11:30:42 +00:00
danielk1977
25f42fe7a1
Remove incorrect ALWAYS macro associated with empty IN() sets. Ticket #3602 . (CVS 6202)
...
FossilOrigin-Name: f3c09a0cb8bfc1a112c31b556d8921d5c75c5eef
2009-01-24 09:56:15 +00:00
danielk1977
e1fd508a28
Optimization: When loading a new page into the cache, avoid redundant memset() calls to zero it. (CVS 6201)
...
FossilOrigin-Name: 9c0b9f881367871105965d4268e2f2cde7f4d884
2009-01-23 16:45:00 +00:00
drh
663d56d46f
Fix the VACUUM command so that it does not commit a transaction when it is
...
mistakenly run within a transaction - it should leave the transaction open. (CVS 6200)
FossilOrigin-Name: 75cc709be46ae2096d2ba3e7ac58de8140f8130c
2009-01-22 23:04:45 +00:00
danielk1977
859546cae6
Silence a C++ builder warning by writing "if( (rc = function())!=SQLITE_OK )" instead of "if( (rc = function()) )" in two places in pager.c. Ticket #3605 . (CVS 6199)
...
FossilOrigin-Name: 78ae96def54026461c0d03a90394480f724ea584
2009-01-22 17:12:39 +00:00
danielk1977
e1d3ac9cd0
Add a comment to fts3_tokenizer.h to make it clear how the xNext() method is supposed to set its output variables. Make sure the output variables of xNext() are only used if SQLITE_OK is returned. Ticket #3604 . (CVS 6198)
...
FossilOrigin-Name: 5b3c075f96be9671d0bcffe928589b211559e835
2009-01-21 17:45:33 +00:00
danielk1977
bea2a94850
Big change to make pager.c easier to follow. Unused variables removed, comments improved, etc. (CVS 6197)
...
FossilOrigin-Name: 12f7346c13c180ed73d7a2e3b590be457360254a
2009-01-20 17:06:27 +00:00
danielk1977
78ca0e7eb4
When not compiling for an EBCDIC system, use built-in alternatives to the tolowe
...
r(), toupper() and other ctype.h library functions. Ticket #3597 . (CVS 6196)
FossilOrigin-Name: 1041abd6784d283bebf646c54e93599522f7889d
2009-01-20 16:53:39 +00:00
drh
770b3cb763
Make sure the *pzErrMsg return from sqlite3_get_table() is aways zeroed.
...
Ticket #3598 . (CVS 6195)
FossilOrigin-Name: 7035c35dbef72b7b4d00201a65734a6d93dd0d3e
2009-01-19 20:49:09 +00:00
drh
8b72747db0
Fix the --enable-tempstore option on the configure script. Ticket #3599 (CVS 6194)
...
FossilOrigin-Name: c2eabb99fe852142e54f35f423f766411d7ba6c0
2009-01-19 18:18:40 +00:00
drh
b8613ab127
Make sure mutexes are fully enabled for thread001.test. Take steps to
...
ensure that the thread tests run during regression testing. (CVS 6193)
FossilOrigin-Name: 6242f113eb40d472b78685c296fecf9f749a11cd
2009-01-19 17:40:12 +00:00
danielk1977
3cfe07037f
Fix a bug that was preventing SQLite from releasing locks properly under obscure circumstances. (CVS 6192)
...
FossilOrigin-Name: 502c66df8b5fc5ec8e3d94202030571a4920fb9c
2009-01-17 16:59:40 +00:00
drh
07108f5626
Back out the Makefile.in changes from check-in (6181) because of reports
...
(ticket #3594 ) that they do not work on NetBSD. Separately, documentation
is updated to make clear that configure and Makefile.in are unsupported. (CVS 6191)
FossilOrigin-Name: 2d79aaab134c8a09722cb0466d45e04002bce54f
2009-01-17 15:53:31 +00:00
drh
a6d90f0ddd
Remove a harmless UMR that occurs inside some debugging code. (CVS 6190)
...
FossilOrigin-Name: 191c399fc6354b35477ec21f685377e2af26f49b
2009-01-16 23:47:42 +00:00
danielk1977
db3403973c
Fix a change-counter bug similar to #3584 . This one is much more obscure though, requiring a transient IO or malloc error to occur while running in exclusive mode. (CVS 6189)
...
FossilOrigin-Name: 9f07d2d9226b73c4dc311fd142e0aaba4ffcb078
2009-01-16 16:40:14 +00:00
danielk1977
45d6882fd9
Revert (6187). (CVS 6188)
...
FossilOrigin-Name: a353c1ab376b159c4d12532412365318cdbdcc60
2009-01-16 16:23:38 +00:00
danielk1977
443c0597fe
This commit is an error. Reverted by (6188). (CVS 6187)
...
FossilOrigin-Name: aa67fd0cdb4f53a0c6e15c001d37554d15006718
2009-01-16 15:21:05 +00:00
danielk1977
78c2e6d837
Allow recently added keywords 'savepoint' and 'release' to be used as database object names. Just as they could be prior to 3.6.8. Ticket #3590 . (CVS 6186)
...
FossilOrigin-Name: 54ab8326a1ea574b183f84c8465315e989a23ca4
2009-01-16 11:04:58 +00:00
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