]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoFurther tests for compound SELECT statements.
dan [Tue, 14 Sep 2010 18:56:52 +0000 (18:56 +0000)] 
Further tests for compound SELECT statements.

FossilOrigin-Name: a0f01ebab9bd42fca9ce5d97f8cbf44afd803f4e

14 years agoClarify the documentation to better explain when an automatic re-prepare can
drh [Tue, 14 Sep 2010 18:22:59 +0000 (18:22 +0000)] 
Clarify the documentation to better explain when an automatic re-prepare can
be induced by rebinding parameters.  Add evidence marks to the automatic
re-prepare logic.

FossilOrigin-Name: 3e11f5155c5625ddf4300a9ef7e8bc20a190a752

14 years agoFix some test failures found running releasetest.tcl.
dan [Tue, 14 Sep 2010 10:53:45 +0000 (10:53 +0000)] 
Fix some test failures found running releasetest.tcl.

FossilOrigin-Name: 56a9ce7774a6f163a62684dd8d5357ce16a07de1

14 years agoFix walmode.test so that all tests pass with SQLITE_TEMP_STORE=3.
dan [Mon, 13 Sep 2010 19:03:38 +0000 (19:03 +0000)] 
Fix walmode.test so that all tests pass with SQLITE_TEMP_STORE=3.

FossilOrigin-Name: 6ba6e59a9d528fb1bdc530d48ab96a2de6e190d6

14 years agoAdd tests for compound SELECT statements to e_select.test.
dan [Mon, 13 Sep 2010 18:58:33 +0000 (18:58 +0000)] 
Add tests for compound SELECT statements to e_select.test.

FossilOrigin-Name: 8b0b009f292e0b52bffb08662aef67d9465e5a0a

14 years agoFix a couple of test files so that they work with DEFAULT_AUTOVACUUM.
dan [Mon, 13 Sep 2010 14:38:19 +0000 (14:38 +0000)] 
Fix a couple of test files so that they work with DEFAULT_AUTOVACUUM.

FossilOrigin-Name: 8cb39306f4bd9104c9d15d5ee98ec1252e798997

14 years agoRun the multi-threaded tests in test/threadtest3.c as part of releasetest.tcl. Remove...
dan [Mon, 13 Sep 2010 12:15:36 +0000 (12:15 +0000)] 
Run the multi-threaded tests in test/threadtest3.c as part of releasetest.tcl. Remove the OMIT_BUILTIN_TEST symbol from the "Device-Two" configuration.

FossilOrigin-Name: 3f5406e3231fbe84659712c9383b3e04cc6c11a8

14 years agoAlter some configurations in releasetest.tcl. Print out the wall-clock time taken...
dan [Mon, 13 Sep 2010 11:29:02 +0000 (11:29 +0000)] 
Alter some configurations in releasetest.tcl. Print out the wall-clock time taken for each test after it is executed.

FossilOrigin-Name: a91c5af3b033e326b868c3e6782650f6fe055b49

14 years agoAdd tests for "DISTINCT" and "ALL" to e_select.test.
dan [Sat, 11 Sep 2010 17:37:52 +0000 (17:37 +0000)] 
Add tests for "DISTINCT" and "ALL" to e_select.test.

FossilOrigin-Name: 43a99d9a88b1c3a6978e79ca21d49de6be2c9def

14 years agoFix a couple of incorrect evidence marks on malloc().
drh [Sat, 11 Sep 2010 16:25:42 +0000 (16:25 +0000)] 
Fix a couple of incorrect evidence marks on malloc().

FossilOrigin-Name: f9b5c5cb135f3d0bb2b64b4d3f8d77bbd8d2ae98

14 years agoAdditional evidence marks on the malloc() implementation. Update the
drh [Sat, 11 Sep 2010 16:15:55 +0000 (16:15 +0000)] 
Additional evidence marks on the malloc() implementation.  Update the
documentation to explain that mallocs are not necessarily 8-byte aligned
if the SQLITE_4_BYTE_ALIGNED_MALLOC compile-time option is used.

FossilOrigin-Name: 42b4bf9e72501cf228b4086437c7660443933f74

14 years agoAdd assert() statements to demonstrate that memory allocations are always
drh [Sat, 11 Sep 2010 15:54:53 +0000 (15:54 +0000)] 
Add assert() statements to demonstrate that memory allocations are always
aligned to an 8-byte boundary (unless SQLITE_4_BYTE_ALIGNED_MALLOC is defined).

