]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
16 years agoAvoid fts3 crash on (MATCH '""') expressions. Ticket #3717. (CVS 6343)
danielk1977 [Thu, 12 Mar 2009 15:43:47 +0000 (15:43 +0000)] 
Avoid fts3 crash on (MATCH '""') expressions. Ticket #3717. (CVS 6343)

FossilOrigin-Name: 03679857a320517a7b89e5214e948bce9af896a9

16 years agoMake calls to sqlite3BtreeRollbackStmt() no-ops when passed a Btree* handle that...
danielk1977 [Thu, 12 Mar 2009 14:43:27 +0000 (14:43 +0000)] 
Make calls to sqlite3BtreeRollbackStmt() no-ops when passed a Btree* handle that does not have an open statement transaction. Ticket #3718. (CVS 6342)

FossilOrigin-Name: a1bb1aef0e06140a2d5d5e4b6c10c73ce95c89e0

16 years agoBegin purging dirty pages from the cache once 90% of the cache is dirty (insteadof...
danielk1977 [Thu, 5 Mar 2009 14:59:39 +0000 (14:59 +0000)] 
Begin purging dirty pages from the cache once 90% of the cache is dirty (insteadof waiting until it is 100% dirty). This improves performance in some circumstances by effectively reserving 10% of the configured page-cache for frequently reused read-only pages. (CVS 6341)

FossilOrigin-Name: 823fe7f5551e121e211d1ede606a7ce7487ffe0d

16 years agoComment out a recently added assert statement that is failing. (CVS 6340)
danielk1977 [Thu, 5 Mar 2009 14:53:18 +0000 (14:53 +0000)] 
Comment out a recently added assert statement that is failing. (CVS 6340)

FossilOrigin-Name: d0b2015f1caf2fc60ec82bd8e760f7b61befa3b4

16 years agoImplemented winSectorSize(); Other changes for consistency. os_win.c. Ticket #2931...
shane [Thu, 5 Mar 2009 05:54:55 +0000 (05:54 +0000)] 
Implemented winSectorSize(); Other changes for consistency.  os_win.c.  Ticket #2931. (CVS 6339)

FossilOrigin-Name: 68abcb278ced40c0d97af724dbd1b751a3becdc2

16 years agoChanges to cleanup and improve the consistency of tests for large file support in...
shane [Thu, 5 Mar 2009 04:27:08 +0000 (04:27 +0000)] 
Changes to cleanup and improve the consistency of tests for large file support in bigfile.test. (CVS 6338)

FossilOrigin-Name: 3dbdf68030855a5da24de0ae2f10a26da2531d33

16 years agoAdded some asserts and a check for a null pointer dereference. (CVS 6337)
shane [Thu, 5 Mar 2009 04:23:47 +0000 (04:23 +0000)] 
Added some asserts and a check for a null pointer dereference. (CVS 6337)

FossilOrigin-Name: 6b0cabd017ed25530b2d918d2c069fcbdd60a3f6

16 years agoCorrected typos and misspellings. Ticket #3702. (CVS 6336)
shane [Thu, 5 Mar 2009 04:20:31 +0000 (04:20 +0000)] 
Corrected typos and misspellings. Ticket #3702. (CVS 6336)

FossilOrigin-Name: 6404afa0c515a6536fc2e878d4fb451e4dc06942

16 years agoRemoved compiler warnings from MSVC builds. Ticket #3701. (CVS 6335)
shane [Thu, 5 Mar 2009 03:48:06 +0000 (03:48 +0000)] 
Removed compiler warnings from MSVC builds.  Ticket #3701. (CVS 6335)

FossilOrigin-Name: 5477833ec7f707ea9937d3fd6a6d8ab49f2016f1

16 years agoConverted EXPR_*SIZE macros to use offsetof() to avoid MSVC compiler warnings. (CVS...
shane [Mon, 2 Mar 2009 17:18:48 +0000 (17:18 +0000)] 
Converted EXPR_*SIZE macros to use offsetof() to avoid MSVC compiler warnings. (CVS 6334)

FossilOrigin-Name: 5e8e16f7d505a4b21272f1d300f366ee0e211e56

16 years agoFix the SQLITE_ENABLE_UPDATE_DELETE_LIMIT option for the new Expr compression
drh [Mon, 2 Mar 2009 14:24:21 +0000 (14:24 +0000)] 
Fix the SQLITE_ENABLE_UPDATE_DELETE_LIMIT option for the new Expr compression
logic of check-in (6305).  Bug discovered during regression testing. (CVS 6333)

FossilOrigin-Name: 91969edac737adf087e35e10aa0a732b3303afd5

16 years agoFix a bug in the GROUP BY alias name resolution. The bug was by
drh [Mon, 2 Mar 2009 01:22:40 +0000 (01:22 +0000)] 
Fix a bug in the GROUP BY alias name resolution. The bug was by
check-in (6305).  Discovered by regression test on 64-bit linux.
Test cases added so that the problems is detected on 32-bit systems. (CVS 6332)

FossilOrigin-Name: fa0008502ec4f891bfed4a11f01650d274f95c44

16 years agoSuppress some compiler warnings (where possible). Ticket #3696. (CVS 6331)
drh [Sun, 1 Mar 2009 22:29:20 +0000 (22:29 +0000)] 
Suppress some compiler warnings (where possible).  Ticket #3696. (CVS 6331)

FossilOrigin-Name: a2373e5409e4e59903f315a4446db8cb6ba000cc

16 years agoFix a critical bug in the VDBE opcode array resizer introduced by
drh [Sun, 1 Mar 2009 19:42:11 +0000 (19:42 +0000)] 
Fix a critical bug in the VDBE opcode array resizer introduced by
check-in (6307).  Bug detected by regression testing. (CVS 6330)

FossilOrigin-Name: ec3b18acaecabae6eb04eda006870e602faacb8c

16 years agoInstead of linking temporary triggers on non-temporary tables into the Table.pTrigger...
danielk1977 [Sat, 28 Feb 2009 10:47:41 +0000 (10:47 +0000)] 
Instead of linking temporary triggers on non-temporary tables into the Table.pTrigger list, search the temp schema for them on demand. Fix for #3688. (CVS 6329)

FossilOrigin-Name: 3befe1ef7e6ebddedfa69579553a1b85b411ee98

16 years agoIn sqlite3_table_column_metadata(), hold the mutex on all attached BtShared objects...
danielk1977 [Thu, 26 Feb 2009 07:15:59 +0000 (07:15 +0000)] 
In sqlite3_table_column_metadata(), hold the mutex on all attached BtShared objects while accessing schema objects. Fix for #3679. (CVS 6328)

FossilOrigin-Name: d197afd658eecfc0e24913e5a779c8f1e2a138a6

16 years agoMove the new genfkey shell command out from within #ifdef _WIN32_ (CVS 6327)
drh [Wed, 25 Feb 2009 19:07:24 +0000 (19:07 +0000)] 
Move the new genfkey shell command out from within #ifdef _WIN32_ (CVS 6327)

FossilOrigin-Name: 48ee0e47e2d9669cc7425104e6b04ce49caf2e56

16 years agoRemove genfkey.c. Change genfkey.README to talk about the new shell dot-command,...
danielk1977 [Wed, 25 Feb 2009 15:43:57 +0000 (15:43 +0000)] 
Remove genfkey.c. Change genfkey.README to talk about the new shell dot-command, not the old standalone genfkey program. (CVS 6326)

FossilOrigin-Name: 36d699660bc328e65170d72be715338e82dbbb50

16 years agoAdd the 'genfkey' functionality to the sqlite3 shell. Accessed using a new dot-comman...
danielk1977 [Wed, 25 Feb 2009 15:22:02 +0000 (15:22 +0000)] 
Add the 'genfkey' functionality to the sqlite3 shell. Accessed using a new dot-command - ".genfkey". (CVS 6325)

FossilOrigin-Name: 0a59fb28b46e5d85c850d1dfa1385a4656e4dda5

16 years agoMinor changes and coverge tests for "SELECT count(*)" optimization. (CVS 6324)
danielk1977 [Wed, 25 Feb 2009 08:56:47 +0000 (08:56 +0000)] 
Minor changes and coverge tests for "SELECT count(*)" optimization. (CVS 6324)

FossilOrigin-Name: a3695b98f63fb776c3b7f77f0553e8a38bcc6f78

16 years agoAdditional commands and another procedure name changes for clarity of
drh [Tue, 24 Feb 2009 19:21:41 +0000 (19:21 +0000)] 
Additional commands and another procedure name changes for clarity of
presentation. No logic changes. (CVS 6323)

FossilOrigin-Name: 91d9d51e03657e7492dd7b93e66c82b152abec3b

16 years agoChanges to comments and functions/procedure names for clarification. No
drh [Tue, 24 Feb 2009 18:57:31 +0000 (18:57 +0000)] 
Changes to comments and functions/procedure names for clarification.  No
changes to logic. (CVS 6322)

FossilOrigin-Name: b99c1815fe270decf1ac3d714acc7e945d1e728a

16 years agoRemove old declaration of sqlite3_pending_byte (which was used by test code). It...
danielk1977 [Tue, 24 Feb 2009 18:40:49 +0000 (18:40 +0000)] 
Remove old declaration of sqlite3_pending_byte (which was used by test code). It has been replaced by sqlite3PendingByte. Ticket #3677. (CVS 6321)

FossilOrigin-Name: 44f0162ebb760dd6926ee5691752b6798e3aacb9

16 years agoFixes and some extra test cases for count(*) optimization. (CVS 6320)
danielk1977 [Tue, 24 Feb 2009 18:33:15 +0000 (18:33 +0000)] 
Fixes and some extra test cases for count(*) optimization. (CVS 6320)

FossilOrigin-Name: 3f0baa1b63df31f7dc885fd39290ca12ad2be6df

16 years agoEnhanced comments on table locking logic as it relates to preparing new
drh [Tue, 24 Feb 2009 16:18:05 +0000 (16:18 +0000)] 
Enhanced comments on table locking logic as it relates to preparing new
statements.  Added assert() and testcase() but no other changes to code. (CVS 6319)

FossilOrigin-Name: 4a12f5b818b769d7518c942ff3dedf453dde698e

16 years agoAdd test file test/count.test for testing "SELECT count(*)" statements. It is not...
danielk1977 [Tue, 24 Feb 2009 10:48:27 +0000 (10:48 +0000)] 
Add test file test/count.test for testing "SELECT count(*)" statements. It is not properly populated yet. (CVS 6318)

FossilOrigin-Name: a195d74ff9ce836447dba4da7edcc6f1cdae5574

16 years agoReverse commit (6315) for now. (CVS 6317)
danielk1977 [Tue, 24 Feb 2009 10:14:40 +0000 (10:14 +0000)] 
Reverse commit (6315) for now. (CVS 6317)

FossilOrigin-Name: 0e7c369c23a8767b4d3e5cdd47c14716992fb71a

16 years agoOptimize queries of the form "SELECT count(*) FROM <tbl>" by adding a sqlite3BtreeCou...
danielk1977 [Tue, 24 Feb 2009 10:01:51 +0000 (10:01 +0000)] 
Optimize queries of the form "SELECT count(*) FROM <tbl>" by adding a sqlite3BtreeCount() interface to the btree layer. (CVS 6316)

FossilOrigin-Name: d4aa6593183224b6868a322511511c0bbf63b598

16 years agoScan an index instead of a table for "SELECT count(*) FROM <tbl>" queries. Because...
danielk1977 [Mon, 23 Feb 2009 17:33:49 +0000 (17:33 +0000)] 
Scan an index instead of a table for "SELECT count(*) FROM <tbl>" queries. Because an index is usually smaller than a table on disk, this saves some IO. (CVS 6315)

FossilOrigin-Name: 294ba6f743c9132dce0e73da480bd3c2071e7239

16 years agoAdd the reverse_unordered_selects pragma. (CVS 6314)
drh [Mon, 23 Feb 2009 16:52:07 +0000 (16:52 +0000)] 
Add the reverse_unordered_selects pragma. (CVS 6314)

FossilOrigin-Name: bc078e0007b6c3dc07722820bb53798b643212b3

16 years agoEnsure the return value of sqlite3_errmsg16() is aligned on a 2-byte boundary. Ticket...
danielk1977 [Mon, 23 Feb 2009 14:42:53 +0000 (14:42 +0000)] 
Ensure the return value of sqlite3_errmsg16() is aligned on a 2-byte boundary. Ticket #3665. (CVS 6313)

FossilOrigin-Name: 9b8acf8319ec760713773407a4d5a33dea8d75e8

16 years agoThe sqlite3.def file is automatically generated and is not suppose to be
drh [Sat, 21 Feb 2009 22:38:59 +0000 (22:38 +0000)] 
The sqlite3.def file is automatically generated and is not suppose to be
part of the source code repository.  So it is hereby removed.
Ticket #3671. (CVS 6312)

FossilOrigin-Name: 5dcda154090e55a22b4d19f9def42beba8733f50

16 years agounbreak Autoconf-based build procedure by added missing backup.lo to the list of...
rse [Fri, 20 Feb 2009 22:27:41 +0000 (22:27 +0000)] 
unbreak Autoconf-based build procedure by added missing backup.lo to the list of library objects (CVS 6311)

FossilOrigin-Name: 94945801973c0e659de3f429c98a7d95a8c693f6

16 years agoInstead of using SetNumColumns, specify the number of columns in a table or index...
danielk1977 [Fri, 20 Feb 2009 10:58:41 +0000 (10:58 +0000)] 
Instead of using SetNumColumns, specify the number of columns in a table or index using the P4 argument. (CVS 6310)

FossilOrigin-Name: e43ed649630cbc49a6f2a25a26a4a6b5fce84c48

16 years agoAdd a count parameter to the OP_Variable opcode and use it to simplify
drh [Fri, 20 Feb 2009 03:55:05 +0000 (03:55 +0000)] 
Add a count parameter to the OP_Variable opcode and use it to simplify
prepared statements that copy consecutive unnamed parameters into
consecutive registers (a common case). (CVS 6309)

FossilOrigin-Name: 48b77b04935d8942eb22f0c061f3bc5e99bbd7db

16 years agoAdd the OP_HaltIfNull opcode and use it to simplify prepared statements
drh [Fri, 20 Feb 2009 03:02:23 +0000 (03:02 +0000)] 
Add the OP_HaltIfNull opcode and use it to simplify prepared statements
for INSERTs and UPDATEs of tables with NOT NULL columns. (CVS 6308)

FossilOrigin-Name: feccad8d0d05925ce67856d40ffe1bc7054168a0

16 years agoReuse space left-over opcode space at the end of the VDBE opcode array to
drh [Fri, 20 Feb 2009 01:28:59 +0000 (01:28 +0000)] 
Reuse space left-over opcode space at the end of the VDBE opcode array to
store memory cells, VDBE cursors, and other content needed by the VDBE.
This reduces the memory required by a prepared statement. (CVS 6307)

FossilOrigin-Name: 58a1809257ccfb7d9112a35f79ca2f82b3daa878

16 years agoRemove code in malloc.c that was already commented out using #if 0. (CVS 6306)
drh [Thu, 19 Feb 2009 20:50:14 +0000 (20:50 +0000)] 
Remove code in malloc.c that was already commented out using #if 0. (CVS 6306)

FossilOrigin-Name: e1ad757ec0abead25265f9251c954d2497bccc06

16 years agoChanges to reduce the heap space consumed by triggers, views and tables in the in...
danielk1977 [Thu, 19 Feb 2009 14:39:25 +0000 (14:39 +0000)] 
Changes to reduce the heap space consumed by triggers, views and tables in the in-memory representation of the schema. Also to reduce the space used by prepared statements slightly. (CVS 6305)

FossilOrigin-Name: d9f6ffbc5ea090ba0daac571fc9a6c68b9c864e4

16 years agoMake sure the auto_vacuum=INCREMENTAL setting is preserved across a VACUUM.
drh [Wed, 18 Feb 2009 20:31:18 +0000 (20:31 +0000)] 
Make sure the auto_vacuum=INCREMENTAL setting is preserved across a VACUUM.
Ticket #3663. (CVS 6304)

FossilOrigin-Name: ded04f12f41504e4a3ecd5164f0d4cbbde5e16f7

16 years agoMove the text of C-API requirements out of the sqlite.h.in source file and
drh [Wed, 18 Feb 2009 18:37:58 +0000 (18:37 +0000)] 
Move the text of C-API requirements out of the sqlite.h.in source file and
into separate files in the "docsrc" CM system.  Comment changes only - no
changes to code. (CVS 6303)

FossilOrigin-Name: 419eb48b6b4238526850091eef28af503b6c4579

16 years agoFix the amalgamation builder to mark sqlite3PagerBackupPtr as private.
drh [Wed, 18 Feb 2009 12:25:28 +0000 (12:25 +0000)] 
Fix the amalgamation builder to mark sqlite3PagerBackupPtr as private.
Ticket #3662. (CVS 6302)

FossilOrigin-Name: fb281950c51ef81797f93d797113d328d66a7cb0

16 years agorun autoconf so the updated version is in the configure script (CVS 6301)
vapier [Wed, 18 Feb 2009 04:35:12 +0000 (04:35 +0000)] 
run autoconf so the updated version is in the configure script (CVS 6301)

FossilOrigin-Name: edbb3586e92d675d621e23126581e9c3072e32b9

16 years agobreak libsqlite3.la install step out so the tcl install step can depend on it as...
vapier [Wed, 18 Feb 2009 04:33:59 +0000 (04:33 +0000)] 
break libsqlite3.la install step out so the tcl install step can depend on it as well (CVS 6300)

FossilOrigin-Name: 0998c55467a777783e4d451b3c82d769bef84d0b

16 years agoVersion 3.6.11 (CVS 6299)
drh [Wed, 18 Feb 2009 00:00:04 +0000 (00:00 +0000)] 
Version 3.6.11 (CVS 6299)

FossilOrigin-Name: 6abd630c8703ed09af27776096677c2f35da6b85

16 years agoAdd tests to double-check that nothing within SQLite ever tries to allocate
drh [Tue, 17 Feb 2009 18:37:28 +0000 (18:37 +0000)] 
Add tests to double-check that nothing within SQLite ever tries to allocate
amounts of memory that are close to the maximum signed integer, leading to
an integer overflow within malloc().  This is not currently a problem.
The extra tests just insure it never becomes a problem. (CVS 6298)

FossilOrigin-Name: f6ba7bb9152cffc9f67dfa7de12e36a3244b7e03

16 years agoInitialize an uninitialized buffer to silence a valgrind warning during a VACUUM...
danielk1977 [Tue, 17 Feb 2009 17:56:30 +0000 (17:56 +0000)] 
Initialize an uninitialized buffer to silence a valgrind warning during a VACUUM operation. (CVS 6297)

FossilOrigin-Name: 8c61968b33dd753618589cb3f859984223161d64

16 years agoAllow sqlite3_shutdown() to be called by a process before sqlite3_initialize() is...
danielk1977 [Tue, 17 Feb 2009 16:29:10 +0000 (16:29 +0000)] 
Allow sqlite3_shutdown() to be called by a process before sqlite3_initialize() is. Prior to this commit such a call could segfault. (CVS 6296)

FossilOrigin-Name: 79431c58d964d6057c7f42f7c1df74f3df4493eb

16 years agoMake sure result variables are initialized or unused following a failure
drh [Tue, 17 Feb 2009 16:17:01 +0000 (16:17 +0000)] 
Make sure result variables are initialized or unused following a failure
of the xFullPathname VFS interface.  Problem detected by valgrind. (CVS 6295)

FossilOrigin-Name: 59a4755185f0e51699cd020ae67d279bee45de1c

16 years agoChanges to remove some compiler warnings from MSVC. (CVS 6294)
shane [Mon, 16 Feb 2009 17:55:47 +0000 (17:55 +0000)] 
Changes to remove some compiler warnings from MSVC. (CVS 6294)

FossilOrigin-Name: 68f15442e8db364952d30daf4ce60c6b938f5906

16 years agoFix a compiler warning in backup.c. (CVS 6293)
drh [Mon, 16 Feb 2009 16:23:09 +0000 (16:23 +0000)] 
Fix a compiler warning in backup.c. (CVS 6293)

FossilOrigin-Name: 82222fbf5d5a085ce3e2c172c648a4c6d9750626

16 years agoMake sure OOM errors in the ANALYSIS loader get reported back out to
drh [Fri, 13 Feb 2009 16:59:53 +0000 (16:59 +0000)] 
Make sure OOM errors in the ANALYSIS loader get reported back out to
high-level layers.  Strange behavior can result otherwise. (CVS 6292)

FossilOrigin-Name: 88a6355cd65ddb319dbc27b5248c664dbf599778

16 years agoCorrectly handle attempts to add a UNIQUE or PRIMARY KEY column using
drh [Fri, 13 Feb 2009 03:43:31 +0000 (03:43 +0000)] 
Correctly handle attempts to add a UNIQUE or PRIMARY KEY column using
the ALTER TABLE statement.  Ticket #3651. (CVS 6291)

FossilOrigin-Name: dd179ff2986bc2a86d70bbe927fd0e123e17d398

16 years agoAdd additional cross-references from API documentation to other documents.
drh [Thu, 12 Feb 2009 17:07:34 +0000 (17:07 +0000)] 
Add additional cross-references from API documentation to other documents.
Comment changes only; no changes to code. (CVS 6290)

FossilOrigin-Name: 97203a0ad7a7ddfae04daf99558389b0589fc170

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