]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
15 years agoRemove an ALWAYS macro around an expression that is sometimes false.
dan [Thu, 10 Sep 2009 10:15:59 +0000 (10:15 +0000)] 
Remove an ALWAYS macro around an expression that is sometimes false.

FossilOrigin-Name: f2a9ee722c568e73f2a08fb6a2886719850f2923

15 years agoReduce default SQLITE_MAX_TRIGGER_DEPTH when SQLITE_SMALL_STACK is defined.
shane [Thu, 10 Sep 2009 02:54:48 +0000 (02:54 +0000)] 
Reduce default SQLITE_MAX_TRIGGER_DEPTH when SQLITE_SMALL_STACK is defined.

FossilOrigin-Name: 913fb70ea85f05d94db5cf2e692a7c8b7489e3ba

15 years agoTrying to open a transaction in one thread and close it in another is a misuse with...
dan [Wed, 9 Sep 2009 18:46:52 +0000 (18:46 +0000)] 
Trying to open a transaction in one thread and close it in another is a misuse with LinuxThreads. Doing so may cause memory and file-descriptors to be leaked. Update an assert() and some test cases to account for this.

FossilOrigin-Name: ef99eb57c536d82e7c19fd3d990c17793cc64a3f

15 years agoSuppress some harmless compiler warnings.
drh [Wed, 9 Sep 2009 16:10:50 +0000 (16:10 +0000)] 
Suppress some harmless compiler warnings.

FossilOrigin-Name: f0c72a53c5d57d7487b48a06a40816153f47aaac

15 years agoBug fix in the SQLITE_OPEN_PRIVATECACHE option added a few minutes ago.
drh [Wed, 9 Sep 2009 15:29:41 +0000 (15:29 +0000)] 
Bug fix in the SQLITE_OPEN_PRIVATECACHE option added a few minutes ago.

FossilOrigin-Name: f3a0f23bc77f8c73924f1d371afae9a0f65bae67

15 years agoAdd some tests that involve BEFORE UPDATE or BEFORE DELETE triggers messing with...
dan [Wed, 9 Sep 2009 15:06:10 +0000 (15:06 +0000)] 
Add some tests that involve BEFORE UPDATE or BEFORE DELETE triggers messing with the row being updated or deleted. SQLite behaviour in this scenario is undefined, so the tests just check that the behaviour is relatively sane and there are no crashes.

FossilOrigin-Name: 9a4c59a2ddd0df2d9425097004b450a6685f2147

15 years agoUpdate the README file to state that TCL is required in order to run
drh [Wed, 9 Sep 2009 14:48:21 +0000 (14:48 +0000)] 
Update the README file to state that TCL is required in order to run
the makefiles for SQLite.  Ticket [7d96113ff].

FossilOrigin-Name: ba20091ae8146d276414f97527bf63e50fac8691

15 years agoAdded SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags as
drh [Wed, 9 Sep 2009 14:17:52 +0000 (14:17 +0000)] 
Added SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags as
possibilities to sqlite3_open_v2(), to override the global shared
cache mode setting.  Ticket [9fd0bc36639c15]

FossilOrigin-Name: f509eb8b488bb39deda4ca88f66ed40c6784af02

15 years agoIncrease the size of bitvec objects to 1024 bytes on 64-bit systems.
drh [Wed, 9 Sep 2009 12:41:17 +0000 (12:41 +0000)] 
Increase the size of bitvec objects to 1024 bytes on 64-bit systems.

FossilOrigin-Name: f1272b90f6078d301ab05592593e9415f2b2b90b

15 years agoAdd a test case to show that [/info/29ab7be99f|29ab7be99f] is fixed.
dan [Wed, 9 Sep 2009 11:43:43 +0000 (11:43 +0000)] 
Add a test case to show that [/info/29ab7be99f|29ab7be99f] is fixed.

FossilOrigin-Name: 135d656a20a2a450955ed9ec57d9637cf31493c6

15 years agoAdd a complicated assert() to check that statement transactions are opened when required.
dan [Wed, 9 Sep 2009 11:37:20 +0000 (11:37 +0000)] 
Add a complicated assert() to check that statement transactions are opened when required.

FossilOrigin-Name: 28aa1f4ea8dad56ffedb31d6c2bc27c1d6be2407

15 years agoCombine the OP_Statement and OP_Transaction opcodes.
dan [Tue, 8 Sep 2009 19:15:01 +0000 (19:15 +0000)] 
Combine the OP_Statement and OP_Transaction opcodes.

FossilOrigin-Name: aec9dbd8d21c55c3945287a3dfa55d3ed168f977