FossilOrigin-Name: 305cc4e6c1164b1ede0c3177e3c0f9b8644df0f6

14 years agoWhen building from the amalgamation with ENABLE_RTREE defined, do not try to include...
dan [Sat, 11 Sep 2010 05:15:37 +0000 (05:15 +0000)] 
When building from the amalgamation with ENABLE_RTREE defined, do not try to include sqlite3rtree.h.

FossilOrigin-Name: 5b63e981f1bef26eae0da3144a08bdc54dc36709

14 years agoA further correction to the sqlite3_create_function() interface documentation.
drh [Fri, 10 Sep 2010 20:23:10 +0000 (20:23 +0000)] 
A further correction to the sqlite3_create_function() interface documentation.

FossilOrigin-Name: c65583dbc7203132010d223cce205f007a50c9ee

14 years agoAdd tests to e_select.test.
dan [Fri, 10 Sep 2010 19:18:00 +0000 (19:18 +0000)] 
Add tests to e_select.test.

FossilOrigin-Name: 3a051a76f7f116f9ba25fe4e41418b9f0c1401be

14 years agoUpdates to the documentation on the sqlite3_create_function() family of
drh [Fri, 10 Sep 2010 16:38:30 +0000 (16:38 +0000)] 
Updates to the documentation on the sqlite3_create_function() family of
interfaces.

FossilOrigin-Name: 9d277e0b82ff8759369b43ee5f2e5628724a84bd

14 years agoMake sure SQLite is running with MEMSTATUS enabled at the beginning of
drh [Fri, 10 Sep 2010 13:22:59 +0000 (13:22 +0000)] 
Make sure SQLite is running with MEMSTATUS enabled at the beginning of
every test script.

FossilOrigin-Name: 699953140511c14cbba499fad086187977476660

14 years agoMake sure MEMSTATUS is enabled at the beginning of the memsubsys2.test script.
drh [Thu, 9 Sep 2010 23:42:34 +0000 (23:42 +0000)] 
Make sure MEMSTATUS is enabled at the beginning of the memsubsys2.test script.

FossilOrigin-Name: c23b97219df43a870c6cb2aac84e54aaa5db4f3a

14 years agoAdd test cases to e_select.test.
dan [Thu, 9 Sep 2010 19:02:55 +0000 (19:02 +0000)] 
Add test cases to e_select.test.

FossilOrigin-Name: 5e73f7b2b77ba5e0670c512d9ef9eeb9bb654c27

14 years agoFurther updates to the sqlite3_pcache_methods documentation, plus the addition
drh [Thu, 9 Sep 2010 18:25:34 +0000 (18:25 +0000)] 
Further updates to the sqlite3_pcache_methods documentation, plus the addition
of a few evidence marks related to pcache.

FossilOrigin-Name: 34edb54bb03ad4e54f2e4de12d767e6fa8822ba4

14 years agoMake sure memory statistics are enabled for the dbstatus.test script.
drh [Thu, 9 Sep 2010 17:43:06 +0000 (17:43 +0000)] 
Make sure memory statistics are enabled for the dbstatus.test script.

FossilOrigin-Name: 35b943a0fc153341f5299218f2884245c63071b3

14 years agoUpdates to the sqlite3_pcache_methods documentation.
drh [Thu, 9 Sep 2010 15:48:20 +0000 (15:48 +0000)] 
Updates to the sqlite3_pcache_methods documentation.

FossilOrigin-Name: b21425c4045883fffa46af632e77cf708d862927

14 years agoAdd WHERE clause tests to e_select.test.
dan [Thu, 9 Sep 2010 11:33:09 +0000 (11:33 +0000)] 
Add WHERE clause tests to e_select.test.

FossilOrigin-Name: 721b73fa5c5898f6c6d5946e1c70ccd2d0b0dccc

14 years agoAdd tests for sub-select statements in the FROM clause of a SELECT to e_select.test.
dan [Thu, 9 Sep 2010 10:00:43 +0000 (10:00 +0000)] 
Add tests for sub-select statements in the FROM clause of a SELECT to e_select.test.

FossilOrigin-Name: 2c6b1ca952be9979b8079431c2abad28419b6256

14 years agoFix problem with test names in e_select.test.
dan [Wed, 8 Sep 2010 19:16:48 +0000 (19:16 +0000)] 
Fix problem with test names in e_select.test.

FossilOrigin-Name: 8fe34faf6b8ddbb8ddd23418163650e846104328

