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
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