]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoThe iInUseDB and iInUseMM variables do not need to be volatile. branch-3.5.9
drh [Sat, 30 Jan 2010 23:08:24 +0000 (23:08 +0000)] 
The iInUseDB and iInUseMM variables do not need to be volatile.

FossilOrigin-Name: bb18f5785283e1067338b6b85098e8f2ff3b093a

15 years agoAlways hold the MEM2 mutex when initially marking a pager as in use by its
drh [Sat, 30 Jan 2010 22:28:46 +0000 (22:28 +0000)] 
Always hold the MEM2 mutex when initially marking a pager as in use by its
database connection.

FossilOrigin-Name: 622c17177af6851fec11bdec8fb6246c13135b2f

15 years agoAvoid a race condition in the sqlite3_release_memory() logic within pager.c.
drh [Sat, 30 Jan 2010 19:17:07 +0000 (19:17 +0000)] 
Avoid a race condition in the sqlite3_release_memory() logic within pager.c.

FossilOrigin-Name: a718e6634795a48b5dd5c08833ab561e6381a62d

15 years agoRemove all cache pages from the LRU list prior to removing the pager from the
drh [Sat, 30 Jan 2010 19:00:55 +0000 (19:00 +0000)] 
Remove all cache pages from the LRU list prior to removing the pager from the
pager list when closing a pager.

FossilOrigin-Name: 9d13acc4493ee8be9e6cbf887cd7876d6239b952

15 years agoAdd additional pagerMutexHeld() macros to better verify the correct operation
drh [Sat, 30 Jan 2010 18:22:56 +0000 (18:22 +0000)] 
Add additional pagerMutexHeld() macros to better verify the correct operation
of pager.c.

FossilOrigin-Name: c50e972f1bea2e357f64ffd5df868bf51d942e2d

15 years agoFix a missing mutex on page cache truncation during vacuum and auto-vacuum
drh [Fri, 29 Jan 2010 21:23:35 +0000 (21:23 +0000)] 
Fix a missing mutex on page cache truncation during vacuum and auto-vacuum
when SQLITE_ENABLE_MEMORY_MANAGEMENT is engaged.

FossilOrigin-Name: ea3b941a7182851117fab9851e98e175ebb356e2

17 years agoVersion 3.5.9 (CVS 5131)
drh [Wed, 14 May 2008 16:18:10 +0000 (16:18 +0000)] 
Version 3.5.9 (CVS 5131)

FossilOrigin-Name: b6129f4cc28f6ba55d19039545555b33857ffd72

17 years agoOn instruction from DRH, only do malloc failure tests for O/S ops on non-Windows...
shane [Tue, 13 May 2008 19:41:53 +0000 (19:41 +0000)] 
On instruction from DRH, only do malloc failure tests for O/S ops on non-Windows systems.  Better test fixture code will be introduced in 3.6.0 to add this coverage back in for Windows. (CVS 5130)

FossilOrigin-Name: e4aab150042bd22868ab02645151cb69a1c02ba0

17 years agoDo a slow-path in GetVarint32() for varints that do not fit in 32 bits.
drh [Tue, 13 May 2008 16:41:50 +0000 (16:41 +0000)] 
Do a slow-path in GetVarint32() for varints that do not fit in 32 bits.
This will only happen when trying to interpret a corrupt database file
so speed is not critical. (CVS 5129)

FossilOrigin-Name: 6a6b9437367b66c3b6f710cf3abbdb9841765b21

17 years agoMake the benign-fault setting recursive. Make all malloc failures
drh [Tue, 13 May 2008 13:27:33 +0000 (13:27 +0000)] 
Make the benign-fault setting recursive.  Make all malloc failures
during a rollback benign since there is nothing we can do about them. (CVS 5128)

FossilOrigin-Name: a9d1d931358637a6f039723a053098f65530de4b

17 years agoUpdate the pager so that it does not try to commit a transaction if there
drh [Tue, 13 May 2008 00:58:18 +0000 (00:58 +0000)] 
Update the pager so that it does not try to commit a transaction if there
have been no changes to the database. (CVS 5127)

FossilOrigin-Name: f1ed3689239098e0630e8d61f52971bcdf2801b6

17 years agoUpdate the autoconf makefile so that it includes -lpthread. (CVS 5126)
drh [Tue, 13 May 2008 00:57:21 +0000 (00:57 +0000)] 
Update the autoconf makefile so that it includes -lpthread. (CVS 5126)

FossilOrigin-Name: bd654ebdbe752b44f801726eea16f40aa27df920

17 years agocheck that DosWrite() was successful before trying again (CVS 5125)
pweilbacher [Mon, 12 May 2008 16:56:13 +0000 (16:56 +0000)] 
check that DosWrite() was successful before trying again (CVS 5125)

FossilOrigin-Name: 1ef6458bee4f0f77ded7c532f196d4c876ec9649