14 years agoAdd tests to e_select.test.
dan [Wed, 8 Sep 2010 19:02:32 +0000 (19:02 +0000)] 
Add tests to e_select.test.

FossilOrigin-Name: 727ced6babf8aca87a69632949a7a0ce9bc2be89

14 years agoUpdates to the documentation of the sqlite3_column_xxxx() family of
drh [Wed, 8 Sep 2010 16:30:36 +0000 (16:30 +0000)] 
Updates to the documentation of the sqlite3_column_xxxx() family of
interfaces.  Enhance sqlite3_column_blob() so that it always returns
a NULL pointer for a zero-length blob.

FossilOrigin-Name: a932fab299b3c32dea4d08729e9fab3735631e88

14 years agoImproved documentation of SQLITE_THREADSAFE and sqlite3_column_text() and
drh [Wed, 8 Sep 2010 02:30:27 +0000 (02:30 +0000)] 
Improved documentation of SQLITE_THREADSAFE and sqlite3_column_text() and
evidence marks for each.

FossilOrigin-Name: 0d7a53894866e536616e78473d253a9e9c29b1bc

14 years agoUpdates to the documentation on the VFS xOpen method.
drh [Tue, 7 Sep 2010 23:28:58 +0000 (23:28 +0000)] 
Updates to the documentation on the VFS xOpen method.

FossilOrigin-Name: 1719cb8f49bb138adcf8913a2d042f9e1360d78a

14 years agoUpdate the sqlite3_limit() documentation to explain that SQLITE_LIMIT_VDBE_OP
drh [Tue, 7 Sep 2010 19:10:01 +0000 (19:10 +0000)] 
Update the sqlite3_limit() documentation to explain that SQLITE_LIMIT_VDBE_OP
is not enforced.

FossilOrigin-Name: 17be9beeab273a0fa84e107c674aee4cd83e6f79

14 years agoAdd tests to e_select.test.
dan [Tue, 7 Sep 2010 19:05:28 +0000 (19:05 +0000)] 
Add tests to e_select.test.

FossilOrigin-Name: 282dae7edf7209197fffb6c58b038b3aae1a0367

14 years agoRevised documentation for sqlite3_limit(). Added some evidence marks and
drh [Tue, 7 Sep 2010 14:59:15 +0000 (14:59 +0000)] 
Revised documentation for sqlite3_limit().  Added some evidence marks and
assert() statements to verify sqlite3_limit() behavior.

FossilOrigin-Name: 883b9b7441593200def05d8a482bc92d3dc0e96b

14 years agoExample icon file (32x32x4) for new logo.
shaneh [Tue, 7 Sep 2010 14:12:14 +0000 (14:12 +0000)] 
Example icon file (32x32x4) for new logo.

FossilOrigin-Name: bd700794678613c1fb78ef9fcf2bcd6d48f70dc0

14 years agoRemove a redundant test for multiple output columns in a scalar subquery.
drh [Tue, 7 Sep 2010 12:17:36 +0000 (12:17 +0000)] 
Remove a redundant test for multiple output columns in a scalar subquery.

FossilOrigin-Name: 657472bce2b2fe6f3d4bbead5301f658812b937d

14 years agoIn the test scripts, changes instances of the TCL interface
drh [Mon, 6 Sep 2010 20:28:28 +0000 (20:28 +0000)] 
In the test scripts, changes instances of the TCL interface
option "-has_codec" into the correct "-has-codec".

FossilOrigin-Name: f53856a555403678ea8bd721a9fa1ae179240406

14 years agoAdd test cases to e_select.test.
dan [Mon, 6 Sep 2010 18:50:55 +0000 (18:50 +0000)] 
Add test cases to e_select.test.

FossilOrigin-Name: 9db26d5ef5a4c6f9fe0adf2ff306f6f07b6cc60c

14 years agoRemove proprietary information from the releasetest.tcl script and add it
drh [Mon, 6 Sep 2010 18:44:14 +0000 (18:44 +0000)] 
Remove proprietary information from the releasetest.tcl script and add it
to the public repository.

FossilOrigin-Name: e1d4a87e4e195b3a217f6d8a15d6beceb7c22a53

14 years agoAdd test file e_select.test.
dan [Sat, 4 Sep 2010 18:52:30 +0000 (18:52 +0000)] 
Add test file e_select.test.

FossilOrigin-Name: 8b9d8c226e5d95584c1e61a796dc23b780a300cb

