]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
16 years agoUpdate thread tests to clear the sqlite_open_file_count counter at the
drh [Thu, 12 Feb 2009 17:06:41 +0000 (17:06 +0000)] 
Update thread tests to clear the sqlite_open_file_count counter at the
end.  This counter is not threadsafe and can end up with an invalid value
at the end of the thread tests. (CVS 6289)

FossilOrigin-Name: 8c4d71a169e529964d2d0cfba82bbad66a0bcd12

16 years agoFix some edge cases with backing up databases that are exactly PENDING_BYTE bytes...
danielk1977 [Thu, 12 Feb 2009 17:01:49 +0000 (17:01 +0000)] 
Fix some edge cases with backing up databases that are exactly PENDING_BYTE bytes in size, or just slightly larger. (CVS 6288)

FossilOrigin-Name: 2fc450e8e60248d6111d0b0d2b8f2344f5b89bca

16 years agoModify lock.test to account for "PRAGMA lock_status" returning "unknown" for in-memor...
danielk1977 [Thu, 12 Feb 2009 09:36:15 +0000 (09:36 +0000)] 
Modify lock.test to account for "PRAGMA lock_status" returning "unknown" for in-memory databases. (CVS 6287)

FossilOrigin-Name: 9a6e558ba6fe0b38376a85a6c1e2cea5570ea283

16 years agoFix a case where during a rollback triggered by an IO or malloc error an unjournalled...
danielk1977 [Thu, 12 Feb 2009 09:11:56 +0000 (09:11 +0000)] 
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

16 years agoUpdated for Windows compatibility. Test scripts only. (CVS 6285)
shane [Wed, 11 Feb 2009 16:06:18 +0000 (16:06 +0000)] 
Updated for Windows compatibility.  Test scripts only. (CVS 6285)

FossilOrigin-Name: 2522ad1df3599fa71cd1d929142adaefaf3a4d67

16 years agoContinuing documentation refinements. Comment changes only. (CVS 6284)
drh [Wed, 11 Feb 2009 15:23:35 +0000 (15:23 +0000)] 
Continuing documentation refinements.  Comment changes only. (CVS 6284)

FossilOrigin-Name: 83e8308435be8c954fe7a347a64f28abcb81437b

16 years agoFix the backup.test script so that it works regardless of the value of SQLITE_TEMP_ST...
danielk1977 [Wed, 11 Feb 2009 15:11:00 +0000 (15:11 +0000)] 
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

16 years agoAdd hyperlinks from sqlite3_limit() documention to the limits.html page.
drh [Wed, 11 Feb 2009 15:04:40 +0000 (15:04 +0000)] 
Add hyperlinks from sqlite3_limit() documention to the limits.html page.
Comment changes only - no changes to code. (CVS 6282)

FossilOrigin-Name: f0189ec8c9b5d1dfe1f5d93746cc7b5703a80de5

16 years agoFix the crashtest infrastructure so that it doesn't trigger the "don't write to the...
danielk1977 [Wed, 11 Feb 2009 14:27:04 +0000 (14:27 +0000)] 
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

16 years agoModify the test_journal.c code to (1) account for the backup code writing to parts...
danielk1977 [Wed, 11 Feb 2009 07:38:11 +0000 (07:38 +0000)] 
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

16 years agoIn test_mutex.c, zero the global structure staticly instead of in Sqlitetest_mutex_In...
danielk1977 [Wed, 11 Feb 2009 05:18:06 +0000 (05:18 +0000)] 
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

16 years agoFor the "onefile" demo, pass SQLITE_OPEN_TEMP_DB instead of MAIN_DB to the OS layer...
danielk1977 [Tue, 10 Feb 2009 18:54:02 +0000 (18:54 +0000)] 
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

16 years agoReduce the number of iterations in one of the savepoint4.test crash tests. (CVS 6277)
danielk1977 [Tue, 10 Feb 2009 14:45:12 +0000 (14:45 +0000)] 
Reduce the number of iterations in one of the savepoint4.test crash tests. (CVS 6277)