17 years agoAdd "b" to fopen() in the hexio tests so that extra carriage returns are
drh [Mon, 12 May 2008 16:17:42 +0000 (16:17 +0000)] 
Add "b" to fopen() in the hexio tests so that extra carriage returns are
not inserted on win32 and OS/2.  Test harness change only - no changes
to the core SQLite code. (CVS 5124)

FossilOrigin-Name: 68cbc6b45c98ebaeca74e1ff5acc3ff7e34f45e9

17 years agoTemporarily disable extended IO error code tests. (CVS 5123)
danielk1977 [Mon, 12 May 2008 12:41:15 +0000 (12:41 +0000)] 
Temporarily disable extended IO error code tests. (CVS 5123)

FossilOrigin-Name: f204df3c3161ebe4f2c581715d708d0f35635c08

17 years agoFix typo in documentation of sqlite3_step(). Ticket #3110. (CVS 5122)
drh [Mon, 12 May 2008 12:39:55 +0000 (12:39 +0000)] 
Fix typo in documentation of sqlite3_step().  Ticket #3110. (CVS 5122)

FossilOrigin-Name: 4d397f57c4446b18c5c6faf728d315495e4abf6e

17 years agoMake test function do_ioerr_test more robust. No code changes. (CVS 5121)
danielk1977 [Mon, 12 May 2008 10:57:02 +0000 (10:57 +0000)] 
Make test function do_ioerr_test more robust. No code changes. (CVS 5121)

FossilOrigin-Name: f532692ec91b40fc002af925d2ab8382e3c3b2ca

17 years agoModify logging code in test_osinst.c. No changes to production code. (CVS 5120)
danielk1977 [Mon, 12 May 2008 07:42:20 +0000 (07:42 +0000)] 
Modify logging code in test_osinst.c. No changes to production code. (CVS 5120)

FossilOrigin-Name: 85c54a16c7aecea3e0e5040ee8aca06d8b6a2b2b

17 years agoUse short timeout for locking operations by default to be more in sync with the other...
pweilbacher [Mon, 12 May 2008 00:32:08 +0000 (00:32 +0000)] 
Use short timeout for locking operations by default to be more in sync with the other platforms. (CVS 5119)

FossilOrigin-Name: d00a015dbcc5a7fc4aa7cb41f9740a712af510ae

17 years agoCorrectly test DosWrite() for failure return code (CVS 5118)
pweilbacher [Mon, 12 May 2008 00:29:41 +0000 (00:29 +0000)] 
Correctly test DosWrite() for failure return code (CVS 5118)

FossilOrigin-Name: 3eff0ef2cfe70389bc80a270902702206be178f3

17 years agoUse memcpy() instead of casting to copy the content of a long long int
drh [Sun, 11 May 2008 17:22:01 +0000 (17:22 +0000)] 
Use memcpy() instead of casting to copy the content of a long long int
into a double.  Ticket #3101. (CVS 5117)

FossilOrigin-Name: 88e12caca99d1d54cfe6228cb0de1eccc93fcc74

17 years agoNew test cases to verify that SQLite handles bound NaN, +Inf, and -Inf
drh [Sun, 11 May 2008 11:07:06 +0000 (11:07 +0000)] 
New test cases to verify that SQLite handles bound NaN, +Inf, and -Inf
floating point values correctly.  Improvements to the text->real conversion
routine so that it generates +Inf and -Inf at appropriate times.
Tickets #3101 and #3060. (CVS 5116)

FossilOrigin-Name: 3ff2f1cdc9c57bca56de6cdc0ad5edc95b0606a0

17 years agoFix leaked filename in case DosOpen() fails. (CVS 5115)
pweilbacher [Fri, 9 May 2008 19:38:24 +0000 (19:38 +0000)] 
Fix leaked filename in case DosOpen() fails. (CVS 5115)

FossilOrigin-Name: ecc6c739064922937ce66339f74403a0346aeedd

17 years agoRe-enable tests that were accidentally disabled by (5112). (CVS 5114)
danielk1977 [Fri, 9 May 2008 18:03:27 +0000 (18:03 +0000)] 
Re-enable tests that were accidentally disabled by (5112). (CVS 5114)

FossilOrigin-Name: bf45a3ab7a295dcc399bdcf27965f1684b0a33b8

17 years agoReformulate the constants for the minimum and maximum 64-bit signed
drh [Fri, 9 May 2008 18:03:13 +0000 (18:03 +0000)] 
Reformulate the constants for the minimum and maximum 64-bit signed
integer to work better with some compilers.  Ticket #3105. (CVS 5113)

FossilOrigin-Name: 18b1ee10b89bd0a98d1986dbb04b9d6cfc3dad39