14 years agoDocumentation enhancements for sqlite3_db_status(). Evidence marks on
drh [Fri, 3 Sep 2010 18:50:48 +0000 (18:50 +0000)] 
Documentation enhancements for sqlite3_db_status().  Evidence marks on
the SQL function call intrface.

FossilOrigin-Name: f06c7b1973d64a6a1a1db2b44df2a4eb0ece0077

14 years agoImproved documentation of the sqlite3_column_count() and sqlite3_data_count()
drh [Fri, 3 Sep 2010 12:05:11 +0000 (12:05 +0000)] 
Improved documentation of the sqlite3_column_count() and sqlite3_data_count()
interfaces.

FossilOrigin-Name: 0593373d4bf4f3451b41810513fd12cd8ebd0395

14 years agoAdd a few more subquery tests to e_expr.test.
dan [Fri, 3 Sep 2010 10:58:47 +0000 (10:58 +0000)] 
Add a few more subquery tests to e_expr.test.

FossilOrigin-Name: 189cba0072dd0b90e064f889457921aeaeefda01

14 years agoReduce the amount of memory taken up by WAL mmaped regions under Windows.
shaneh [Fri, 3 Sep 2010 04:29:30 +0000 (04:29 +0000)] 
Reduce the amount of memory taken up by WAL mmaped regions under Windows.

FossilOrigin-Name: f213e133f6e69b0edd73d96142014bdcab9dfe41

14 years agoFix a discrepancy between the documented behavior of SQLITE_DBCONFIG_LOOKASIDE
drh [Fri, 3 Sep 2010 03:32:46 +0000 (03:32 +0000)] 
Fix a discrepancy between the documented behavior of SQLITE_DBCONFIG_LOOKASIDE
and what it actually does.  Also add evidence marks on the DBCONFIG_LOOKASIDE
implementation.

FossilOrigin-Name: f483be441323e1cb91516964cd6ab0edecad4366

14 years agoMove the test for an (illegal) scalar sub-query that returns more than one column...
dan [Thu, 2 Sep 2010 19:01:16 +0000 (19:01 +0000)] 
Move the test for an (illegal) scalar sub-query that returns more than one column to earlier in SELECT processing in order to avoid an assert() that can happen later on.

FossilOrigin-Name: a55842cfb56b659c88832dce9ce7bafb50258211

14 years agoFix an off-by-one error in the scratch memory allocator.
drh [Thu, 2 Sep 2010 18:13:00 +0000 (18:13 +0000)] 
Fix an off-by-one error in the scratch memory allocator.

FossilOrigin-Name: 5a9591607a0a5ba4527bf2a90179651053244953

14 years agoUse sqlite3_mutex_notheld() instead of !sqlite3_mutex_held() inside
drh [Thu, 2 Sep 2010 17:15:19 +0000 (17:15 +0000)] 
Use sqlite3_mutex_notheld() instead of !sqlite3_mutex_held() inside
of assert() statements since the former works when mutexing is disabled
while the latter does not.

FossilOrigin-Name: 2211486b69cf53f5efb1334aff8b403b26596102

14 years agoAdd test case to verify the previous change is correct.
dan [Thu, 2 Sep 2010 14:35:36 +0000 (14:35 +0000)] 
Add test case to verify the previous change is correct.

FossilOrigin-Name: 2a5eed35b410fb6bd69242841c00700906f48d5f

14 years agoFix the computation of the offset on the mmap() for the Nth shared memory
drh [Thu, 2 Sep 2010 14:00:19 +0000 (14:00 +0000)] 
Fix the computation of the offset on the mmap() for the Nth shared memory
region.  Because of the way shared memory is accessed, the old computation,
though wrong, still happened to always get the right answer.  Nevertheless,
it is good to do the computation correctly.

FossilOrigin-Name: 36397f62f2e3a62b4d5730b29c197449c6850cac

14 years agoAdd tests for the EXISTS operator to e_expr.test.
dan [Thu, 2 Sep 2010 11:53:12 +0000 (11:53 +0000)] 
Add tests for the EXISTS operator to e_expr.test.

FossilOrigin-Name: 9f9a95cc80961b2733d34bd66cfccfbffb358ed6

14 years agoIf MEM_STATUS is disabled, avoid holding the STATIC_MEM mutex when calling the user...
dan [Thu, 2 Sep 2010 10:08:41 +0000 (10:08 +0000)] 
If MEM_STATUS is disabled, avoid holding the STATIC_MEM mutex when calling the user-defined xMalloc method. Holding the mutex causes problems for memsys3 and memsys5.

