danielk1977
f7f33fb08a
Fix a case where during a rollback triggered by an IO or malloc error an unjournalled region of the database could be written to (with it's original data). This was causing an assert in test_journal.c to fail. Add a test case in ioerr2.test to trigger this case. (CVS 6286)
...
FossilOrigin-Name: 315a6692f9a03a470871cce4f74567683546f343
2009-02-12 09:11:56 +00:00
shane
ce14f6245e
Updated for Windows compatibility. Test scripts only. (CVS 6285)
...
FossilOrigin-Name: 2522ad1df3599fa71cd1d929142adaefaf3a4d67
2009-02-11 16:06:18 +00:00
drh
46f33ef93c
Continuing documentation refinements. Comment changes only. (CVS 6284)
...
FossilOrigin-Name: 83e8308435be8c954fe7a347a64f28abcb81437b
2009-02-11 15:23:35 +00:00
danielk1977
3d781c2176
Fix the backup.test script so that it works regardless of the value of SQLITE_TEMP_STORE and the initial contents of the file-system. (CVS 6283)
...
FossilOrigin-Name: da660ea73ac6627b4e71706b8cd464646ea66550
2009-02-11 15:11:00 +00:00
drh
ae1a880719
Add hyperlinks from sqlite3_limit() documention to the limits.html page.
...
Comment changes only - no changes to code. (CVS 6282)
FossilOrigin-Name: f0189ec8c9b5d1dfe1f5d93746cc7b5703a80de5
2009-02-11 15:04:40 +00:00
danielk1977
d6846d75ca
Fix the crashtest infrastructure so that it doesn't trigger the "don't write to the locking region" assert in os_unix.c. (CVS 6281)
...
FossilOrigin-Name: b7fd4615cd41179484bd44d2f4bd7aef04977911
2009-02-11 14:27:04 +00:00
danielk1977
4faa5f41b8
Modify the test_journal.c code to (1) account for the backup code writing to parts of the pending-byte page when changing a databases page-size, and (2) to avoid reading from the pending-byte page and triggering the assert in os_unix.c. Changes to test code only. (CVS 6280)
...
FossilOrigin-Name: 4879621658c2c785ab7b12dbae780901496d3a78
2009-02-11 07:38:11 +00:00
danielk1977
9ec30744bf
In test_mutex.c, zero the global structure staticly instead of in Sqlitetest_mutex_Init(). This is because Sqlitetest_mutex_Init() is now called by each thread during thread tests ((6193)). Test code changes only. (CVS 6279)
...
FossilOrigin-Name: 8b318b9385d0542ca56750b901c0c6b7d05ca634
2009-02-11 05:18:06 +00:00
danielk1977
2b754b4820
For the "onefile" demo, pass SQLITE_OPEN_TEMP_DB instead of MAIN_DB to the OS layer when opening the single file. This is to work around the assert() in os_unix.c that tests that the locking region is not written to. (CVS 6278)
...
FossilOrigin-Name: 2da076a2c1663e916dc50e5e1679be216922dfc5
2009-02-10 18:54:02 +00:00
danielk1977
b8f12c1201
Reduce the number of iterations in one of the savepoint4.test crash tests. (CVS 6277)
...
FossilOrigin-Name: fafb07b83721d67f6c6f3126c8de94b9b7efa519
2009-02-10 14:45:12 +00:00
danielk1977
2d42c2b247
Prevent code in test6.c from reading the 512 byte locking region (the PENDING_BYTE page) of a database file. Doing so triggers an assert failure in os_unix.c. (CVS 6276)
...
FossilOrigin-Name: 2a6a43169220fab5a15a786e2a464b90cb893179
2009-02-10 14:28:57 +00:00
drh
52224a73f1
Create links from backup API documentation to the backup application note.
...
Comment changes only - no changes to code. (CVS 6275)
FossilOrigin-Name: 85de23fb4e63e5c71480c4c34efec331e774d7fb
2009-02-10 13:41:42 +00:00
danielk1977
cd503d6a3b
Reenable triggering vdbe tracing by creating file-system entries. Add a (redundant) test that modifying the temp schema expires all prepared statements. (CVS 6274)
...
FossilOrigin-Name: f6590dac4612d0d05105fa820e8fcb80b5907a40
2009-02-10 11:17:43 +00:00
danielk1977
b632201d81
Do not always open a transaction on the temp database when writing to the main or another attached database. (CVS 6273)
...
FossilOrigin-Name: f76b0b8129657eace0a933ac1988b472d5e79c98
2009-02-10 10:44:42 +00:00
danielk1977
8e3e881a24
Fix a bug in test file misc7.test. No code changes. (CVS 6272)
...
FossilOrigin-Name: d919d2a14c8cbbda3fbd6fb2ddae174fa709177b
2009-02-10 05:45:41 +00:00
danielk1977
3d0cbc3362
Fix a problem in backup.c causing OsTruncate() to be called with an argument larger than the current file-size. (CVS 6271)
...
FossilOrigin-Name: b34bde80c7e2028baf7ba2ff26e587a63a170f3d
2009-02-09 18:55:45 +00:00
drh
08c6d4468c
Add assert() statements to os_unix.c which fire if there is a read or
...
write for the locking region of a database file. (CVS 6270)
FossilOrigin-Name: 93e792ffa88ba2e8422d041f36b70d9b2e220da2
2009-02-09 17:34:07 +00:00
drh
0daa002c7c
Better error message when DISTINCT is used on an aggregate function that
...
takes two or more arguments. Ticket #3641 . (CVS 6269)
FossilOrigin-Name: e20bf384668bcde7c2f2152ca88e28cf65a02679
2009-02-09 13:19:28 +00:00
danielk1977
09480a9dc2
Ignore the return structure of and F_GETLK fcntl() call on djgpp. Fix for #3642 . (CVS 6268)
...
FossilOrigin-Name: 8227af3463ded1c52d0a16c63b8dbc516eab57f0
2009-02-09 05:32:32 +00:00
danielk1977
53b6028b9c
Attempt to reproduce ticket #3643 . No luck yet. (CVS 6267)
...
FossilOrigin-Name: 8f2f98d247b04ae6bda34621e9ccdba904f34ad7
2009-02-09 05:18:33 +00:00
danielk1977
03ab035796
Changes to the backup API: (1) if a negative number is passed as the second argument to backup_step(), this is interpreted as "copy all remaining pages" and (2) if backup_finish() is called after backup_step() fails with a BUSY or LOCKED error, then this error is also returned by backup_finish() (same handling as for other errors encountered by backup_step()). (CVS 6266)
...
FossilOrigin-Name: 9b8c8b18cf6b7d44d5fd64760537bc030097756b
2009-02-06 05:59:44 +00:00
drh
f4883888ca
Fix a test case that was still using the old pending_byte mechanism. (CVS 6265)
...
FossilOrigin-Name: 08ec4f2c394ec834c20bfce0d98bbe6b4ce2be65
2009-02-05 17:00:54 +00:00
drh
ddb68e17fa
Fix the declaration of sqlite3PendingByte so that it works with the
...
amalgamation. (CVS 6264)
FossilOrigin-Name: 193c871f3d16ce982040334c543610d330117bd5
2009-02-05 16:53:43 +00:00
drh
c7a3bb94c2
Make the pending byte adjustable via sqlite3_test_control() on all builds,
...
not just on test builds. (CVS 6263)
FossilOrigin-Name: e8f192e2a93350a136d86bd9caceff65f52f3513
2009-02-05 16:31:45 +00:00
shane
f5d335f851
Fixed error detection in winTrucate() in os_win.c. Windows version only. Ticket #3640 . (CVS 6262)
...
FossilOrigin-Name: 82e03f1b5481c6fe5e94976f086e8fe8c99881af
2009-02-05 03:16:20 +00:00
shane
d20010c70e
Improved overrun detection in mem2.c (SQLITE_MEMDEBUG). Previously was only checking up to 3 extra bytes allocated due to rounding. (CVS 6261)
...
FossilOrigin-Name: a6fe3d6b02734b23fe067a373c0232024a782a6c
2009-02-05 03:00:06 +00:00
drh
dc2c491525
Add "backup" and "restore" methods to the TCL interfaces and test cases
...
to exercise those methods. (CVS 6260)
FossilOrigin-Name: e420a3cedc7ee086a77cd719f6b9fb85415eb5f3
2009-02-04 22:46:47 +00:00
drh
9ff849fc87
Add ".backup" and ".restore" commands to the CLI - implemented using the
...
new backup API. (CVS 6259)
FossilOrigin-Name: 003e1d62189e9e37f901d86a696cfccd22bd3b38
2009-02-04 20:55:57 +00:00
drh
bd4c35b999
Increase the version number to 3.6.11. (CVS 6258)
...
FossilOrigin-Name: 0882a028c8cee868bb79728499fb1fa7c0630fa6
2009-02-04 20:08:26 +00:00
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