17 years agoFix a problem with recovering from an IO error in exclusive-locking mode. (CVS 5112)
danielk1977 [Fri, 9 May 2008 16:57:50 +0000 (16:57 +0000)] 
Fix a problem with recovering from an IO error in exclusive-locking mode. (CVS 5112)

FossilOrigin-Name: 7a44fb965b3477fb78901939ba35d569e5638c19

17 years agoDo not clear the error code or error message in sqlite3_clear_bindings().
drh [Fri, 9 May 2008 14:39:44 +0000 (14:39 +0000)] 
Do not clear the error code or error message in sqlite3_clear_bindings().
Ticket #3063. (CVS 5111)

FossilOrigin-Name: 069f4560107246fdc31e1f15c3ad7d3dae2b9ad8

17 years agoFix the ALTER TABLE RENAME algorithm so that it is not confused
drh [Fri, 9 May 2008 14:17:51 +0000 (14:17 +0000)] 
Fix the ALTER TABLE RENAME algorithm so that it is not confused
by comments in the CREATE TABLE statement.  Ticket #3102. (CVS 5110)

FossilOrigin-Name: ab18b4e75916b05863b31bc63625aa64a104a42c

17 years agoBack out check-in (5108). The original isnan() implementation is preferred. Ticket...
drh [Fri, 9 May 2008 13:47:58 +0000 (13:47 +0000)] 
Back out check-in (5108).  The original isnan() implementation is preferred.  Ticket #3101 and #3060. (CVS 5109)

FossilOrigin-Name: 2349ae75dfdd626ed97db99ac6de4bdc5a395008

17 years agoChange the implementation of sqlite3IsNaN() so that it works even if
drh [Fri, 9 May 2008 03:07:33 +0000 (03:07 +0000)] 
Change the implementation of sqlite3IsNaN() so that it works even if
compiled using -ffinite-math-only.  Tickets #3101 and #3060. (CVS 5108)

FossilOrigin-Name: 19ee2b3324461150d2c1600c67fe604114a1b69f

17 years agoFix recently introduced bug in tester.tcl. (CVS 5107)
danielk1977 [Thu, 8 May 2008 16:51:11 +0000 (16:51 +0000)] 
Fix recently introduced bug in tester.tcl. (CVS 5107)

FossilOrigin-Name: 4b573d4e7dd8c3417cfdebe7d2885de7bdc522db

17 years agoAdd extra instrumentation to test_osinst.c. Also the --binarylog option to the test...
danielk1977 [Thu, 8 May 2008 15:58:06 +0000 (15:58 +0000)] 
Add extra instrumentation to test_osinst.c. Also the --binarylog option to the test scripts. (CVS 5106)

FossilOrigin-Name: 8a99efc07f93bc11d21aa501349c81f0fd8abf7b

17 years agoUse a 6-byte rather than an 8-byte encoding for integers between
drh [Thu, 8 May 2008 15:18:10 +0000 (15:18 +0000)] 
Use a 6-byte rather than an 8-byte encoding for integers between
17592186044416 and 140737488355327.  Ticket #3100. (CVS 5105)

FossilOrigin-Name: 0a4d26dede320d90a39133dce3d76ca3ee1a4ee6

17 years agoIncrement the version number. (CVS 5104)
drh [Thu, 8 May 2008 13:54:05 +0000 (13:54 +0000)] 
Increment the version number. (CVS 5104)

FossilOrigin-Name: ed06d90d8c4ee70ea6e99359317ac7bc1dcc4828

17 years agoFix the new ioerr4.test so that it plays well with others. (CVS 5103)
drh [Thu, 8 May 2008 01:11:42 +0000 (01:11 +0000)] 
Fix the new ioerr4.test so that it plays well with others. (CVS 5103)

FossilOrigin-Name: 75df2d3d506abfa4aa4875fb533a5cd160b3f521

17 years agoFix some problems with multi-file transactions in persistent journal mode. (CVS 5102)
danielk1977 [Wed, 7 May 2008 19:11:03 +0000 (19:11 +0000)] 
Fix some problems with multi-file transactions in persistent journal mode. (CVS 5102)

FossilOrigin-Name: e98a7f87f91c62676f94ad5a0c4980ab929ca79d

17 years agoAdded test cases for corrupt SerialTypeLen header values, and additional check to...
shane [Wed, 7 May 2008 18:59:28 +0000 (18:59 +0000)] 
Added test cases for corrupt SerialTypeLen header values, and additional check to improve detection of corrupt values. (CVS 5101)

FossilOrigin-Name: 530c6360610f737e85608b23ede2646d69d1bc9a

17 years agoModify the header comment in jrnlmode2.test. No code or test changes. (CVS 5100)
danielk1977 [Wed, 7 May 2008 15:44:25 +0000 (15:44 +0000)] 
Modify the header comment in jrnlmode2.test. No code or test changes. (CVS 5100)

FossilOrigin-Name: ed728104c8e77a5526a2fcb62fea577940731d90