FossilOrigin-Name: 4f20f8ba73691c8a1dc33d2fcd1e793dd08f00a8

14 years agoFix a few typos. Update evidence marks.
shaneh [Thu, 2 Sep 2010 04:30:19 +0000 (04:30 +0000)] 
Fix a few typos.  Update evidence marks.

FossilOrigin-Name: c90a68b77e03bb351a7781f1b9dea38f5f571dcf

14 years agoIdentify additional requirements in the sqlite3_vfs object documentation.
drh [Wed, 1 Sep 2010 19:29:57 +0000 (19:29 +0000)] 
Identify additional requirements in the sqlite3_vfs object documentation.

FossilOrigin-Name: 47064453c396d5204a851b8ec08d665e2b12228a

14 years agoAdd tests to quota.test.
dan [Wed, 1 Sep 2010 18:00:09 +0000 (18:00 +0000)] 
Add tests to quota.test.

FossilOrigin-Name: ec9af6ebd49505c4e5f90fb6450c71946cdc7291

14 years agoCall quota callback destructors from within sqlite3_quota_shutdown().
dan [Wed, 1 Sep 2010 16:19:57 +0000 (16:19 +0000)] 
Call quota callback destructors from within sqlite3_quota_shutdown().

FossilOrigin-Name: fb80c6f3de73ed832faaeb8c4d83e1354f132b39

14 years agoBoundary value fix to the descriptive comment at the top of test_quota.c.
drh [Wed, 1 Sep 2010 15:26:18 +0000 (15:26 +0000)] 
Boundary value fix to the descriptive comment at the top of test_quota.c.

FossilOrigin-Name: 7f6072f0827e3aafd17f5f2bac9e3a3f8482e5f6

14 years agoMerge the test_quota.c module into the trunk.
drh [Wed, 1 Sep 2010 15:22:56 +0000 (15:22 +0000)] 
Merge the test_quota.c module into the trunk.

FossilOrigin-Name: 2e1a02026a0635fe05ba55a6d4d36dd7fd0ae8e9

14 years agoFix the TCL interface to test_quota.c so that it works with empty callback
drh [Wed, 1 Sep 2010 15:11:38 +0000 (15:11 +0000)] 
Fix the TCL interface to test_quota.c so that it works with empty callback
scripts.

FossilOrigin-Name: 19e95f63359589766da673aac99d19a355a92678

14 years agoVariable name and comment changes to test_quota.c for clearer presentation.
drh [Wed, 1 Sep 2010 14:58:10 +0000 (14:58 +0000)] 
Variable name and comment changes to test_quota.c for clearer presentation.

FossilOrigin-Name: 38ed1992c800cb1d1ca67977d704df73d97c78d7

14 years agoMake all private routines in test_quota.c begin with "quota".
drh [Wed, 1 Sep 2010 14:45:16 +0000 (14:45 +0000)] 
Make all private routines in test_quota.c begin with "quota".
Fix a test_quota.c segfault when setting a zero-quota.

FossilOrigin-Name: c0d0fc3a1cca7ee28db8add745c71baf0545776c

14 years agoAdd the sqlite3_quota_dump test command. Add a destructor argument on
drh [Wed, 1 Sep 2010 14:35:48 +0000 (14:35 +0000)] 
Add the sqlite3_quota_dump test command.  Add a destructor argument on
the sqlite3_quota_set() interface.

FossilOrigin-Name: 7a624b5ae2abff21bcbbb34af88d1c7656f3b729

14 years agoClean up comments in the test_quota.c source file.
drh [Wed, 1 Sep 2010 13:09:57 +0000 (13:09 +0000)] 
Clean up comments in the test_quota.c source file.

FossilOrigin-Name: c1eec7dba698e5bad0870cb80079203f0fb89514

14 years agoUpdate the quota shim so that when the same file is opened multiple times,
drh [Wed, 1 Sep 2010 12:50:54 +0000 (12:50 +0000)] 
Update the quota shim so that when the same file is opened multiple times,
its size only counts against the quota once.

FossilOrigin-Name: f5d263803084107389c5541face8d536b62fffe3

14 years agoAdd an assert() with an evidence mark to show that automatically
drh [Wed, 1 Sep 2010 11:50:08 +0000 (11:50 +0000)] 
Add an assert() with an evidence mark to show that automatically
generated rowids are positive.