15 years agoIf recursive-triggers are enabled, fire DELETE triggers if database rows are removed...
dan [Tue, 8 Sep 2009 15:55:15 +0000 (15:55 +0000)] 
If recursive-triggers are enabled, fire DELETE triggers if database rows are removed as a result of OR REPLACE conflict resolution.

FossilOrigin-Name: 85cb0c94a63eda5f059ebe40887c7af9b4869893

15 years agoAdditional simplifications in support of structural testing.
drh [Tue, 8 Sep 2009 13:40:16 +0000 (13:40 +0000)] 
Additional simplifications in support of structural testing.

FossilOrigin-Name: 4ab8c841f818326b0b04b95e3edd828c77f109d9

15 years agoFurther simplifications to the VDBE - removing functionality that is no longer
drh [Tue, 8 Sep 2009 02:27:58 +0000 (02:27 +0000)] 
Further simplifications to the VDBE - removing functionality that is no longer
used.

FossilOrigin-Name: b271e16621831957468a1d3925174aac73f58891

15 years agoCode simplifications, especially to the pseudo-table logic, and comment
drh [Tue, 8 Sep 2009 01:14:48 +0000 (01:14 +0000)] 
Code simplifications, especially to the pseudo-table logic, and comment
improvements.

FossilOrigin-Name: 52449a9569b7142095cc88ee208b31cc59a3cab4

15 years agoAdd the SQLITE_LIMIT_TRIGGER_DEPTH option to sqlite3_limit().
drh [Mon, 7 Sep 2009 18:14:02 +0000 (18:14 +0000)] 
Add the SQLITE_LIMIT_TRIGGER_DEPTH option to sqlite3_limit().

FossilOrigin-Name: d7dc8b433691745b3842282569f1573d1e057963