17 years agoChange the header comment in jrnlmode4.test. No changes to any code or tests. (CVS...
danielk1977 [Wed, 7 May 2008 15:42:24 +0000 (15:42 +0000)] 
Change the header comment in jrnlmode4.test. No changes to any code or tests. (CVS 5099)

FossilOrigin-Name: 0bf656a401b9fc16b33ecd49a6db9b769156494d

17 years agoIf an error occurs within xAccess(), it should return -1. Remove an assert()
danielk1977 [Wed, 7 May 2008 14:49:21 +0000 (14:49 +0000)] 
If an error occurs within xAccess(), it should return -1. Remove an assert()
that was preventing it from doing so. (CVS 5098)

FossilOrigin-Name: 3fbcef46f7b6dcd20c1137692aa5bc0f64eaa3dd

17 years agoAdd a new I/O error test: ioerr4. (CVS 5097)
drh [Wed, 7 May 2008 13:28:38 +0000 (13:28 +0000)] 
Add a new I/O error test: ioerr4. (CVS 5097)

FossilOrigin-Name: c3ab1a7e2e40eb8f51f1b11bf0591e251d69882b

17 years agoFix a null-pointer dereference that can occur following a DISKFULL error
drh [Wed, 7 May 2008 12:45:41 +0000 (12:45 +0000)] 
Fix a null-pointer dereference that can occur following a DISKFULL error
while running VACUUM. (CVS 5096)

FossilOrigin-Name: 438d77a762a6f3cc7438e4d688013cc26e3e9486

17 years agoOmit mutex variables in the pager when threadsafe is disabled. (CVS 5095)
drh [Wed, 7 May 2008 12:29:55 +0000 (12:29 +0000)] 
Omit mutex variables in the pager when threadsafe is disabled. (CVS 5095)

FossilOrigin-Name: d15d0bbab043e4366f7988423115babb550198a1

17 years agoFix a problem causing the database to be truncated to the wrong size after an increme...
danielk1977 [Wed, 7 May 2008 07:13:16 +0000 (07:13 +0000)] 
Fix a problem causing the database to be truncated to the wrong size after an incremental-vacuum is performed on a database in full auto-vacuum mode. (CVS 5094)

FossilOrigin-Name: ed98df24a3362c2d20f52bb1ce679787b3ee408b

17 years agoOnly look for config.h if the autoconf-based build is being used, and don't inline...
mlcreech [Wed, 7 May 2008 02:42:01 +0000 (02:42 +0000)] 
Only look for config.h if the autoconf-based build is being used, and don't inline it into the amalgamation. (CVS 5093)

FossilOrigin-Name: 7df9ef2c8216133d50bf4737482f51193e8579b0

17 years agoFix most remaining testsuite failures on OS/2 by switching to exclusive locks that...
pweilbacher [Tue, 6 May 2008 22:22:11 +0000 (22:22 +0000)] 
Fix most remaining testsuite failures on OS/2 by switching to exclusive locks that we meant to use from the start. (CVS 5092)

FossilOrigin-Name: 5f682c9a68853f33aac6a2ad3f91b1cdf17dcd73

17 years agoThe pathToDel element of the os2File structure should be in the local codepage instea...
pweilbacher [Tue, 6 May 2008 22:15:26 +0000 (22:15 +0000)] 
The pathToDel element of the os2File structure should be in the local codepage instead of UTF-8 to make DosForceDelete() work. (CVS 5091)

FossilOrigin-Name: 76028b5e5d220e1d44667b2fef8bdfc580c913b0

17 years agoRemove delOnClose flag from os2File structure, use pathToDel==NULL for the same check...
pweilbacher [Tue, 6 May 2008 21:42:09 +0000 (21:42 +0000)] 
Remove delOnClose flag from os2File structure, use pathToDel==NULL for the same check. (CVS 5090)

FossilOrigin-Name: 02e123bb9b3da81bc8ee8bab7a2c54bbaadc5123

17 years agoFix a bug whereby the database file was not always being extended to its original...
danielk1977 [Tue, 6 May 2008 18:13:26 +0000 (18:13 +0000)] 
Fix a bug whereby the database file was not always being extended to its original size when rolling back an incremental-vacuum operation. (CVS 5089)

FossilOrigin-Name: 4a1ae9d0320de1013a3b5f24ebdd25fe9fdab424

17 years agoAdd defines for _FILE_OFFSET_BITS and _LARGE_FILES if needed for large file support.
mlcreech [Tue, 6 May 2008 02:28:06 +0000 (02:28 +0000)] 
Add defines for _FILE_OFFSET_BITS and _LARGE_FILES if needed for large file support.
Ticket #3094. (CVS 5088)

FossilOrigin-Name: 729e2f06ba4030cc771fc876ddfd41866b8c0d93

17 years agoAdd AC_SYS_LARGEFILE to ensure large file support, update autotools-related files.
mlcreech [Mon, 5 May 2008 22:52:56 +0000 (22:52 +0000)] 
Add AC_SYS_LARGEFILE to ensure large file support, update autotools-related files.
Ticket #3094. (CVS 5087)

FossilOrigin-Name: 2b1e455c46a184311a3a2e83b4f9345d2e34f497

17 years agoFix recently introduced test script error causing a failure in incrblob_err.test...
danielk1977 [Mon, 5 May 2008 17:14:53 +0000 (17:14 +0000)] 
Fix recently introduced test script error causing a failure in incrblob_err.test. (CVS 5086)

FossilOrigin-Name: 5e7c8ebd21915382280c146e7070481fa6a92eec

17 years agoBetter error messages when trying to open a large file using a version
drh [Mon, 5 May 2008 16:56:34 +0000 (16:56 +0000)] 
Better error messages when trying to open a large file using a version
of SQLite that omits large file support.  Tickets #3096 and #3094. (CVS 5085)

FossilOrigin-Name: bdd89cd231745e6bd498b2751d7ff2cf6169b3eb

17 years agoDo not segfault in the CLI if sqlite3_open() fails to create a
drh [Mon, 5 May 2008 16:27:24 +0000 (16:27 +0000)] 
Do not segfault in the CLI if sqlite3_open() fails to create a
database connection object.  Ticket #3096. (CVS 5084)

FossilOrigin-Name: 0bec7ebf41e9f52d3ef0449e27e3d631abfe948b

17 years agoIf an IO error occurs while locking the database and checking the cache validity...
danielk1977 [Mon, 5 May 2008 16:23:55 +0000 (16:23 +0000)] 
If an IO error occurs while locking the database and checking the cache validity, unlock the database before returning. Ticket #3030. (CVS 5083)

FossilOrigin-Name: 4ad1809192b616d1c12499825bcd0967dea76864

17 years agoAvoid leaking page references after an IO error is encountered. (CVS 5082)
danielk1977 [Mon, 5 May 2008 15:26:50 +0000 (15:26 +0000)] 
Avoid leaking page references after an IO error is encountered. (CVS 5082)

FossilOrigin-Name: 198c395b01140ef48b6913c00188ba7168bfb081

17 years agoFix a couple of minor problems with transactions in virtual tables. (CVS 5081)
drh [Mon, 5 May 2008 13:23:04 +0000 (13:23 +0000)] 
Fix a couple of minor problems with transactions in virtual tables. (CVS 5081)

FossilOrigin-Name: 2275fc6ee06b17da5808cecfa5570ac6439eaf74

17 years agoAvoid leaking page references when database corruption is encountered. (CVS 5080)
danielk1977 [Mon, 5 May 2008 12:09:32 +0000 (12:09 +0000)] 
Avoid leaking page references when database corruption is encountered. (CVS 5080)

FossilOrigin-Name: 270d47e8d0a20868879a95b66cb547e1e5b642d9

17 years agoFix to test code to build when ENABLE_IOTRACE is not defined. (CVS 5079)
danielk1977 [Mon, 5 May 2008 11:33:47 +0000 (11:33 +0000)] 
Fix to test code to build when ENABLE_IOTRACE is not defined. (CVS 5079)

FossilOrigin-Name: 8fa2bda4c594119cbbc489b9879c52b134a57711

17 years agoMake sure that when a connection is blocking on a RESERVED lock that it
drh [Fri, 2 May 2008 14:23:54 +0000 (14:23 +0000)] 
Make sure that when a connection is blocking on a RESERVED lock that it
continues after the lock is released.  Ticket #3093. (CVS 5078)

FossilOrigin-Name: 3dc334aa4a394e85858d2441225d64d73664b5b5

17 years agoAdd a test case for ticket #3093. (CVS 5077)
drh [Fri, 2 May 2008 14:08:56 +0000 (14:08 +0000)] 
Add a  test case for ticket #3093. (CVS 5077)

FossilOrigin-Name: 288a7655c9a876abf53d92dc6599a9305399d562

17 years agoAdd another test case to verify that ticket #3092 has been fixed. (CVS 5076)
drh [Fri, 2 May 2008 02:00:54 +0000 (02:00 +0000)] 
Add another test case to verify that ticket #3092 has been fixed. (CVS 5076)

FossilOrigin-Name: 1906d2dadcd70053f55e2133af9f838e2d828fa7

17 years agoFix a problem with journal files being created unnecessarily when doing
drh [Thu, 1 May 2008 18:01:46 +0000 (18:01 +0000)] 
Fix a problem with journal files being created unnecessarily when doing
an atomic write in exclusive access locking mode.  Fix a test script problem. (CVS 5075)

FossilOrigin-Name: 70e708660fec0b6f6c41efc2e29f1d7ae6785b7e

17 years agoFix more compiler warnings. (CVS 5074)
drh [Thu, 1 May 2008 17:16:52 +0000 (17:16 +0000)] 
Fix more compiler warnings. (CVS 5074)

FossilOrigin-Name: 59568844e774dbe89fd20bbc8f49a3665cc54717

17 years agoFix harmless compiler warnings. (CVS 5073)
drh [Thu, 1 May 2008 17:03:49 +0000 (17:03 +0000)] 
Fix harmless compiler warnings. (CVS 5073)

FossilOrigin-Name: 227a6f67c21c87a7cf98f84b9d57a6dc9da93ebb

17 years agoTest versions of getVarint functions. The updates essentially utilize loop unrolling...
shane [Thu, 1 May 2008 02:47:03 +0000 (02:47 +0000)] 
Test versions of getVarint functions. The updates essentially utilize loop unrolling and some shifting/anding tricks to minimize the number of logical operations required. (CVS 5072)

FossilOrigin-Name: 682dc24dbe82d0326377e27c5ff97db3499873b0

17 years agoAdd comment to speculate when setting journal_mode=OFF on VACUUM does not
drh [Wed, 30 Apr 2008 16:38:23 +0000 (16:38 +0000)] 
Add comment to speculate when setting journal_mode=OFF on VACUUM does not
help performance.  No changes to code. (CVS 5071)

FossilOrigin-Name: 9c8b4babb2222a5e0c2ecf7a116b7df90084c81d

17 years agoImproved option handling in speedtest8.c. Added -quiet and -priority options. Added...
shane [Wed, 30 Apr 2008 15:55:33 +0000 (15:55 +0000)] 
Improved option handling in speedtest8.c.  Added -quiet and -priority options.  Added reporting of total user and system time. (CVS 5070)

FossilOrigin-Name: aa59974ec15508d69c5b65ab89ec7bc32690018c

17 years agoFix test for buffer overrun in unixGettempname(). Fix for #3091. (CVS 5069)
danielk1977 [Wed, 30 Apr 2008 08:56:10 +0000 (08:56 +0000)] 
Fix test for buffer overrun in unixGettempname(). Fix for #3091. (CVS 5069)

FossilOrigin-Name: fc0ca647bd1c7c953bb0f3eb7d3471572fd18c34

17 years agoZero the per-pager temporary space allocation to avoid warnings from
drh [Tue, 29 Apr 2008 15:38:58 +0000 (15:38 +0000)] 
Zero the per-pager temporary space allocation to avoid warnings from
valgrind. (CVS 5068)

FossilOrigin-Name: f854ae576ee0b223b86a1169178fc4399e8d08ce

17 years agoFix a potential buffer overrun in sqlite3_mprintf() when a non-terminated
drh [Tue, 29 Apr 2008 15:22:27 +0000 (15:22 +0000)] 
Fix a potential buffer overrun in sqlite3_mprintf() when a non-terminated
string is passed to a "%s" format with a precision specifying the number
of bytes to copy. (CVS 5067)

FossilOrigin-Name: 1f5b18419bb4e2552ac26593381e2eb866bb67fd

17 years agoAlways convert IEEE NaN into NULL. Ticket #3060. Add test cases to verify
drh [Tue, 29 Apr 2008 00:15:20 +0000 (00:15 +0000)] 
Always convert IEEE NaN into NULL.  Ticket #3060.  Add test cases to verify
that this is happening. (CVS 5066)

FossilOrigin-Name: 9b07e59e510e2de39c2081653662fbc654ca6fbb

17 years agoAllow SQLITE_MAX_COLUMN to be set to zero at compile-time in order to
drh [Mon, 28 Apr 2008 20:35:48 +0000 (20:35 +0000)] 
Allow SQLITE_MAX_COLUMN to be set to zero at compile-time in order to
disable the checks.  Also SQLITE_MAX_EXPR_DEPTH.  Ticket #3069. (CVS 5065)

FossilOrigin-Name: e6f71abb22fb74e5910d817caec98fa44070fc5f

17 years agoAdd test cases to verify that multiple virtual tables can be updated
drh [Mon, 28 Apr 2008 20:27:53 +0000 (20:27 +0000)] 
Add test cases to verify that multiple virtual tables can be updated
within a trigger and that xSync, xCommit, and xRollback are never called
except following xBegin or xCreate.  Ticket #3083. (CVS 5064)

FossilOrigin-Name: 76175199ac2fda57e616eb386ba0bad6aa9f74b4

17 years agoMake sure that transactions are started on all virtual tables that
drh [Mon, 28 Apr 2008 18:46:43 +0000 (18:46 +0000)] 
Make sure that transactions are started on all virtual tables that
changes in a single statement, not just the first.  Ticket #3083.
Need to add test cases. (CVS 5063)

FossilOrigin-Name: 133b7ee50ea6012739ebe0e334374c5d9b1fcc7f

17 years agoModified Varint32 functions to disable code for single-byte handling as it is already...
shane [Mon, 28 Apr 2008 17:41:30 +0000 (17:41 +0000)] 
Modified Varint32 functions to disable code for single-byte handling as it is already handled by their respective macro forms. (CVS 5062)

FossilOrigin-Name: be10f5dda6e9c245c05b51840c173e83ece6b245

17 years agoAdd tests to create and drop a virtual table during a recursive call from
drh [Mon, 28 Apr 2008 17:12:10 +0000 (17:12 +0000)] 
Add tests to create and drop a virtual table during a recursive call from
an application-defined function.  Ticket #3080. (CVS 5061)

FossilOrigin-Name: d4d6eff353edd5680776436ab3406227b8c830b3

17 years agoChange the implementation of the NaN recognition to be more cross-platform.
drh [Mon, 28 Apr 2008 16:55:26 +0000 (16:55 +0000)] 
Change the implementation of the NaN recognition to be more cross-platform.
Ticket #3089. (CVS 5060)

FossilOrigin-Name: 07fd9a8c6ca0876f7ec447ce65173957005dc75c

17 years agoFix a shared-cache mode problem triggered when sqlite3_open16() was used to open...
danielk1977 [Mon, 28 Apr 2008 16:19:35 +0000 (16:19 +0000)] 
Fix a shared-cache mode problem triggered when sqlite3_open16() was used to open the second or subsequent connections to a utf-8 database. (CVS 5059)

FossilOrigin-Name: 20946bf6dd704416c41edd863103e85fc7ab4ef2

17 years agoWork around a NaN bug in some versions of Tcl. (CVS 5058)
drh [Mon, 28 Apr 2008 15:23:02 +0000 (15:23 +0000)] 
Work around a NaN bug in some versions of Tcl. (CVS 5058)

FossilOrigin-Name: 7bf8213ce9f591f4c2ef6c1e19a17712e3bae9e3

17 years agoChanges to test scripts to accommodate different architectures and different
drh [Mon, 28 Apr 2008 13:02:57 +0000 (13:02 +0000)] 
Changes to test scripts to accommodate different architectures and different
versions of Tcl. (CVS 5057)

FossilOrigin-Name: 8eb2c07c520c12c2cd4610596dbec451c8275e95

17 years agoRestore the #include of stdint.h removed in (5051). (CVS 5056)
drh [Mon, 28 Apr 2008 12:54:15 +0000 (12:54 +0000)] 
Restore the #include of stdint.h removed in (5051). (CVS 5056)

FossilOrigin-Name: e96e8b9b4137c3ea239674683cf9fd8682851908

17 years agoDelete requirement F12764 as it has never been implemented and the
drh [Sun, 27 Apr 2008 22:48:04 +0000 (22:48 +0000)] 
Delete requirement F12764 as it has never been implemented and the
same effect can be easily achieved by other means.  Ticket #3085. (CVS 5055)

FossilOrigin-Name: fadeed998e63c2fd94811b911cf263713c5fcdca

17 years agoFix the documentation to agree with long-standing behavior for the
drh [Sun, 27 Apr 2008 22:29:01 +0000 (22:29 +0000)] 
Fix the documentation to agree with long-standing behavior for the
sqlite3_bind_parameter_name() interface on an ?NNN parameter.
Ticket #2975. (CVS 5054)

FossilOrigin-Name: df9991d5bbc6d90087f022c55b070c11dc510077

17 years agoAllow multiple occurrances of %include in lemon input files.
drh [Sun, 27 Apr 2008 22:19:44 +0000 (22:19 +0000)] 
Allow multiple occurrances of %include in lemon input files.
Ticket #3001. (CVS 5053)

FossilOrigin-Name: f22fa11bde0b77cfc5ff438f2ec6ab95dc87c291

17 years agoFix the lemon parser generator so that it works again with the "error"
drh [Sun, 27 Apr 2008 18:45:10 +0000 (18:45 +0000)] 
Fix the lemon parser generator so that it works again with the "error"
symbol.  Ticket #3079 (CVS 5052)

FossilOrigin-Name: 20ed749266d099eb35f40ca479db8baa75186b60

17 years agoRemove all references to sqlite3_intptr_t. (CVS 5051)
drh [Sun, 27 Apr 2008 18:40:11 +0000 (18:40 +0000)] 
Remove all references to sqlite3_intptr_t. (CVS 5051)

FossilOrigin-Name: 6a94d19747a05df2694d3720f76de3dab3836578

17 years agoUse "(void)" function arguments in declarations instead of "()". Both are
drh [Sat, 26 Apr 2008 13:39:46 +0000 (13:39 +0000)] 
Use "(void)" function arguments in declarations instead of "()".  Both are
legal but some pedantic compilers complain about the latter.  Ticket #3086. (CVS 5050)

FossilOrigin-Name: a4149ca317c2fd7ce87b8f23029c3f87a7f4c2e8

17 years agoClarify some comments. No changes to code. (CVS 5049)
drh [Fri, 25 Apr 2008 12:25:42 +0000 (12:25 +0000)] 
Clarify some comments.  No changes to code. (CVS 5049)

FossilOrigin-Name: 7f80539225b17a62e4aa09e6d514e3e9e1b22c36

17 years agoAdd test cases to prove that ticket #3082 has been fixed. (CVS 5048)
drh [Fri, 25 Apr 2008 12:10:15 +0000 (12:10 +0000)] 
Add test cases to prove that ticket #3082 has been fixed. (CVS 5048)

FossilOrigin-Name: 776e7024101dd2eeb29484a36c7e1ac751444ec8

17 years agoCandidate fix for ticket #3082. Test cases needed. (CVS 5047)
drh [Fri, 25 Apr 2008 00:08:38 +0000 (00:08 +0000)] 
Candidate fix for ticket #3082. Test cases needed. (CVS 5047)

FossilOrigin-Name: f6313311ddfb1ee2d6660b9be99afe721a8a9aff

17 years agoRemove two more unused files. (CVS 5046)
drh [Thu, 24 Apr 2008 22:57:28 +0000 (22:57 +0000)] 
Remove two more unused files. (CVS 5046)

FossilOrigin-Name: a400faf51970b312e9d8c8b4fa099558cc620b69

17 years agoConsolidated varint macro usage from btreeInt.h, vdbe.c, and vdbeaux.c into sqliteInt...
shane [Thu, 24 Apr 2008 19:15:09 +0000 (19:15 +0000)] 
Consolidated varint macro usage from btreeInt.h, vdbe.c, and vdbeaux.c into sqliteInt.h and made their use consistent.   Slight improvements to varint32 macros. (CVS 5045)

FossilOrigin-Name: 0d04ccd97841bbbda564cc6ae5da057ee3888fa3

17 years agoFix a problem with the test scripts caused by not cleaning up the global tcl namespac...
danielk1977 [Thu, 24 Apr 2008 12:38:28 +0000 (12:38 +0000)] 
Fix a problem with the test scripts caused by not cleaning up the global tcl namespace. (CVS 5044)

FossilOrigin-Name: 440492395854a0886ef954ef2ed638bf587c6f03

17 years agoFix an assert() failure that can occur if "journal_mode=off" is used in a build with...
danielk1977 [Thu, 24 Apr 2008 12:37:40 +0000 (12:37 +0000)] 
Fix an assert() failure that can occur if "journal_mode=off" is used in a build with the atomic-write optimization enabled. (CVS 5043)

FossilOrigin-Name: 709d17b19d343f45aa6c7684685ab58c67d83da0

17 years agoFix a crash that can follow a malloc() failure in malloc7.test. (CVS 5042)
danielk1977 [Thu, 24 Apr 2008 12:36:35 +0000 (12:36 +0000)] 
Fix a crash that can follow a malloc() failure in malloc7.test. (CVS 5042)

FossilOrigin-Name: 85eedad186327a1f0b0983413b833efd41640d0e

17 years agoEnsure that it is not possible to open either virtual table or view columns using...
danielk1977 [Thu, 24 Apr 2008 09:49:55 +0000 (09:49 +0000)] 
Ensure that it is not possible to open either virtual table or view columns using the blob API. Ticket #3078. (CVS 5041)

FossilOrigin-Name: 6039328fe05aaf9380d545e84dfabccb32a4d8ea

17 years agoMinor change to comment on sqlite3_blob_read(). No code changes. Ticket #3072. (CVS...
danielk1977 [Thu, 24 Apr 2008 08:56:54 +0000 (08:56 +0000)] 
Minor change to comment on sqlite3_blob_read(). No code changes. Ticket #3072. (CVS 5040)

FossilOrigin-Name: adb4bc5a7dd56e625b20c48a7416f2b3480f4de1

17 years agoRemove redundant assert() statement from vdbeaux.c. Ticket #3065. (CVS 5039)
danielk1977 [Thu, 24 Apr 2008 08:36:51 +0000 (08:36 +0000)] 
Remove redundant assert() statement from vdbeaux.c. Ticket #3065. (CVS 5039)

FossilOrigin-Name: 3cba1166076bf0506597e2d7686a271922817668

17 years agoAdd version comment to vdbeaux.c. No code changes. Ticket #3066. (CVS 5038)
danielk1977 [Thu, 24 Apr 2008 08:31:51 +0000 (08:31 +0000)] 
Add version comment to vdbeaux.c. No code changes. Ticket #3066. (CVS 5038)

FossilOrigin-Name: d667add44b87f9011b0ef10d45101dfc1e38feaa