FossilOrigin-Name: 740adca34e7fd309f0f761b8cc8581a9b7890793

14 years agoAdd file test_quota.c, demonstrating how file-system quotas may be implemented as...
dan [Wed, 1 Sep 2010 11:40:05 +0000 (11:40 +0000)] 
Add file test_quota.c, demonstrating how file-system quotas may be implemented as a VFS wrapper.

FossilOrigin-Name: 383eb87bbf560b20682dd5be0e18ddadf762f415

14 years agoFix some compiler warnings under MSVC.
shaneh [Wed, 1 Sep 2010 02:38:21 +0000 (02:38 +0000)] 
Fix some compiler warnings under MSVC.

FossilOrigin-Name: afdc82a99eba260aed8ae2cca4bcec629f384098

14 years agoEnsure randomly generated rowids never go negative.
shaneh [Wed, 1 Sep 2010 02:37:56 +0000 (02:37 +0000)] 
Ensure randomly generated rowids never go negative.

FossilOrigin-Name: 631423677bd7043e99987edc633005443125181c

14 years agoDo not clear the internal "schema has changed" flag when performing a savepoint rollb...
dan [Tue, 31 Aug 2010 16:25:19 +0000 (16:25 +0000)] 
Do not clear the internal "schema has changed" flag when performing a savepoint rollback. The schema changes may not have taken place within the savepoint being rolled back.

FossilOrigin-Name: c2a84430d3b6bb53b19af9294973575178290f93

14 years agoChanges to comments and type names in rtree.c.
dan [Tue, 31 Aug 2010 15:54:21 +0000 (15:54 +0000)] 
Changes to comments and type names in rtree.c.

FossilOrigin-Name: 7c4f80ad272138cd4ab30455fae6a36498362933

14 years agoFix a documentation typo reported on the mailing list.
drh [Tue, 31 Aug 2010 15:38:51 +0000 (15:38 +0000)] 
Fix a documentation typo reported on the mailing list.

FossilOrigin-Name: c9fe0a2392ba4ae53d1dfcb986a67beeeb33519f

14 years agoAdd evidence mark comments to source code. Add additional information to the
drh [Tue, 31 Aug 2010 15:27:32 +0000 (15:27 +0000)] 
Add evidence mark comments to source code.  Add additional information to the
documentation of sqlite3_release_memory().  Fix a minor inefficiency in mem1.c
that was discovered while writing requirements tests.

FossilOrigin-Name: 53b0c03fd33d2d8141fd386de5493fec64456042

14 years agoAdd the "circle" test geometry callback to test_rtree.c. And tests for the same.
dan [Tue, 31 Aug 2010 15:02:00 +0000 (15:02 +0000)] 
Add the "circle" test geometry callback to test_rtree.c. And tests for the same.

FossilOrigin-Name: 169b8ba4be9c3941c742eded80dbacdcd2465bc4

14 years agoRemove unreachable branches to facilitate test coverage.
drh [Tue, 31 Aug 2010 01:09:15 +0000 (01:09 +0000)] 
Remove unreachable branches to facilitate test coverage.

FossilOrigin-Name: 86bcb9aab901713684f978479d29304cc9699e84

14 years agoProvide hints to the btree layer during the creation of transient tables
drh [Mon, 30 Aug 2010 22:15:45 +0000 (22:15 +0000)] 
Provide hints to the btree layer during the creation of transient tables
when it is possible for those tables to use a hash rather than a binary tree.
No use is current made of those hints, though assert() statement verify
their accuracy.

FossilOrigin-Name: 4fead8e714c7e50a9d246467e62bc846ef6180a0

14 years agoWhen generating sqlite3.h, append the contents of sqlite3rtree.h.
dan [Mon, 30 Aug 2010 18:39:49 +0000 (18:39 +0000)] 
When generating sqlite3.h, append the contents of sqlite3rtree.h.

FossilOrigin-Name: fc4d75370bad9021d01b76dbb1b8dde9ff223d2c

14 years agoFix a problem in pagerfault.test uncovered by the previous change.
dan [Mon, 30 Aug 2010 16:15:54 +0000 (16:15 +0000)] 
Fix a problem in pagerfault.test uncovered by the previous change.

FossilOrigin-Name: b6719ce32892a38b9b3dff07decdd6e94c01b3e2

14 years agoAdd tests (and associated fixes) to restore coverage of rtree.c.
dan [Mon, 30 Aug 2010 15:43:45 +0000 (15:43 +0000)] 
Add tests (and associated fixes) to restore coverage of rtree.c.