FossilOrigin-Name: fafb07b83721d67f6c6f3126c8de94b9b7efa519

16 years agoPrevent code in test6.c from reading the 512 byte locking region (the PENDING_BYTE...
danielk1977 [Tue, 10 Feb 2009 14:28:57 +0000 (14:28 +0000)] 
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

16 years agoCreate links from backup API documentation to the backup application note.
drh [Tue, 10 Feb 2009 13:41:42 +0000 (13:41 +0000)] 
Create links from backup API documentation to the backup application note.
Comment changes only - no changes to code. (CVS 6275)

FossilOrigin-Name: 85de23fb4e63e5c71480c4c34efec331e774d7fb

16 years agoReenable triggering vdbe tracing by creating file-system entries. Add a (redundant...
danielk1977 [Tue, 10 Feb 2009 11:17:43 +0000 (11:17 +0000)] 
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

16 years agoDo not always open a transaction on the temp database when writing to the main or...
danielk1977 [Tue, 10 Feb 2009 10:44:42 +0000 (10:44 +0000)] 
Do not always open a transaction on the temp database when writing to the main or another attached database. (CVS 6273)

FossilOrigin-Name: f76b0b8129657eace0a933ac1988b472d5e79c98

16 years agoFix a bug in test file misc7.test. No code changes. (CVS 6272)
danielk1977 [Tue, 10 Feb 2009 05:45:41 +0000 (05:45 +0000)] 
Fix a bug in test file misc7.test. No code changes. (CVS 6272)

FossilOrigin-Name: d919d2a14c8cbbda3fbd6fb2ddae174fa709177b

16 years agoFix a problem in backup.c causing OsTruncate() to be called with an argument larger...
danielk1977 [Mon, 9 Feb 2009 18:55:45 +0000 (18:55 +0000)] 
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

16 years agoAdd assert() statements to os_unix.c which fire if there is a read or
drh [Mon, 9 Feb 2009 17:34:07 +0000 (17:34 +0000)] 
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

16 years agoBetter error message when DISTINCT is used on an aggregate function that
drh [Mon, 9 Feb 2009 13:19:28 +0000 (13:19 +0000)] 
Better error message when DISTINCT is used on an aggregate function that
takes two or more arguments.  Ticket #3641. (CVS 6269)

FossilOrigin-Name: e20bf384668bcde7c2f2152ca88e28cf65a02679

16 years agoIgnore the return structure of and F_GETLK fcntl() call on djgpp. Fix for #3642....
danielk1977 [Mon, 9 Feb 2009 05:32:32 +0000 (05:32 +0000)] 
Ignore the return structure of and F_GETLK fcntl() call on djgpp. Fix for #3642. (CVS 6268)

FossilOrigin-Name: 8227af3463ded1c52d0a16c63b8dbc516eab57f0

16 years agoAttempt to reproduce ticket #3643. No luck yet. (CVS 6267)
danielk1977 [Mon, 9 Feb 2009 05:18:33 +0000 (05:18 +0000)] 
Attempt to reproduce ticket #3643. No luck yet. (CVS 6267)

FossilOrigin-Name: 8f2f98d247b04ae6bda34621e9ccdba904f34ad7

16 years agoChanges to the backup API: (1) if a negative number is passed as the second argument...
danielk1977 [Fri, 6 Feb 2009 05:59:44 +0000 (05:59 +0000)] 
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

16 years agoFix a test case that was still using the old pending_byte mechanism. (CVS 6265)
drh [Thu, 5 Feb 2009 17:00:54 +0000 (17:00 +0000)] 
Fix a test case that was still using the old pending_byte mechanism. (CVS 6265)

FossilOrigin-Name: 08ec4f2c394ec834c20bfce0d98bbe6b4ce2be65

16 years agoFix the declaration of sqlite3PendingByte so that it works with the
drh [Thu, 5 Feb 2009 16:53:43 +0000 (16:53 +0000)] 
Fix the declaration of sqlite3PendingByte so that it works with the
amalgamation. (CVS 6264)

FossilOrigin-Name: 193c871f3d16ce982040334c543610d330117bd5

16 years agoMake the pending byte adjustable via sqlite3_test_control() on all builds,
drh [Thu, 5 Feb 2009 16:31:45 +0000 (16:31 +0000)] 
Make the pending byte adjustable via sqlite3_test_control() on all builds,
not just on test builds. (CVS 6263)

FossilOrigin-Name: e8f192e2a93350a136d86bd9caceff65f52f3513

16 years agoFixed error detection in winTrucate() in os_win.c. Windows version only. Ticket...
shane [Thu, 5 Feb 2009 03:16:20 +0000 (03:16 +0000)] 
Fixed error detection in winTrucate() in os_win.c.  Windows version only.  Ticket #3640. (CVS 6262)

FossilOrigin-Name: 82e03f1b5481c6fe5e94976f086e8fe8c99881af

16 years agoImproved overrun detection in mem2.c (SQLITE_MEMDEBUG). Previously was only checking...
shane [Thu, 5 Feb 2009 03:00:06 +0000 (03:00 +0000)] 
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

16 years agoAdd "backup" and "restore" methods to the TCL interfaces and test cases
drh [Wed, 4 Feb 2009 22:46:47 +0000 (22:46 +0000)] 
Add "backup" and "restore" methods to the TCL interfaces and test cases
to exercise those methods. (CVS 6260)

FossilOrigin-Name: e420a3cedc7ee086a77cd719f6b9fb85415eb5f3

16 years agoAdd ".backup" and ".restore" commands to the CLI - implemented using the
drh [Wed, 4 Feb 2009 20:55:57 +0000 (20:55 +0000)] 
Add ".backup" and ".restore" commands to the CLI - implemented using the
new backup API. (CVS 6259)

FossilOrigin-Name: 003e1d62189e9e37f901d86a696cfccd22bd3b38

16 years agoIncrease the version number to 3.6.11. (CVS 6258)
drh [Wed, 4 Feb 2009 20:08:26 +0000 (20:08 +0000)] 
Increase the version number to 3.6.11. (CVS 6258)

FossilOrigin-Name: 0882a028c8cee868bb79728499fb1fa7c0630fa6

16 years agoIf the truncate operation fails in journalmode=TRUNCATE, do not fall back
drh [Wed, 4 Feb 2009 19:16:23 +0000 (19:16 +0000)] 
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

16 years agoSimplify wording of backup API error message. Decapitalize some other
drh [Wed, 4 Feb 2009 17:40:57 +0000 (17:40 +0000)] 
Simplify wording of backup API error message.  Decapitalize some other
error messages. (CVS 6256)

FossilOrigin-Name: f92405afb649b698b735b423cd9195d4f8f137c9

16 years agoThe sqlite3_backup_init() interface must lock the destination in case it
drh [Wed, 4 Feb 2009 16:56:19 +0000 (16:56 +0000)] 
The sqlite3_backup_init() interface must lock the destination in case it
needs to change the error message. (CVS 6255)

FossilOrigin-Name: 572378d3a29c7d55fa4a15df14800c26d6c563a1

16 years agoFix a bug in test_malloc.c whereby running multi-threaded test cases could cause...
danielk1977 [Wed, 4 Feb 2009 15:27:40 +0000 (15:27 +0000)] 
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

16 years agoEnsure that thread001.test and thread002.test reset the global shared-cache-enabled...
danielk1977 [Wed, 4 Feb 2009 11:57:46 +0000 (11:57 +0000)] 
Ensure that thread001.test and thread002.test reset the global shared-cache-enabled setting before they finish. (CVS 6253)

FossilOrigin-Name: 416288a9fa39c7c4d9d414de18edc0423ed83794

16 years agoDo not attempt to use the sub-journal file descriptor if it is not opened (as in...
danielk1977 [Wed, 4 Feb 2009 10:09:04 +0000 (10:09 +0000)] 
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

16 years agoFix a bug in malloc.test causing the exclusive permutation to fail. Changes to test...
danielk1977 [Wed, 4 Feb 2009 08:17:57 +0000 (08:17 +0000)] 
Fix a bug in malloc.test causing the exclusive permutation to fail. Changes to test code only. (CVS 6251)

FossilOrigin-Name: 72745bde90a9b4ffae1496f1668e4bb0678bd400

16 years agoChanges to completely remove all floating point ops if SQLITE_OMIT_FLOATING_POINT...
shane [Wed, 4 Feb 2009 03:59:25 +0000 (03:59 +0000)] 
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

16 years agoRemove compiler warnings under MSVC. (CVS 6249)
shane [Wed, 4 Feb 2009 01:49:30 +0000 (01:49 +0000)] 
Remove compiler warnings under MSVC. (CVS 6249)

FossilOrigin-Name: 6301f08a2b32289a49c4af994f2770318c444b49

16 years agoCorrection to check-ins (6246) and (6247): The backup object might not
drh [Tue, 3 Feb 2009 22:51:06 +0000 (22:51 +0000)] 
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

16 years agoA backup must clear the internal schema of the destination database so
drh [Tue, 3 Feb 2009 22:17:42 +0000 (22:17 +0000)] 
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

16 years agoMust hold mutex on the destination during backups. Add documentation to
drh [Tue, 3 Feb 2009 21:13:07 +0000 (21:13 +0000)] 
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

16 years agoFixed postToParent() return type (Tcl_ThreadCreateType) in test_thread.c to compile...
shane [Tue, 3 Feb 2009 19:55:20 +0000 (19:55 +0000)] 
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

16 years agoFix buffer size in md5_cmd() in test_md5.c. Test harness change only. (CVS 6244)
shane [Tue, 3 Feb 2009 19:52:59 +0000 (19:52 +0000)] 
Fix buffer size in md5_cmd() in test_md5.c.  Test harness change only. (CVS 6244)

FossilOrigin-Name: c1e15717ff1b8181ff5fdc800015dadb62135e8c

16 years agoMore adjustments to the backup API documentation. No changes to code. (CVS 6243)
drh [Tue, 3 Feb 2009 18:47:22 +0000 (18:47 +0000)] 
More adjustments to the backup API documentation.  No changes to code. (CVS 6243)

FossilOrigin-Name: ca650879d3168d4475a33430300a0e8ac806facf

16 years agoTweaks to the backup API documentation contained in comments. No changes
drh [Tue, 3 Feb 2009 18:25:13 +0000 (18:25 +0000)] 
Tweaks to the backup API documentation contained in comments. No changes
to code. (CVS 6242)

FossilOrigin-Name: 6298bcca14bc0dd447198430af4147a3673963fc

16 years agoCommit first version of the 'backup' feature. (CVS 6241)
danielk1977 [Tue, 3 Feb 2009 16:51:24 +0000 (16:51 +0000)] 
Commit first version of the 'backup' feature. (CVS 6241)

FossilOrigin-Name: 663479b417fc06ba1790a544f28694f8797cee57

16 years agoFix the sqlite3_mprintf_long test command (added by check-in (6224) in order
drh [Tue, 3 Feb 2009 16:25:47 +0000 (16:25 +0000)] 
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

16 years agoRemove several compiler warnings. (CVS 6239)
drh [Tue, 3 Feb 2009 15:50:33 +0000 (15:50 +0000)] 
Remove several compiler warnings. (CVS 6239)

FossilOrigin-Name: 85e9196d79ef8500300abb215a31e0519b2e8d02

16 years agoRemove the text of the sqlite3VdbeMemSanity() routine, which was already
drh [Tue, 3 Feb 2009 15:39:01 +0000 (15:39 +0000)] 
Remove the text of the sqlite3VdbeMemSanity() routine, which was already
commented out. (CVS 6238)

FossilOrigin-Name: a3c260772bda68007b73feee6612495a704c84f5

16 years agoCheck at the write() call to work around the msdos bug in OSX actually
drh [Tue, 3 Feb 2009 15:27:02 +0000 (15:27 +0000)] 
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

16 years agoAdd a special rule to the amalgamation generator to deal with
drh [Tue, 3 Feb 2009 13:51:17 +0000 (13:51 +0000)] 
Add a special rule to the amalgamation generator to deal with
the sqlite3OsDlSym function.  Ticket #3631. (CVS 6236)

FossilOrigin-Name: 876f874c6e2e6e7763083e6761eedc10a4522ec9

16 years agoFix a problem in check-in (6226) which could cause an assertion fault
drh [Tue, 3 Feb 2009 13:19:12 +0000 (13:19 +0000)] 
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

16 years agoCheck-in (6230) introduced a bugs in SUBSTR() which was caught by the fuzz
drh [Tue, 3 Feb 2009 13:10:54 +0000 (13:10 +0000)] 
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

16 years agoMake group_concat() a 1- or 2-value function, as the documentation says it
drh [Mon, 2 Feb 2009 21:57:05 +0000 (21:57 +0000)] 
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

16 years agoOmit the TEMP keyword from the schema of TEMP tables created using
drh [Mon, 2 Feb 2009 18:03:21 +0000 (18:03 +0000)] 
Omit the TEMP keyword from the schema of TEMP tables created using
CREATE TEMP TABLE AS SELECT .....  Ticket #3630. (CVS 6232)

FossilOrigin-Name: 3b0a25548c4c15c86aadcd9a6c3af0adafb85c17

16 years agoMinor simplifications to SQL function implementations. (CVS 6231)
drh [Mon, 2 Feb 2009 17:29:59 +0000 (17:29 +0000)] 
Minor simplifications to SQL function implementations. (CVS 6231)

FossilOrigin-Name: 92e5c27f20f150c1777c1b91d35207ade961319d

16 years agoUpdate the SUBSTR function so that works consistently when the
drh [Mon, 2 Feb 2009 16:32:55 +0000 (16:32 +0000)] 
Update the SUBSTR function so that works consistently when the
2nd parameter is 0.  Ticket #3628. (CVS 6230)

FossilOrigin-Name: 5fc125d362df4b8525c7e1ab34a14f505756af24

16 years agoRestrict the RANDOM() function to have zero arguments. Ticket #3627. (CVS 6229)
drh [Mon, 2 Feb 2009 01:50:39 +0000 (01:50 +0000)] 
Restrict the RANDOM() function to have zero arguments.  Ticket #3627. (CVS 6229)

FossilOrigin-Name: b8b546b6ed799dc1621ef7b06273249af1042fb2

16 years agoFix SUBSTR() so that it returns NULL if any argument is NULL.
drh [Sun, 1 Feb 2009 19:42:37 +0000 (19:42 +0000)] 
Fix SUBSTR() so that it returns NULL if any argument is NULL.
Ticket #3626. (CVS 6228)

FossilOrigin-Name: 779fce82b7a89b972da488ce8bd35e23ca120c04

16 years agoFix the SUBSTR() function so that when the 3rd argument is negative,
drh [Sun, 1 Feb 2009 19:23:32 +0000 (19:23 +0000)] 
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

16 years agoChange the replace() function to return a copy of its first argument when
drh [Sun, 1 Feb 2009 18:08:40 +0000 (18:08 +0000)] 
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

16 years agoAdjust comments in vdbe.c to use OP_MakeRecord instead of the obsolete
drh [Sun, 1 Feb 2009 00:29:56 +0000 (00:29 +0000)] 
Adjust comments in vdbe.c to use OP_MakeRecord instead of the obsolete
OP_MakeIdxRec.  Ticket #3619. (CVS 6225)

FossilOrigin-Name: 0d2abbbff5d9e12e2382ed201bf1648c5918c1c0

16 years agoAdd a new test command, sqlite3_mprintf_long, for testing the behavior
drh [Sun, 1 Feb 2009 00:21:09 +0000 (00:21 +0000)] 
Add a new test command, sqlite3_mprintf_long, for testing the behavior
of "long integer" printf formatting.  Ticket #3621. (CVS 6224)

FossilOrigin-Name: 3ba1a17b1306bc61b9861ec8d3b239e16a3081ba

16 years agoMake the TO keyword available even if SQLITE_OMIT_ALTERTABLE is defined.
drh [Sun, 1 Feb 2009 00:00:45 +0000 (00:00 +0000)] 
Make the TO keyword available even if SQLITE_OMIT_ALTERTABLE is defined.
Ticket #3622. (CVS 6223)

FossilOrigin-Name: 3890985ca6750584876596fd0a124f47ee032075

16 years agoBetter error message when coalesce() has too few arguments. Ticket #3623. (CVS 6222)
drh [Sat, 31 Jan 2009 22:28:48 +0000 (22:28 +0000)] 
Better error message when coalesce() has too few arguments.  Ticket #3623. (CVS 6222)

FossilOrigin-Name: 9cd43c82a3c123829806aa7bf14efdd29f4424d8

16 years agoAvoid a segfault when running vacuum on an in-memory database. Ticket #3620. (CVS...
danielk1977 [Sat, 31 Jan 2009 14:54:06 +0000 (14:54 +0000)] 
Avoid a segfault when running vacuum on an in-memory database. Ticket #3620. (CVS 6221)

FossilOrigin-Name: 407830c6839a81fa0a1010940740df3011713a88

16 years agoFix a round-off error when moving dates by negative modifier amounts.
drh [Fri, 30 Jan 2009 17:27:44 +0000 (17:27 +0000)] 
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

16 years agoMade code to remove unused parameter warning part of the conditional. Ticket #3610...
shane [Fri, 30 Jan 2009 16:09:22 +0000 (16:09 +0000)] 
Made code to remove unused parameter warning part of the conditional.  Ticket #3610. (CVS 6219)

FossilOrigin-Name: c5dca1146de72071ed2e5fdf6890f41682272587

16 years agoChanges to setupLookaside() in main.c to better handle lookaside buffer configuration...
shane [Fri, 30 Jan 2009 06:11:54 +0000 (06:11 +0000)] 
Changes to setupLookaside() in main.c to better handle lookaside buffer configurations of zero-size.  Ticket #3616. (CVS 6218)

FossilOrigin-Name: 0a2c7f740397c5c6373434c75d73c2714f14dd32

16 years agoImplemented the SQLITE_LAST_ERRNO op in the xFileControl() method of os_win.c. Ticke...
shane [Fri, 30 Jan 2009 05:59:10 +0000 (05:59 +0000)] 
Implemented the SQLITE_LAST_ERRNO op in the xFileControl() method of os_win.c.  Ticket #3615. (CVS 6217)

FossilOrigin-Name: 9ea871f3e8ce1ec5cffb72f13704c3002d3f5383

16 years agoIn test case incrvacuum-15.1 close both db handles (db and db2) before attempting...
shane [Fri, 30 Jan 2009 05:47:15 +0000 (05:47 +0000)] 
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

16 years agoMinor changes to remove a few MSVC compiler warnings at /W3. Ticket #3610. (CVS...
shane [Fri, 30 Jan 2009 05:40:27 +0000 (05:40 +0000)] 
Minor changes to remove a few MSVC compiler warnings at /W3.  Ticket #3610. (CVS 6215)

FossilOrigin-Name: c74c78e4eb7f6d674b7564b33387db996fbe5725

16 years agoAdd test cases to make sure that keywords that we say can be used as
drh [Thu, 29 Jan 2009 19:27:46 +0000 (19:27 +0000)] 
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

16 years agoadd a cvsignore file (CVS 6213)
vapier [Thu, 29 Jan 2009 02:54:56 +0000 (02:54 +0000)] 
add a cvsignore file (CVS 6213)

FossilOrigin-Name: 68c8cdd73b2b9f03264f9fdd27cddb65e1bdc7ae

16 years agoFix a segfault that can occur when attempting to insert into
drh [Wed, 28 Jan 2009 20:21:17 +0000 (20:21 +0000)] 
Fix a segfault that can occur when attempting to insert into
a corrupt database file.  Need a test case. (CVS 6212)

FossilOrigin-Name: 68957cf0c4bae0c6cf450b4de1d6bc1bc64b232c

16 years agoregenerate autotools (CVS 6211)
vapier [Wed, 28 Jan 2009 04:46:28 +0000 (04:46 +0000)] 
regenerate autotools (CVS 6211)

FossilOrigin-Name: 813a3c96863acc9dd6ccd41e7ac9f57d635bcc0d

16 years agounify TCLLIBDIR handling with libtclsqlite3.so and use libtool to install it rather...
vapier [Wed, 28 Jan 2009 04:46:14 +0000 (04:46 +0000)] 
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

16 years agoAdd testcase() macros for coverage in date.c. (CVS 6209)
drh [Wed, 28 Jan 2009 02:55:28 +0000 (02:55 +0000)] 
Add testcase() macros for coverage in date.c. (CVS 6209)

FossilOrigin-Name: 90b42eba8e02402c342e04236148bbd5e4d93eb8

16 years agouse AC_MSG_xxx funcs rather than `echo` (CVS 6208)
vapier [Mon, 26 Jan 2009 21:43:16 +0000 (21:43 +0000)] 
use AC_MSG_xxx funcs rather than `echo` (CVS 6208)

FossilOrigin-Name: ed08025ad2c5c9e52732ad91192e1c6d58272c87

16 years ago(#3449) search for tclConfig.sh first by asking tclsh itself where it is (CVS 6207)
vapier [Mon, 26 Jan 2009 21:39:33 +0000 (21:39 +0000)] 
(#3449) search for tclConfig.sh first by asking tclsh itself where it is (CVS 6207)

FossilOrigin-Name: ff2912dc1483bf934c94bd7866b4ec314a0d784f

16 years ago(#1428) installed shared libs with exec perms (CVS 6206)
vapier [Mon, 26 Jan 2009 21:25:57 +0000 (21:25 +0000)] 
(#1428) installed shared libs with exec perms (CVS 6206)

FossilOrigin-Name: 3f2a3414d008636e0d70f3ed8b728ffdd46ae9fc

16 years ago(#3583) add a rule for sqlite3.pc in case the .in file is updated (CVS 6205)
vapier [Mon, 26 Jan 2009 20:59:02 +0000 (20:59 +0000)] 
(#3583) add a rule for sqlite3.pc in case the .in file is updated (CVS 6205)

FossilOrigin-Name: 4d03b69317acde5c29f38ae88276c15abf05266a

16 years agoRemove obsolete files from the tools subfolder. (CVS 6204)
drh [Sat, 24 Jan 2009 15:23:00 +0000 (15:23 +0000)] 
Remove obsolete files from the tools subfolder. (CVS 6204)

FossilOrigin-Name: d74560803e16eb2d28fc644b9aedb8c60eb224c6

16 years agoFix some minor compiler warnings. Added sqlite3Isalpha() for use in
drh [Sat, 24 Jan 2009 11:30:42 +0000 (11:30 +0000)] 
Fix some minor compiler warnings.  Added sqlite3Isalpha() for use in
the soundex() function. (CVS 6203)

FossilOrigin-Name: bfc71edca471221add6b32b867d0b15171974eaf

16 years agoRemove incorrect ALWAYS macro associated with empty IN() sets. Ticket #3602. (CVS...
danielk1977 [Sat, 24 Jan 2009 09:56:15 +0000 (09:56 +0000)] 
Remove incorrect ALWAYS macro associated with empty IN() sets. Ticket #3602. (CVS 6202)

FossilOrigin-Name: f3c09a0cb8bfc1a112c31b556d8921d5c75c5eef

16 years agoOptimization: When loading a new page into the cache, avoid redundant memset() calls...
danielk1977 [Fri, 23 Jan 2009 16:45:00 +0000 (16:45 +0000)] 
Optimization: When loading a new page into the cache, avoid redundant memset() calls to zero it. (CVS 6201)

FossilOrigin-Name: 9c0b9f881367871105965d4268e2f2cde7f4d884

16 years agoFix the VACUUM command so that it does not commit a transaction when it is
drh [Thu, 22 Jan 2009 23:04:45 +0000 (23:04 +0000)] 
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

16 years agoSilence a C++ builder warning by writing "if( (rc = function())!=SQLITE_OK )" instead...
danielk1977 [Thu, 22 Jan 2009 17:12:39 +0000 (17:12 +0000)] 
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

16 years agoAdd a comment to fts3_tokenizer.h to make it clear how the xNext() method is supposed...
danielk1977 [Wed, 21 Jan 2009 17:45:33 +0000 (17:45 +0000)] 
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

16 years agoBig change to make pager.c easier to follow. Unused variables removed, comments impro...
danielk1977 [Tue, 20 Jan 2009 17:06:27 +0000 (17:06 +0000)] 
Big change to make pager.c easier to follow. Unused variables removed, comments improved, etc. (CVS 6197)

FossilOrigin-Name: 12f7346c13c180ed73d7a2e3b590be457360254a

16 years agoWhen not compiling for an EBCDIC system, use built-in alternatives to the tolowe
danielk1977 [Tue, 20 Jan 2009 16:53:39 +0000 (16:53 +0000)] 
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

16 years agoMake sure the *pzErrMsg return from sqlite3_get_table() is aways zeroed.
drh [Mon, 19 Jan 2009 20:49:09 +0000 (20:49 +0000)] 
Make sure the *pzErrMsg return from sqlite3_get_table() is aways zeroed.
Ticket #3598. (CVS 6195)

FossilOrigin-Name: 7035c35dbef72b7b4d00201a65734a6d93dd0d3e

16 years agoFix the --enable-tempstore option on the configure script. Ticket #3599 (CVS 6194)
drh [Mon, 19 Jan 2009 18:18:40 +0000 (18:18 +0000)] 
Fix the --enable-tempstore option on the configure script.  Ticket #3599 (CVS 6194)

FossilOrigin-Name: c2eabb99fe852142e54f35f423f766411d7ba6c0

16 years agoMake sure mutexes are fully enabled for thread001.test. Take steps to
drh [Mon, 19 Jan 2009 17:40:12 +0000 (17:40 +0000)] 
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

16 years agoFix a bug that was preventing SQLite from releasing locks properly under obscure...
danielk1977 [Sat, 17 Jan 2009 16:59:40 +0000 (16:59 +0000)] 
Fix a bug that was preventing SQLite from releasing locks properly under obscure circumstances. (CVS 6192)

FossilOrigin-Name: 502c66df8b5fc5ec8e3d94202030571a4920fb9c

16 years agoBack out the Makefile.in changes from check-in (6181) because of reports
drh [Sat, 17 Jan 2009 15:53:31 +0000 (15:53 +0000)] 
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

16 years agoRemove a harmless UMR that occurs inside some debugging code. (CVS 6190)
drh [Fri, 16 Jan 2009 23:47:42 +0000 (23:47 +0000)] 
Remove a harmless UMR that occurs inside some debugging code. (CVS 6190)

FossilOrigin-Name: 191c399fc6354b35477ec21f685377e2af26f49b