15 years agoMerge [/src/vinfo/1958db4493461b3a54217a6a45f2730287107860|1958db4493] and [/src...
dan [Mon, 7 Sep 2009 17:41:48 +0000 (17:41 +0000)] 
Merge [/src/vinfo/1958db4493461b3a54217a6a45f2730287107860|1958db4493] and [/src/vinfo/26cd015c0ee1c18dd37f11b47ce35cfa320b3514|26cd015c0e].

FossilOrigin-Name: ecbe0832be77599c7cc66fb9968d0f419000d231

15 years agoFix a bug where a condition was incorrectly being compiled out when SQLITE_OMIT_VIRTU...
dan [Mon, 7 Sep 2009 17:32:34 +0000 (17:32 +0000)] 
Fix a bug where a condition was incorrectly being compiled out when SQLITE_OMIT_VIRTUALTABLE was defined.

FossilOrigin-Name: 1958db4493461b3a54217a6a45f2730287107860

15 years agoWarning cleanup from the MSVC compile.
shane [Mon, 7 Sep 2009 04:38:36 +0000 (04:38 +0000)] 
Warning cleanup from the MSVC compile.

FossilOrigin-Name: 26cd015c0ee1c18dd37f11b47ce35cfa320b3514

15 years agoAttempt to handle numbers at the limits of the IEEE 754 range better (nan.test now...
shane [Mon, 7 Sep 2009 03:48:52 +0000 (03:48 +0000)] 
Attempt to handle numbers at the limits of the IEEE 754 range better (nan.test now passes).

FossilOrigin-Name: 2a74ae1969aeec93576a44e11177677e6f3cea9c

15 years agoChanges to internal AtoF to improve "accuracy" when measured against built-in GCC...
shane [Mon, 7 Sep 2009 02:46:31 +0000 (02:46 +0000)] 
Changes to internal AtoF to improve "accuracy" when measured against built-in GCC atof().

FossilOrigin-Name: 438e1577d0f9ceb2851ee0df0df18f0229eca491

15 years agoAdd the "unix-wfl" VFS that does whole-file locking in order to help NFS
drh [Thu, 3 Sep 2009 16:23:44 +0000 (16:23 +0000)] 
Add the "unix-wfl" VFS that does whole-file locking in order to help NFS
do better cache coherency.

FossilOrigin-Name: 2aeab80e5b84f5e94c5c99b4adeca805601c844b

15 years agoDo not reuse function parameters in subsequent expressions since the
drh [Thu, 3 Sep 2009 01:18:00 +0000 (01:18 +0000)] 
Do not reuse function parameters in subsequent expressions since the
function call might have triggered a text encoding change.
Fix for ticket [2ea2425d34be].

FossilOrigin-Name: f22e388727f0ba0f187cdee51ff8ba17a5d50b8a

15 years agoDocumentation updates for the version info #defines and C interfaces.
drh [Wed, 2 Sep 2009 19:04:24 +0000 (19:04 +0000)] 
Documentation updates for the version info #defines and C interfaces.

FossilOrigin-Name: 69055e9b4cb6346e9e10fd9dd65e6ea06b959e76

15 years agoFix a problem in main.c. SQLITE_NoRecTriggers -> SQLITE_RecTriggers.
dan [Tue, 1 Sep 2009 17:28:29 +0000 (17:28 +0000)] 
Fix a problem in main.c. SQLITE_NoRecTriggers -> SQLITE_RecTriggers.

FossilOrigin-Name: 5ac69ed608affb4104b4665560a3a490ea5af217

15 years agoChange "PRAGMA disable_recursive_triggers" to "PRAGMA recursive_triggers". Also a...
dan [Tue, 1 Sep 2009 17:11:07 +0000 (17:11 +0000)] 
Change "PRAGMA disable_recursive_triggers" to "PRAGMA recursive_triggers". Also a fix for compiling with OMIT_TRIGGER defined.

FossilOrigin-Name: e016cca36390451d5d1c6e0d1b3cdbd6d869be1a

15 years agoMerge in changes to support recursive invocation of triggers (disabled by default).
dan [Tue, 1 Sep 2009 16:39:06 +0000 (16:39 +0000)] 
Merge in changes to support recursive invocation of triggers (disabled by default).

FossilOrigin-Name: c1b388c30de1b660c56afbcac9c69700500808a9

15 years agoAdd new test script triggerC.test.
dan [Tue, 1 Sep 2009 16:19:19 +0000 (16:19 +0000)] 
Add new test script triggerC.test.

FossilOrigin-Name: a2a062a4b52f45af85c195582a36d1b76d2675db

15 years agoMore fixes and comment updates.
dan [Tue, 1 Sep 2009 12:16:01 +0000 (12:16 +0000)] 
More fixes and comment updates.

FossilOrigin-Name: 38a9327bad1a01e3d7a47fad44ece2f6c7e88643

15 years agoMore thorough initialization of a buffer when writing the rollback journal
drh [Mon, 31 Aug 2009 16:09:58 +0000 (16:09 +0000)] 
More thorough initialization of a buffer when writing the rollback journal
header, in order to prevent a harmless valgrind warning.
CVSTrac ticket #4039

FossilOrigin-Name: 5e2f5496834bffb79236f803cdfedb18fbd533b7

15 years agoMore fixes for test cases.
dan [Mon, 31 Aug 2009 15:27:27 +0000 (15:27 +0000)] 
More fixes for test cases.

FossilOrigin-Name: 85d9f23be1e8673dbda42e43b9b23332ada9225f

15 years agoFix some authorization callback problems.
dan [Mon, 31 Aug 2009 08:22:46 +0000 (08:22 +0000)] 
Fix some authorization callback problems.

FossilOrigin-Name: 8a746fbfd51f70f56e25ade59df49d2dc03c131c

15 years agoMerge with main branch.
dan [Mon, 31 Aug 2009 05:39:58 +0000 (05:39 +0000)] 
Merge with main branch.

FossilOrigin-Name: 6e09e28751a7071969ef9f3445f4092d2c28f358

15 years agoFix another test problem and some instances where an OOM may cause a segfault.
dan [Mon, 31 Aug 2009 05:23:32 +0000 (05:23 +0000)] 
Fix another test problem and some instances where an OOM may cause a segfault.

FossilOrigin-Name: 31199db0f77cf4b32d5589a29abd9535b155164b

15 years agoFixes for new triggers scheme.
dan [Sun, 30 Aug 2009 11:42:51 +0000 (11:42 +0000)] 
Fixes for new triggers scheme.

FossilOrigin-Name: 9eb91efda5241609ff18ff15ef5eaa0e86788eab

15 years agoChanges to support recursive triggers.
dan [Fri, 28 Aug 2009 18:53:45 +0000 (18:53 +0000)] 
Changes to support recursive triggers.

FossilOrigin-Name: 9b9c19211593d5ff7b39254a29c284560a8bcedb

15 years agoAdd a new source code logo gif.
drh [Fri, 28 Aug 2009 00:49:03 +0000 (00:49 +0000)] 
Add a new source code logo gif.

FossilOrigin-Name: 6abcba1021b237452f542f1fbb69eb75d9f50f53

15 years agoPatch to the named semaphore locking mechanism used by VxWorks.
drh [Thu, 27 Aug 2009 17:56:20 +0000 (17:56 +0000)] 
Patch to the named semaphore locking mechanism used by VxWorks.

FossilOrigin-Name: 609c5341bea16e4e8bcd15388b209c753ca9e0bb

15 years agoUpdates to the pluggable page cache documentation.
drh [Wed, 26 Aug 2009 00:26:51 +0000 (00:26 +0000)] 
Updates to the pluggable page cache documentation.

FossilOrigin-Name: 3085ad7612e2c50a2d7906e82b2d057954d9c3f9

15 years agoRemove an unreachable branch from where.c in order to restore 100%
drh [Tue, 25 Aug 2009 16:28:14 +0000 (16:28 +0000)] 
Remove an unreachable branch from where.c in order to restore 100%
branch test coverage.  Add assert() and testcase() macros to verify
that the branch is unreachable.

FossilOrigin-Name: 58db7e7166ccefef77b237b77e17f47d31ff41e0

15 years agoInitialize variables differently in the range processing logic of where.c
drh [Tue, 25 Aug 2009 15:56:51 +0000 (15:56 +0000)] 
Initialize variables differently in the range processing logic of where.c
in order to make sure variables are always initialized even following
an OOM error.

FossilOrigin-Name: 3fb3686a4502140720dc3710a28a4f4128ab6554

15 years agoAttempt to clarify the meaning of a "parameter" in the sqlite3_bind() API
drh [Tue, 25 Aug 2009 14:59:37 +0000 (14:59 +0000)] 
Attempt to clarify the meaning of a "parameter" in the sqlite3_bind() API
documentation.

FossilOrigin-Name: 9389e6a7dad7ba70923282d6fe45fbccd22f681e

15 years agoMake sure that the output of EXPLAIN is right when the P4 argument of
drh [Tue, 25 Aug 2009 14:24:04 +0000 (14:24 +0000)] 
Make sure that the output of EXPLAIN is right when the P4 argument of
an opcode is of type P4_MEM with the MEM having type MEM_Blob.

FossilOrigin-Name: 6a623e6cf0370456232497a84366d18fa180debb

15 years agoAvoid calling sqite3VdbeRecordCompare() with uninitialized memory following
drh [Tue, 25 Aug 2009 13:53:49 +0000 (13:53 +0000)] 
Avoid calling sqite3VdbeRecordCompare() with uninitialized memory following
an OOM.  Doing so is harmless, but it worries valgrind.

FossilOrigin-Name: d33b9eb2567561ccfdc588c95604cce9b697d768

15 years agoFix an uninitialized variable in sqlite3VdbeIdxRowid().
drh [Tue, 25 Aug 2009 13:10:27 +0000 (13:10 +0000)] 
Fix an uninitialized variable in sqlite3VdbeIdxRowid().

FossilOrigin-Name: 6e787e18fa87f5463bf62cd91a0c0855099693f0

15 years agoMerge together the os_unix.c fix of [aa6acfa8ca] and the trigger fix of
drh [Tue, 25 Aug 2009 12:11:00 +0000 (12:11 +0000)] 
Merge together the os_unix.c fix of [aa6acfa8ca] and the trigger fix of
[dee1b8eb40].

FossilOrigin-Name: 1e2c6e134e04dd22795ad4839874ec0edd9b0970

15 years agoFix a bad interaction between "proxy-locking" and [http://www.sqlite.org/src/vdiff...
dan [Tue, 25 Aug 2009 05:57:47 +0000 (05:57 +0000)] 
Fix a bad interaction between "proxy-locking" and [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905|aa6acfa8ca].

FossilOrigin-Name: 2a5c9e1dbf7f5f4b2081c964450a9305a4516f5b

15 years agoUpdate the version number to 3.6.18, even though the actual release of
drh [Mon, 24 Aug 2009 19:37:20 +0000 (19:37 +0000)] 
Update the version number to 3.6.18, even though the actual release of
that version is still a few weeks away.

FossilOrigin-Name: c0ea4e9a7dcd66c079f917af47157f6ab7d79401

15 years agoFix some errors in [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644...
dan [Mon, 24 Aug 2009 18:57:58 +0000 (18:57 +0000)] 
Fix some errors in [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905|aa6acfa8ca].

FossilOrigin-Name: 82d1934a428a34c292a612fb67bbcea262990e0f

15 years agoRun the column cache in a new context when generating code for trigger
drh [Mon, 24 Aug 2009 01:35:25 +0000 (01:35 +0000)] 
Run the column cache in a new context when generating code for trigger
programs.  Fix for ticket [efc02f9779].

FossilOrigin-Name: dee1b8eb402f47c6d5ee60aac28f8e3dcf98167f

15 years agoRemove an obsolete documentation file left over from SQLite version 1.0.
drh [Sat, 22 Aug 2009 19:17:02 +0000 (19:17 +0000)] 
Remove an obsolete documentation file left over from SQLite version 1.0.

FossilOrigin-Name: f7eb1efc37d0658d66b3b86d5afd5419d22bfe92

15 years agoFix a problem in os_unix.c where a malloc failure could lead to a leaked file descriptor.
dan [Sat, 22 Aug 2009 11:39:46 +0000 (11:39 +0000)] 
Fix a problem in os_unix.c where a malloc failure could lead to a leaked file descriptor.

FossilOrigin-Name: aa6acfa8caa2ef59b4c16dfe42c4b5644da96905

15 years agoWhen a database file is opened, try to find an unused file descriptor to reuse. ...
dan [Fri, 21 Aug 2009 17:18:03 +0000 (17:18 +0000)] 
When a database file is opened, try to find an unused file descriptor to reuse.  This change affects unix (and other systems that use os_unix.c) only. Fix for cvstrac ticket [http://www.sqlite.org/cvstrac/tktview?tn=4018|#4018].

FossilOrigin-Name: 9b4d9ab62d687289837b13b07885e72cc3abe8a9

15 years agoChange the expression code generator to account for the fact that the new
drh [Fri, 21 Aug 2009 13:22:25 +0000 (13:22 +0000)] 
Change the expression code generator to account for the fact that the new
sqlite3AtoF() never returns NaN.  Also, clarification of a comment in
where.c.

FossilOrigin-Name: 75f596a04a74eb3a538c7be5b41756c970a21a1b

15 years agoAdd assert() statements to os_unix.c to check that the mutex is held when it should be.
dan [Fri, 21 Aug 2009 08:29:10 +0000 (08:29 +0000)] 
Add assert() statements to os_unix.c to check that the mutex is held when it should be.

FossilOrigin-Name: 11a669b6537d6bac67764fd91a319234345ac504

15 years agoUpdated sqlite3AtoF() that performs slightly better with GCC, and significantly bette...
shane [Fri, 21 Aug 2009 02:13:14 +0000 (02:13 +0000)] 
Updated sqlite3AtoF() that performs slightly better with GCC, and significantly better with MSVC.

FossilOrigin-Name: f084f5a8ba850de627ca8e9de6c81ab1ad9b7a1b

15 years agoUpdates for test_init.c for configure and other consistency changes.
shane [Fri, 21 Aug 2009 02:07:09 +0000 (02:07 +0000)] 
Updates for test_init.c for configure and other consistency changes.

FossilOrigin-Name: 3ba316e9a32de406a4390fb3f52fccb48da4da30

15 years agoRemove a redundant OOM test from the sqlite_stat2 analysis loader.
drh [Thu, 20 Aug 2009 23:05:31 +0000 (23:05 +0000)] 
Remove a redundant OOM test from the sqlite_stat2 analysis loader.

FossilOrigin-Name: d30ceeb8b303e2ebfab2855beb973da606a97fa9

15 years agoSimplifications to the range-scan logic in support of structural testing.
drh [Thu, 20 Aug 2009 20:05:55 +0000 (20:05 +0000)] 
Simplifications to the range-scan logic in support of structural testing.

FossilOrigin-Name: bbbee81075d923be7ca11e6e635c069a05d1605a

15 years agoContinuing refinements of the range-scan optimizations in where.c.
drh [Thu, 20 Aug 2009 18:14:42 +0000 (18:14 +0000)] 
Continuing refinements of the range-scan optimizations in where.c.
The range scores are changed from an integer 1..9 to 0..100.

FossilOrigin-Name: f0c24b5fb86940f1a88adfb39cc4b9cbfcc66f8a

15 years agoChange the code that collects samples for sqlite_stat2 so that the first sample taken...
dan [Thu, 20 Aug 2009 09:11:06 +0000 (09:11 +0000)] 
Change the code that collects samples for sqlite_stat2 so that the first sample taken is the (nRow/(2*SQLITE_INDEX_SAMPLES))th entry in the index, where nRow is the total number of index entries.

FossilOrigin-Name: cbfe6e9df39684607cbc9637e3fb3c5ee6af2515

15 years agoIncremental code and comment cleanup in where.c. There is more to be done.
drh [Thu, 20 Aug 2009 13:45:07 +0000 (13:45 +0000)] 
Incremental code and comment cleanup in where.c.  There is more to be done.

FossilOrigin-Name: 4a5d9550bdc08633535a7869d7748f56ac3e9a36

15 years agoSet the "type" correctly of built-in BINARY collating sequences for UTF16.
drh [Thu, 20 Aug 2009 02:49:30 +0000 (02:49 +0000)] 
Set the "type" correctly of built-in BINARY collating sequences for UTF16.

FossilOrigin-Name: 167644f33c949b532655c2297aedf13f93876396

15 years agoAll the sqlite3GetCollSeq() function to specify an arbitrary text encoding.
drh [Thu, 20 Aug 2009 02:34:15 +0000 (02:34 +0000)] 
All the sqlite3GetCollSeq() function to specify an arbitrary text encoding.

FossilOrigin-Name: 4ee44322ca3c92ed8d6f5d4a3f89d219bf379595

15 years agoMake sure that sqlite3ValueFromExpr() sets the "type" field of the
drh [Wed, 19 Aug 2009 22:14:17 +0000 (22:14 +0000)] 
Make sure that sqlite3ValueFromExpr() sets the "type" field of the
sqlite3_value object correctly when the value is a floating point
number.

FossilOrigin-Name: 2467eb68ace46f6185fd14758446a5c887caffe3

15 years agoChange the way an Expr that has been converted to TK_REGISTER stores its original...
dan [Wed, 19 Aug 2009 17:17:00 +0000 (17:17 +0000)] 
Change the way an Expr that has been converted to TK_REGISTER stores its original opcode. The previous method, overloading Expr.iColumn, did not work in all cases.

FossilOrigin-Name: 71ea9d0e148fbd3d633651c61c81044e37cf88b9

15 years agoFix an assert() failure that may follow an OOM error.
dan [Wed, 19 Aug 2009 16:34:31 +0000 (16:34 +0000)] 
Fix an assert() failure that may follow an OOM error.

FossilOrigin-Name: 14a715c5639b2bc69b129485ca32e96366dab4c4

15 years agoMerge 29cafcfdcc and a6f39181a7.
dan [Wed, 19 Aug 2009 16:21:25 +0000 (16:21 +0000)] 
Merge 29cafcfdcc and a6f39181a7.

FossilOrigin-Name: 740a93e89c5f12672d72de7b3c55807deac613d4

15 years agoDocumentation improvements in sqlite.h.in. No changes to code.
drh [Wed, 19 Aug 2009 15:57:07 +0000 (15:57 +0000)] 
Documentation improvements in sqlite.h.in.  No changes to code.

FossilOrigin-Name: a6f39181a7b3083ae46cffd7aee7db895b4df8a4

15 years agoAdd some tests that use the sqlite_stat2 table in shared-cache mode.
dan [Wed, 19 Aug 2009 15:34:59 +0000 (15:34 +0000)] 
Add some tests that use the sqlite_stat2 table in shared-cache mode.

FossilOrigin-Name: 29cafcfdccf4c0a27746b9a82fa4191605a4505a

15 years agoMerge with 709e16145e.
dan [Wed, 19 Aug 2009 14:42:25 +0000 (14:42 +0000)] 
Merge with 709e16145e.

FossilOrigin-Name: 6c8a0e2b37d9f4399ef90a44cbc492526201d0d5

15 years agoClean up sqlite_stat2 related code. Add test cases.
dan [Wed, 19 Aug 2009 14:34:54 +0000 (14:34 +0000)] 
Clean up sqlite_stat2 related code. Add test cases.

FossilOrigin-Name: aa728e06ce456fa42e68687bff6c7424460c31ef

15 years agoFix a problem where a buffer allocated from a lookaside pool was being released using...
dan [Wed, 19 Aug 2009 09:09:38 +0000 (09:09 +0000)] 
Fix a problem where a buffer allocated from a lookaside pool was being released using the system free().

FossilOrigin-Name: 67207a15bd7302ffeb2f342532b57b4852838d83

15 years agoAdd the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the stat2...
dan [Wed, 19 Aug 2009 08:18:32 +0000 (08:18 +0000)] 
Add the SQLITE_ENABLE_STAT2 macro. If this is not defined at build-time, the stat2 table is not created, populated, or used.

FossilOrigin-Name: 362665e89c21fd603d9f8ad6c0ead590e885af7c

15 years agoAdjust sync count for SQLITE_DISABLE_DIRSYNC compiler option.
shane [Wed, 19 Aug 2009 04:24:48 +0000 (04:24 +0000)] 
Adjust sync count for SQLITE_DISABLE_DIRSYNC compiler option.

FossilOrigin-Name: 709e16145e37940cb243eede75071fb15095d960

15 years agoChange the sqlite_stat2 schema to be more flexible.
dan [Tue, 18 Aug 2009 16:24:58 +0000 (16:24 +0000)] 
Change the sqlite_stat2 schema to be more flexible.

FossilOrigin-Name: ded9dec6459baf21e01f63250db5ace57f390e7a

15 years agoUnknown functions in the DEFAULT clause of a table cause an error when
drh [Tue, 18 Aug 2009 16:05:46 +0000 (16:05 +0000)] 
Unknown functions in the DEFAULT clause of a table cause an error when
the DEFAULT value is needed.  Ticket [2d401a94287b5].

FossilOrigin-Name: 093917d7fda442012dfd1a1b2f20f85d2eefa093

15 years agoMove the allocation of the memsys5 mutex into the initializer.
drh [Tue, 18 Aug 2009 15:33:44 +0000 (15:33 +0000)] 
Move the allocation of the memsys5 mutex into the initializer.

FossilOrigin-Name: 4e377a09c194e90581ef00fd3a213e936b4e648a

15 years agoFix obscure issues with the memsys5 memory allocator. Arrange that the
drh [Tue, 18 Aug 2009 14:48:53 +0000 (14:48 +0000)] 
Fix obscure issues with the memsys5 memory allocator.  Arrange that the
xRealloc() interface to memory allocators is only called with a value
that has been through xRoundup().

FossilOrigin-Name: 577bd6f15556b7f6d86ee5167353fdd535577bf6

15 years agoWhen shutting down the memsys5 memory allocator, be sure to clear the mutex
drh [Tue, 18 Aug 2009 12:16:03 +0000 (12:16 +0000)] 
When shutting down the memsys5 memory allocator, be sure to clear the mutex
pointer in case the next startup does not use a mutex because it is configured
differently.

FossilOrigin-Name: d4e7e2d82321c12fe471ed49098828bc0ef78543

15 years agoFix a bug in mem5.c which would cause an infinite loop on an attempt
drh [Tue, 18 Aug 2009 01:54:19 +0000 (01:54 +0000)] 
Fix a bug in mem5.c which would cause an infinite loop on an attempt
to allocate more than 1073741824 bytes of contiguous memory.  Also, some
cleanup of mem5.c.  More work to do on this.

FossilOrigin-Name: 783b751a38f9f911c5ebdf738c255b7111978f76

15 years agoFirst version of sqlite_stat2 (schema forces exactly 10 samples).
dan [Mon, 17 Aug 2009 17:06:58 +0000 (17:06 +0000)] 
First version of sqlite_stat2 (schema forces exactly 10 samples).

FossilOrigin-Name: dd96bda2a85c1d94fb4a0bf5f27e2977f7f7e42e

15 years agoAlways call sqlite3_malloc() in sqlite3OsInit(), even when not compiled
drh [Mon, 17 Aug 2009 16:01:11 +0000 (16:01 +0000)] 
Always call sqlite3_malloc() in sqlite3OsInit(), even when not compiled
with SQLITE_TEST.

FossilOrigin-Name: b98a8706a61ad27c881b6820eee10d06bfb27417

15 years agoMove error simulation code from the sqlite3_os_init() functions into a wrapper.
dan [Mon, 17 Aug 2009 15:52:25 +0000 (15:52 +0000)] 
Move error simulation code from the sqlite3_os_init() functions into a wrapper.

FossilOrigin-Name: 67ad21abf88abb7a3e2eacddcaf1ab5d54149807

15 years agoMore documentation and comment updates for sqlite3_initialize/shutdown interface...
shane [Mon, 17 Aug 2009 15:31:23 +0000 (15:31 +0000)] 
More documentation and comment updates for sqlite3_initialize/shutdown interface changes to handle failures.

FossilOrigin-Name: 32509bc7339cd6a46cea4c243e3418546860cb2d

15 years agoAdd tests to check that sqlite recovers from an error in sqlite3_initialize() correctly.
dan [Mon, 17 Aug 2009 15:16:19 +0000 (15:16 +0000)] 
Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly.

FossilOrigin-Name: 904a371c6c9d3f20332b37767b06161fa0a78113

15 years agoEnhanced documentation and minor code tweaks in preparation for hardening
drh [Mon, 17 Aug 2009 13:42:29 +0000 (13:42 +0000)] 
Enhanced documentation and minor code tweaks in preparation for hardening
the sqlite3_initialize/shutdown interfaces against initialization failures.

FossilOrigin-Name: 98c49e6135ae6268a80de88f8b0284f88ef32e1d

15 years agoAdd a test to verify that 3.6.17 releases read-locks obtained to read the database...
dan [Mon, 17 Aug 2009 09:29:09 +0000 (09:29 +0000)] 
Add a test to verify that 3.6.17 releases read-locks obtained to read the database schema even if the connection is not currently in auto-commit mode.

FossilOrigin-Name: 78dfe8321db9debfcd4a7f3daf4223d0cbf23ab9

15 years agoUpdate the amalgamation builder so that it avoids putting redundant
drh [Fri, 14 Aug 2009 18:18:03 +0000 (18:18 +0000)] 
Update the amalgamation builder so that it avoids putting redundant
SQLITE_API macros on declarations.

FossilOrigin-Name: 0d5b058717858c9cda8ca120a3d814453a94a0e6

15 years agoWork around an over-zealous optimization in GCC 4.3.3. See
drh [Fri, 14 Aug 2009 17:53:39 +0000 (17:53 +0000)] 
Work around an over-zealous optimization in GCC 4.3.3. See
CVSTrac ticket #4027.

FossilOrigin-Name: 9cbe3654055a78c09ea1ecd5dc599bcd888b57e3

15 years agoFix a case where SQLite may write past the end of a buffer as a result of a corrupted...
dan [Fri, 14 Aug 2009 17:01:22 +0000 (17:01 +0000)] 
Fix a case where SQLite may write past the end of a buffer as a result of a corrupted database file.

FossilOrigin-Name: 43321a556031942389ca11b033c1eae46ac6141b

15 years agoFix to the "publish.sh" script that was broken by the previous check-in.
drh [Fri, 14 Aug 2009 16:15:17 +0000 (16:15 +0000)] 
Fix to the "publish.sh" script that was broken by the previous check-in.

FossilOrigin-Name: 34c21210eb03bd1230cde5d08039a8a656f35674

15 years agoIncorporate fossil-scm version information into the build. Add the
drh [Fri, 14 Aug 2009 16:01:24 +0000 (16:01 +0000)] 
Incorporate fossil-scm version information into the build.  Add the
SQLITE_SOURCE_ID macro to the header.  Add the sqlite3_sourceid() interface.
Add the sqlite_source_id() SQL function.

FossilOrigin-Name: 302dabe98f50b472bccd65c58504bc8a330049c4

15 years agoFix typos in comments used to generate documentation.
drh [Thu, 13 Aug 2009 20:15:29 +0000 (20:15 +0000)] 
Fix typos in comments used to generate documentation.
CVSTrac tickets #4028 and #4029.

FossilOrigin-Name: 1fc73b9146ee8844c73fc6a545cd0c98ac4d472b

15 years agoTweak to the new whereB.test file to make it more consistent.
drh [Thu, 13 Aug 2009 19:54:26 +0000 (19:54 +0000)] 
Tweak to the new whereB.test file to make it more consistent.

FossilOrigin-Name: 06098505fca5c67b627a9e1102451f93e490e192

15 years agoIf a binary operator in a WHERE clause that should be performed with no affinity...
dan [Thu, 13 Aug 2009 19:21:16 +0000 (19:21 +0000)] 
If a binary operator in a WHERE clause that should be performed with no affinity conversions applied to its operands (see http://www.sqlite.org/datatype3.html) is optimized by index lookup, do not apply any conversions to the key value before looking it up in the index. Fix for 93fb9f89d6.

FossilOrigin-Name: e72186f2d68d28c2e0c32894f9adb28c155b5f63

15 years agoEnhancements to the whereB.test to check more affinity corner cases.
drh [Thu, 13 Aug 2009 18:14:32 +0000 (18:14 +0000)] 
Enhancements to the whereB.test to check more affinity corner cases.

FossilOrigin-Name: 1048459824746307c9e4296cbc21716bf8b5449d

15 years agoAdd a test case for the affinity problem reported by ticket [93fb9f89d6].
drh [Thu, 13 Aug 2009 17:14:59 +0000 (17:14 +0000)] 
Add a test case for the affinity problem reported by ticket [93fb9f89d6].

FossilOrigin-Name: 149ec24e61437fac2b0dd6239276d3aa543c56cb

15 years agoMerge the accidental fork.
drh [Thu, 13 Aug 2009 15:42:52 +0000 (15:42 +0000)] 
Merge the accidental fork.

FossilOrigin-Name: 86a06dd0494c2fe83d4fde517557600956cedd9e