FossilOrigin-Name: b06f4695bdab244d9c764c082cd434a764dc5c29

14 years agoRemove the sqlite3BtreeFactor() wrapper routine. All modules now call
drh [Mon, 30 Aug 2010 15:02:28 +0000 (15:02 +0000)] 
Remove the sqlite3BtreeFactor() wrapper routine.  All modules now call
sqlite3BtreeOpen() directly.

FossilOrigin-Name: 0900e35348f4b9bf327d6ae2884c4ddbb6345d8d

14 years agoAdd file sqlite3rtree.h.
dan [Mon, 30 Aug 2010 11:34:39 +0000 (11:34 +0000)] 
Add file sqlite3rtree.h.

FossilOrigin-Name: e1d9ffce0f84469eeb926f50030cb772de98a652

14 years agoUpdates to comments on the VDBE opcodes.
drh [Mon, 30 Aug 2010 01:17:20 +0000 (01:17 +0000)] 
Updates to comments on the VDBE opcodes.

FossilOrigin-Name: 49c05b4e08920797f3a5dd14c292e2275db61acb

14 years agoFix problem with func3.test.
dan [Sat, 28 Aug 2010 19:09:29 +0000 (19:09 +0000)] 
Fix problem with func3.test.

FossilOrigin-Name: aec52959d047d7c7b280319a8c84dc009d2cbf91

14 years agoAdd code to allow user-defined searches of r-tree tables. Still largely untested.
dan [Sat, 28 Aug 2010 18:58:00 +0000 (18:58 +0000)] 
Add code to allow user-defined searches of r-tree tables. Still largely untested.

FossilOrigin-Name: 782ca3b716ee1ecb0dfb5ab6f21dfd73d41758e4

14 years agoMake sqlite3_create_function() a special case of sqlite3_create_function_v2()
drh [Fri, 27 Aug 2010 18:44:54 +0000 (18:44 +0000)] 
Make sqlite3_create_function() a special case of sqlite3_create_function_v2()
in order reduce the number of code paths and simplify testing.

FossilOrigin-Name: 4758d86d57aaafc058c98c8b485eae24e6547588

14 years agoAdd the sqlite3_create_function_v2() API, a version of create_function that allows...
dan [Fri, 27 Aug 2010 17:48:52 +0000 (17:48 +0000)] 
Add the sqlite3_create_function_v2() API, a version of create_function that allows a destructor to be specified.

FossilOrigin-Name: 9a724dfbe822c77e76721abe3443c9cb018bb2e2

14 years agoRefactor the implementation of the scratch memory allocator. Add the
drh [Fri, 27 Aug 2010 17:16:44 +0000 (17:16 +0000)] 
Refactor the implementation of the scratch memory allocator.  Add the
SQLITE_TESTCTRL_SCRATCHMALLOC interface to facilitate testing.

FossilOrigin-Name: a3475ddfbe4526e6e0b334fd1376ee7c31508b80

14 years agoRemove unnecessary code from malloc.c. Enhance pcache1.c so that is tries
drh [Fri, 27 Aug 2010 12:21:06 +0000 (12:21 +0000)] 
Remove unnecessary code from malloc.c.  Enhance pcache1.c so that is tries
to reuse existing pages, rather than create new pages, when SQLite is under
memory pressure.  "Memory pressure" means that SQLITE_CONFIG_PAGECACHE memory
is nearly exhausted or sqlite3_soft_heap_limit() has been reached.

FossilOrigin-Name: 51049479a8577e03cc353f71f6e13a10c8323d91

14 years agoFurther tests for CAST in e_expr.test.
dan [Fri, 27 Aug 2010 11:19:55 +0000 (11:19 +0000)] 
Further tests for CAST in e_expr.test.

FossilOrigin-Name: 9616df8c47ababc2d148f0ab6286efa84bd990fb

14 years agoAdd tests for CAST expressions to e_expr.test. More to come.
dan [Thu, 26 Aug 2010 19:05:23 +0000 (19:05 +0000)] 
Add tests for CAST expressions to e_expr.test. More to come.

FossilOrigin-Name: ba6119d1e9300de9ce7448cfa0acd579e8e69e41

14 years agoAdd EXTERN macros before entry points in tclsqlite.c. This undoes the
drh [Thu, 26 Aug 2010 16:46:57 +0000 (16:46 +0000)] 
Add EXTERN macros before entry points in tclsqlite.c.  This undoes the
change [b4d3e0d528c7d17fa3d05] on [2006-03-06 23:30:52].

