drh
9e7ba7c69a
If the truncate operation fails in journalmode=TRUNCATE, do not fall back
...
to overwriting the journal header with zeros. Simply fail the operation. (CVS 6257)
FossilOrigin-Name: d4af60e52a12262ad0194908e68a386c719fe177
2009-02-04 19:16:23 +00:00
drh
b309becded
Simplify wording of backup API error message. Decapitalize some other
...
error messages. (CVS 6256)
FossilOrigin-Name: f92405afb649b698b735b423cd9195d4f8f137c9
2009-02-04 17:40:57 +00:00
drh
eef1eb0ff4
The sqlite3_backup_init() interface must lock the destination in case it
...
needs to change the error message. (CVS 6255)
FossilOrigin-Name: 572378d3a29c7d55fa4a15df14800c26d6c563a1
2009-02-04 16:56:19 +00:00
danielk1977
b48c1f192e
Fix a bug in test_malloc.c whereby running multi-threaded test cases could cause subsequent OOM tests to fail. (CVS 6254)
...
FossilOrigin-Name: 03ea9e591337a3c442080ee7cd01cc4ee85c1357
2009-02-04 15:27:40 +00:00
danielk1977
8a569e2936
Ensure that thread001.test and thread002.test reset the global shared-cache-enabled setting before they finish. (CVS 6253)
...
FossilOrigin-Name: 416288a9fa39c7c4d9d414de18edc0423ed83794
2009-02-04 11:57:46 +00:00
danielk1977
651a52fac2
Do not attempt to use the sub-journal file descriptor if it is not opened (as in journal_mode=off mode). Ticket #3636 . (CVS 6252)
...
FossilOrigin-Name: 20bd76055463c85f62a450e368f4bcf7d2215f94
2009-02-04 10:09:04 +00:00
danielk1977
de06e9f230
Fix a bug in malloc.test causing the exclusive permutation to fail. Changes to test code only. (CVS 6251)
...
FossilOrigin-Name: 72745bde90a9b4ffae1496f1668e4bb0678bd400
2009-02-04 08:17:57 +00:00
shane
fbd60f826d
Changes to completely remove all floating point ops if SQLITE_OMIT_FLOATING_POINT defined. Note that w/o fp, date/time, round, nan, etc. are all gone or limited in functionality. Updated some of the test scripts to support missing fp and 64-bit functionality. Ticket #3029 . (CVS 6250)
...
FossilOrigin-Name: 5cef400023205b55152b91441acc78f9cd8d58a9
2009-02-04 03:59:25 +00:00
shane
63207ab262
Remove compiler warnings under MSVC. (CVS 6249)
...
FossilOrigin-Name: 6301f08a2b32289a49c4af994f2770318c444b49
2009-02-04 01:49:30 +00:00
drh
d3a5c50ec7
Correction to check-ins (6246) and (6247): The backup object might not
...
hold a valid destination connection pointer. Also, do not reset the
page cache when establishing a read-lock while there is a persistent
or truncated journal, only if there is a journal that really needs to
rollback. Otherwise backups always reset whenever the source database
file is read. (CVS 6248)
FossilOrigin-Name: 7f827ba9d7af2dfe44aed386b4407716c85daf5e
2009-02-03 22:51:06 +00:00
drh
6231286dfe
A backup must clear the internal schema of the destination database so
...
that the schema will be reloaded for the next sqlite3_prepare() (CVS 6247)
FossilOrigin-Name: 76f23a4394574e31f237e55c641bc70534f44d97
2009-02-03 22:17:42 +00:00
drh
662c58c9ba
Must hold mutex on the destination during backups. Add documentation to
...
warn programmers that attempting to use the destination connection during
a backup can lead to deadlock. (CVS 6246)
FossilOrigin-Name: 5f6c06b974f26532264467ace603b6f1f830fba9
2009-02-03 21:13:07 +00:00
shane
39070edbab
Fixed postToParent() return type (Tcl_ThreadCreateType) in test_thread.c to compile with MSVC. Removed a few compiler warnings. Test harness change only. (CVS 6245)
...
FossilOrigin-Name: e9475abaf87c0ae2f2bbcbaf0f7ba704f9f50c5f
2009-02-03 19:55:20 +00:00
shane
0f911e2559
Fix buffer size in md5_cmd() in test_md5.c. Test harness change only. (CVS 6244)
...
FossilOrigin-Name: c1e15717ff1b8181ff5fdc800015dadb62135e8c
2009-02-03 19:52:59 +00:00
drh
62b5d2d8e6
More adjustments to the backup API documentation. No changes to code. (CVS 6243)
...
FossilOrigin-Name: ca650879d3168d4475a33430300a0e8ac806facf
2009-02-03 18:47:22 +00:00
drh
27b3b84796
Tweaks to the backup API documentation contained in comments. No changes
...
to code. (CVS 6242)
FossilOrigin-Name: 6298bcca14bc0dd447198430af4147a3673963fc
2009-02-03 18:25:13 +00:00
danielk1977
0410302e58
Commit first version of the 'backup' feature. (CVS 6241)
...
FossilOrigin-Name: 663479b417fc06ba1790a544f28694f8797cee57
2009-02-03 16:51:24 +00:00
drh
7ed0cae237
Fix the sqlite3_mprintf_long test command (added by check-in (6224) in order
...
to address ticket #3621 ) so that it works on systems with sizeof(int)==4 and
sizeof(long)==8. (CVS 6240)
FossilOrigin-Name: 2e45c2a85183f7430225aa8dd89ee05028afecf2
2009-02-03 16:25:47 +00:00
drh
1d34fdecb6
Remove several compiler warnings. (CVS 6239)
...
FossilOrigin-Name: 85e9196d79ef8500300abb215a31e0519b2e8d02
2009-02-03 15:50:33 +00:00
drh
4b9421af6f
Remove the text of the sqlite3VdbeMemSanity() routine, which was already
...
commented out. (CVS 6238)
FossilOrigin-Name: a3c260772bda68007b73feee6612495a704c84f5
2009-02-03 15:39:01 +00:00
drh
eb0d74ff39
Check at the write() call to work around the msdos bug in OSX actually
...
succeeds and throw an error if it does not. #ifdef out the work-around
for all platforms other than OSX. Ticket #3633 . (CVS 6237)
FossilOrigin-Name: b054b569172c53f4e185e4a64f41d08784aa0f8b
2009-02-03 15:27:02 +00:00
drh
f158162191
Add a special rule to the amalgamation generator to deal with
...
the sqlite3OsDlSym function. Ticket #3631 . (CVS 6236)
FossilOrigin-Name: 876f874c6e2e6e7763083e6761eedc10a4522ec9
2009-02-03 13:51:17 +00:00
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