FossilOrigin-Name: 8b2cf9d492901a65942d0e0b87c568d1539deece

14 years agoFix a couple of memory leaks in r-tree that can occur following an OOM condition.
dan [Thu, 26 Aug 2010 14:15:37 +0000 (14:15 +0000)] 
Fix a couple of memory leaks in r-tree that can occur following an OOM condition.

FossilOrigin-Name: 1975a27cdec09e1dad4ca8281a87dd7754c02c3e

14 years agoRemove unreachable condition from rtree.c.
dan [Thu, 26 Aug 2010 11:27:22 +0000 (11:27 +0000)] 
Remove unreachable condition from rtree.c.

FossilOrigin-Name: 90f40cd36860d3af13ec24575dff7cc1f57ac493

14 years agoImprove coverage of rtree.c some more.
dan [Thu, 26 Aug 2010 07:59:10 +0000 (07:59 +0000)] 
Improve coverage of rtree.c some more.

FossilOrigin-Name: bee1959dde19ebec20a7ffcb732aee0c8bb2e67d

14 years agoSimplification of changes for SQLITE_OMIT_WAL support in pager.c.
shaneh [Thu, 26 Aug 2010 05:23:37 +0000 (05:23 +0000)] 
Simplification of changes for SQLITE_OMIT_WAL support in pager.c.

FossilOrigin-Name: afb2484c64bf0cdec8240b9ecd0a794c44a63066

14 years agoReinstate the "sqlite" alias for backwards compatibility (but leave
drh [Wed, 25 Aug 2010 20:35:51 +0000 (20:35 +0000)] 
Reinstate the "sqlite" alias for backwards compatibility (but leave
it undocumented) but remove the PackageProvide for "sqlite".

FossilOrigin-Name: 699cc6b48774be111f2e076cc1920ae79497dcea

14 years agoDisable the legacy "sqlite" command in the TCL interface. Provide only
drh [Wed, 25 Aug 2010 19:39:19 +0000 (19:39 +0000)] 
Disable the legacy "sqlite" command in the TCL interface.  Provide only
the "sqlite3" command.

FossilOrigin-Name: 909b3d8862aeae04611969f5fc27d32a82026767

14 years agoFurther test coverage improvements for rtree.c.
dan [Wed, 25 Aug 2010 19:04:38 +0000 (19:04 +0000)] 
Further test coverage improvements for rtree.c.

FossilOrigin-Name: 05f6c1aebbe757dd3b54fd027057b9db7ae3a990

14 years agoTest cases to improve coverage of rtree module. Fixes associated with the same.
dan [Wed, 25 Aug 2010 17:53:17 +0000 (17:53 +0000)] 
Test cases to improve coverage of rtree module. Fixes associated with the same.

FossilOrigin-Name: 865cec04e4d814f63fb71feb67de7f06f8d54035

14 years agoReplicate asserts on unixOpen() to winOpen() in os_win.c.
shaneh [Tue, 24 Aug 2010 20:46:53 +0000 (20:46 +0000)] 
Replicate asserts on unixOpen() to winOpen() in os_win.c.

FossilOrigin-Name: 40526d8390896ccb883c45afa70e7adb568d174f

14 years agoChanges to support building with SQLITE_OMIT_WAL.
shaneh [Tue, 24 Aug 2010 18:35:12 +0000 (18:35 +0000)] 
Changes to support building with SQLITE_OMIT_WAL.

FossilOrigin-Name: d1ed743b6ed07ad0ee7d466932c5a83caa9489ee

14 years agoChange sqlite3_open_v2() to return SQLITE_MISUSE if the combination of bits
drh [Tue, 24 Aug 2010 18:07:57 +0000 (18:07 +0000)] 
Change sqlite3_open_v2() to return SQLITE_MISUSE if the combination of bits
in the flags parameter is invalid.  The documentation says the behavior in
this situation is undefined - the documentation is unaltered by this code
change.

FossilOrigin-Name: 5e8101c5122336844ea920e6fbdace23e35b931f

14 years agoComment enhancements and typo fixes in pcache1.c.
drh [Tue, 24 Aug 2010 18:06:35 +0000 (18:06 +0000)] 
Comment enhancements and typo fixes in pcache1.c.

FossilOrigin-Name: c2dc39c0c4673a39f5fe6e643acb3bcf4ca22265