]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
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

14 years agoFixes to allow fts3 tables to be renamed mid-transaction.
dan [Tue, 24 Aug 2010 16:59:47 +0000 (16:59 +0000)] 
Fixes to allow fts3 tables to be renamed mid-transaction.

FossilOrigin-Name: d1c875320a045c3938c765ceb543dfba1a0ecf0b

14 years agoAdd tests to e_expr.test.
dan [Tue, 24 Aug 2010 13:11:52 +0000 (13:11 +0000)] 
Add tests to e_expr.test.

FossilOrigin-Name: 5c1c694ee1b3b71e20089412f6cba1847dc7f958

14 years agoThe R-tree module should not assume that its shadow tables are consistent.
drh [Tue, 24 Aug 2010 01:49:47 +0000 (01:49 +0000)] 
The R-tree module should not assume that its shadow tables are consistent.
If a problem is found in a shadow table, return SQLITE_CORRUPT.

FossilOrigin-Name: 7f2f71cc9e3c39093f09231f448576cff6afb5fe

14 years agoVersion 3.7.2 release candidate 1 version-3.7.2
drh [Mon, 23 Aug 2010 18:52:01 +0000 (18:52 +0000)] 
Version 3.7.2 release candidate 1

FossilOrigin-Name: 42537b60566f288167f1b5864a5435986838e3a3

14 years agoFixes for the SQLITE_CHECK_PAGES debugging feature.
dan [Mon, 23 Aug 2010 18:19:31 +0000 (18:19 +0000)] 
Fixes for the SQLITE_CHECK_PAGES debugging feature.

FossilOrigin-Name: 21a1e5961bba148fda50cc0b7d472ca74f90808a

14 years agoUpdate the version number in preparation for the 3.7.2 release.
drh [Mon, 23 Aug 2010 17:09:23 +0000 (17:09 +0000)] 
Update the version number in preparation for the 3.7.2 release.

FossilOrigin-Name: 77889510fa67268043c604826047af81c8bd1ca7

14 years agoFix for ticket [5e10420e8d].
dan [Mon, 23 Aug 2010 15:41:24 +0000 (15:41 +0000)] 
Fix for ticket [5e10420e8d].

FossilOrigin-Name: 255f1eefa373153942c67b18b22177933657911d

14 years agoUpdate the "showdb" debug utility to handle 64K page database and with
drh [Mon, 23 Aug 2010 15:26:49 +0000 (15:26 +0000)] 
Update the "showdb" debug utility to handle 64K page database and with
extra options to decode the freelist structure.

FossilOrigin-Name: 1070918e3b68c0ba5bfab11a97214b87c601f93c

14 years agoVersion 3.7.1 release candidate
drh [Sat, 21 Aug 2010 16:01:46 +0000 (16:01 +0000)] 
Version 3.7.1 release candidate

FossilOrigin-Name: 3613b0695a5e990905ab146fadcab34dd04d5874

14 years agoAdd some tests to e_expr.test and pagerfault.test. No code changes.
dan [Sat, 21 Aug 2010 15:51:05 +0000 (15:51 +0000)] 
Add some tests to e_expr.test and pagerfault.test. No code changes.

FossilOrigin-Name: 44de3cab9c89eb28485c0dc36d791b1c61d56b34

14 years agoFix the ptrmapPageno() routine so that it works correctly for an input of 1.
drh [Sat, 21 Aug 2010 15:09:37 +0000 (15:09 +0000)] 
Fix the ptrmapPageno() routine so that it works correctly for an input of 1.

FossilOrigin-Name: 699a9bf28377f43f58c509878cce60cb906dbf48

14 years agoDo not allow a backup to change the page size if a codec is in use.
drh [Fri, 20 Aug 2010 15:32:21 +0000 (15:32 +0000)] 
Do not allow a backup to change the page size if a codec is in use.

FossilOrigin-Name: 5523ecd32295c188e3bf5dbd57d92d2879461e32

14 years agoFix typo in backcompat.test.
dan [Fri, 20 Aug 2010 12:43:01 +0000 (12:43 +0000)] 
Fix typo in backcompat.test.

FossilOrigin-Name: 6a0cbb272c3f0c1dfdeed381ba92f2f2f16ae824

14 years agoMerge leaf created by accident.
dan [Fri, 20 Aug 2010 12:33:59 +0000 (12:33 +0000)] 
Merge leaf created by accident.

FossilOrigin-Name: 1f680cb37584baa106cee0544d5be63049d55858

14 years agoAvoid assuming that the user has "." in their path when running multi-process tests.
dan [Fri, 20 Aug 2010 12:31:30 +0000 (12:31 +0000)] 
Avoid assuming that the user has "." in their path when running multi-process tests.

FossilOrigin-Name: daa5d461b98fc068cbba52d338ca8690edd27bc9

14 years agoDo not attempt run backwards compatibility tests if no historical
drh [Fri, 20 Aug 2010 10:28:28 +0000 (10:28 +0000)] 
Do not attempt run backwards compatibility tests if no historical
"testfixture" binaries are available.

FossilOrigin-Name: 40e11aabc7668e1c9db43d9183edb445996254bd

14 years agoDisable the MEMSYS2 auxiliary routines if MEMSYS2 is changed to an alternative
drh [Fri, 20 Aug 2010 09:53:19 +0000 (09:53 +0000)] 
Disable the MEMSYS2 auxiliary routines if MEMSYS2 is changed to an alternative
memory allocator using SQLITE_CONFIG_MALLOC.

FossilOrigin-Name: 541dd3b870f123a5fddf0b710474693566a1d659

14 years agoFix the sqlite3_release_memory() interface so that it does not attempt
drh [Fri, 20 Aug 2010 09:14:13 +0000 (09:14 +0000)] 
Fix the sqlite3_release_memory() interface so that it does not attempt
to free SQLITE_CONFIG_PAGECACHE memory.

FossilOrigin-Name: 0426cd62d5ef2bd09570835c78f8fc3bcb7cdd49

14 years agoAdjust filename globbing in backcompat.test for Windows.
shaneh [Thu, 19 Aug 2010 18:05:46 +0000 (18:05 +0000)] 
Adjust filename globbing in backcompat.test for Windows.

FossilOrigin-Name: b0f4796306a2cb11d6897d5c33f5da05c7473e07

14 years agoFix backcompat.test so that it works with windows mandatory locking.
dan [Thu, 19 Aug 2010 17:16:11 +0000 (17:16 +0000)] 
Fix backcompat.test so that it works with windows mandatory locking.

FossilOrigin-Name: 8d05f66db7d6e8b8916fcf22fa92159d863d2610

14 years agoAdd tests for WAL mode to test/backcompat.test.
dan [Thu, 19 Aug 2010 15:48:47 +0000 (15:48 +0000)] 
Add tests for WAL mode to test/backcompat.test.

FossilOrigin-Name: 7999910e85b1f24c5860425ba47e7ab10c22e887

14 years agoMerge two leaves.
dan [Thu, 19 Aug 2010 15:12:54 +0000 (15:12 +0000)] 
Merge two leaves.

FossilOrigin-Name: b03091fc3592896fcf1ec563ae9682a8e0a05baa

14 years agoModify the code for reading hot-journal files so that it can handle journals generate...
dan [Thu, 19 Aug 2010 15:11:34 +0000 (15:11 +0000)] 
Modify the code for reading hot-journal files so that it can handle journals generated by versions 3.5.7 and earlier.

FossilOrigin-Name: b9170f2903c480bca2bdc986e98aaeadfdb9ad2b

14 years agoFix typo in TCL stubs support for configure in Makefile.in
shaneh [Thu, 19 Aug 2010 14:41:58 +0000 (14:41 +0000)] 
Fix typo in TCL stubs support for configure in Makefile.in

FossilOrigin-Name: 4c7ad73d22b7e8c90955730c2dbb79ed53cd750b

14 years agoRemove a NEVER from balance_quick() that can occur in WAL mode on
drh [Thu, 19 Aug 2010 14:22:42 +0000 (14:22 +0000)] 
Remove a NEVER from balance_quick() that can occur in WAL mode on
a corrupt database file.

FossilOrigin-Name: b273891ab05a18b68a76c870ea3be9f1a56c40a9

14 years agoAdd new test script backcompat.test, for testing database/journal/wal file compatibil...
dan [Thu, 19 Aug 2010 11:05:53 +0000 (11:05 +0000)] 
Add new test script backcompat.test, for testing database/journal/wal file compatibility against previous versions.

FossilOrigin-Name: 8804f4989d157707911488781109ce0641c0ad0b

14 years agoFix two asserts in the btree logic so that they work correctly even for
drh [Wed, 18 Aug 2010 21:19:03 +0000 (21:19 +0000)] 
Fix two asserts in the btree logic so that they work correctly even for
maximum-size index entries for 32K and 64K pages.

FossilOrigin-Name: e127192d106bd7e036caacf01bf7725eeaa85dbe

14 years agoUpdated tests for CLI. Added some basic tests for the .import command.
shaneh [Wed, 18 Aug 2010 17:16:26 +0000 (17:16 +0000)] 
Updated tests for CLI.  Added some basic tests for the .import command.

FossilOrigin-Name: d46567e5d75a2b9fe96d2a7a30708b2827a0d490

14 years agoDisable the SQLITE_MAX_PAGE_SIZE compile time option (it is now always set to 65536...
dan [Wed, 18 Aug 2010 15:25:17 +0000 (15:25 +0000)] 
Disable the SQLITE_MAX_PAGE_SIZE compile time option (it is now always set to 65536). Fix some other problems in test files.

FossilOrigin-Name: 56cc883d3af5574c9dafecef8aa96d1d05c01b83

14 years agoFix issue with wal.test on Windows.
shaneh [Wed, 18 Aug 2010 14:54:03 +0000 (14:54 +0000)] 
Fix issue with wal.test on Windows.

FossilOrigin-Name: 3497f54ac2f85746c50fe6f94380a22033f2464b

14 years agoFix some compiler warnings in the MSVC build.
shaneh [Wed, 18 Aug 2010 02:28:48 +0000 (02:28 +0000)] 
Fix some compiler warnings in the MSVC build.

FossilOrigin-Name: 1f5662b7db5d623c8d99c45a8d97a0aa4427593f

14 years agoRemove a NEVER() that is actually reachable.
drh [Tue, 17 Aug 2010 19:49:14 +0000 (19:49 +0000)] 
Remove a NEVER() that is actually reachable.

FossilOrigin-Name: acb171d4cfef2fec8833f761019f5c81f0d138a0

14 years agoSuppress harmless compiler warning.
drh [Tue, 17 Aug 2010 19:40:08 +0000 (19:40 +0000)] 
Suppress harmless compiler warning.

FossilOrigin-Name: 3f8c068a41b01f59d7f5d56f3bced78587f4d26c

14 years agoReturn an error when parsing "?NNN" if NNN is so large it cannot be stored as a 32...
dan [Tue, 17 Aug 2010 19:34:13 +0000 (19:34 +0000)] 
Return an error when parsing "?NNN" if NNN is so large it cannot be stored as a 32-bit int.

FossilOrigin-Name: fc9014be0f00d046e7ba830a644f9ce93eca5db8

14 years agoIt is no longer possible to reach pagerStress() while in the error state,
drh [Tue, 17 Aug 2010 18:37:12 +0000 (18:37 +0000)] 
It is no longer possible to reach pagerStress() while in the error state,
so put a NEVER() around the error state test of that routine.

FossilOrigin-Name: d7ed463496c4474cc435d032874a4e55d780e74a

14 years agoIf an SQLITE_FULL error occurs during rollback or journal finalization, treat it...
dan [Tue, 17 Aug 2010 18:15:48 +0000 (18:15 +0000)] 
If an SQLITE_FULL error occurs during rollback or journal finalization, treat it in the same way as SQLITE_IOERR (i.e. require that the pager internals be completely reset before it is next read from or written to).

FossilOrigin-Name: 8ac185236e766becdac7248c1ba3dfa42a9464b1

14 years agoChanges to pager for improved testability.
drh [Tue, 17 Aug 2010 17:25:15 +0000 (17:25 +0000)] 
Changes to pager for improved testability.

FossilOrigin-Name: 61c64b3aeb027fcc9c25591d6b9048ac7850ad3d

14 years agoAdd tests for the BETWEEN operator to e_expr.test.
dan [Tue, 17 Aug 2010 16:06:08 +0000 (16:06 +0000)] 
Add tests for the BETWEEN operator to e_expr.test.

FossilOrigin-Name: ced6a3480fe4a8e2b93160a8419bdc3ab30935e8

14 years agoInvoke sqlite3_log() whenever one or more frames are recovered from a WAL file.
dan [Tue, 17 Aug 2010 14:52:22 +0000 (14:52 +0000)] 
Invoke sqlite3_log() whenever one or more frames are recovered from a WAL file.

FossilOrigin-Name: e05089aaefe02ec59a1923812349471a78075d29

14 years agoFix some non-ANSI C code in test_demovfs.c. Also change the same file so that attempt...
dan [Tue, 17 Aug 2010 05:55:35 +0000 (05:55 +0000)] 
Fix some non-ANSI C code in test_demovfs.c. Also change the same file so that attempting to delete a file that does not exist does not return an error.

FossilOrigin-Name: 07570ce38051a05d6e8a71e39766850f6719ac07

14 years agoRemove an superfluous branch from pager.c.
drh [Mon, 16 Aug 2010 20:02:09 +0000 (20:02 +0000)] 
Remove an superfluous branch from pager.c.

FossilOrigin-Name: 4271a95c8236bda4a4f8c02bf3a3560de1d00402

14 years agoAdd tests for different page sizes to wal.test. Including 64K pages.
dan [Mon, 16 Aug 2010 19:23:02 +0000 (19:23 +0000)] 
Add tests for different page sizes to wal.test. Including 64K pages.

FossilOrigin-Name: d95bcc052910cfd4848afe0d32f717506ad5a789

14 years agoAdd test cases designed to exercise all syntax diagram paths in lang_expr.html
dan [Mon, 16 Aug 2010 18:26:30 +0000 (18:26 +0000)] 
Add test cases designed to exercise all syntax diagram paths in lang_expr.html

FossilOrigin-Name: d4a26bb629bc739a4bca16b5a876199aa9ecda43

14 years agoFix a typo in a comment in wal.c. No code changes.
drh [Mon, 16 Aug 2010 16:31:43 +0000 (16:31 +0000)] 
Fix a typo in a comment in wal.c.  No code changes.

FossilOrigin-Name: d854a3d41c68f785c909c159cd9ca2154c64001a

14 years agoAdd ALWAYS() macros in wal.c to cover branches that are no longer reachable
drh [Mon, 16 Aug 2010 14:17:59 +0000 (14:17 +0000)] 
Add ALWAYS() macros in wal.c to cover branches that are no longer reachable
following the pager refactoring.

FossilOrigin-Name: 24f24c927c77bb3bb4d26a23dd5d94f964db8033

14 years agoAdjustments for better 64K page size handling.
drh [Sat, 14 Aug 2010 21:21:24 +0000 (21:21 +0000)] 
Adjustments for better 64K page size handling.

FossilOrigin-Name: faf1974e2de321bfefb68b81d702ae69771933ef

14 years agoAdd test case to e_expr.test.
dan [Sat, 14 Aug 2010 18:32:23 +0000 (18:32 +0000)] 
Add test case to e_expr.test.

FossilOrigin-Name: db9539f2ceabd3c5a3eb5d4701f80f4e7da9344d

14 years agoChange sqlite3PagerPagecount() to return void, since the return value was
drh [Sat, 14 Aug 2010 17:12:04 +0000 (17:12 +0000)] 
Change sqlite3PagerPagecount() to return void, since the return value was
always SQLITE_OK and was never used.

FossilOrigin-Name: 7dd78eb7974ec7c40af3fcf2b125ca5bc0766b5c

14 years agoMinor simplifications to btree.c in support of full-coverage testing.
drh [Sat, 14 Aug 2010 16:02:52 +0000 (16:02 +0000)] 
Minor simplifications to btree.c in support of full-coverage testing.

FossilOrigin-Name: 364df6c7735447cc2187923918a35bf62d82decc

14 years agoTweaks to comments in pager.c. Fix two compiler warnings.
drh [Sat, 14 Aug 2010 12:42:45 +0000 (12:42 +0000)] 
Tweaks to comments in pager.c.  Fix two compiler warnings.

FossilOrigin-Name: 68a49f7fe382e4d36e1259cdeec956c942906ddb

14 years agoAdd test cases to e_expr.test.
dan [Sat, 14 Aug 2010 12:25:18 +0000 (12:25 +0000)] 
Add test cases to e_expr.test.

FossilOrigin-Name: d8bbab78fa56b076dfafb36daa7d6ef0b07f9a44

14 years agoTest that it is possible to drop a trigger while there are active statements belongin...
dan [Sat, 14 Aug 2010 05:04:47 +0000 (05:04 +0000)] 
Test that it is possible to drop a trigger while there are active statements belonging to the same connection.

FossilOrigin-Name: d4ec61e2547200aa92a26c1f270682ed67edc241

14 years agoAdd tests to test file e_expr.test.
dan [Fri, 13 Aug 2010 18:41:09 +0000 (18:41 +0000)] 
Add tests to test file e_expr.test.

FossilOrigin-Name: 3fd1059e25a8d0cccbb30fc55b03d172bd9eb9b7

14 years agoDo not apply the flattening optimization if the sub-query is DISTINCT. Fix for [e4b8a...
dan [Fri, 13 Aug 2010 16:38:48 +0000 (16:38 +0000)] 
Do not apply the flattening optimization if the sub-query is DISTINCT. Fix for [e4b8a2ba6e].

FossilOrigin-Name: 497aafd8ed6a636a8bd5fa2cad265a20593ee34f

14 years agoIf an error occurs in PagerSetPagesize(), set the output variable to the unmodified...
dan [Thu, 12 Aug 2010 16:36:34 +0000 (16:36 +0000)] 
If an error occurs in PagerSetPagesize(), set the output variable to the unmodified page-size before returning.

FossilOrigin-Name: 02def8f92588b8a45dff3976d1e7f9e3f0359b3b

14 years agoAdd coverage tests for pager.c.
dan [Thu, 12 Aug 2010 11:25:47 +0000 (11:25 +0000)] 
Add coverage tests for pager.c.

FossilOrigin-Name: 228c5b16af80c22e97d9d4deb351e0d3f4523f89

14 years agoIncrease the maximum page size from 32k to 64k.
drh [Thu, 12 Aug 2010 02:41:12 +0000 (02:41 +0000)] 
Increase the maximum page size from 32k to 64k.

FossilOrigin-Name: 45362437d491fbe0f033a67b398f8ba68cbf1b3b

14 years agoImprove coverage of pager.c.
dan [Wed, 11 Aug 2010 18:56:45 +0000 (18:56 +0000)] 
Improve coverage of pager.c.

FossilOrigin-Name: 2fa05d01b6b11788a5b73d203fcac9d4a4ba9fd8

14 years agoUpdate an r-tree extension test case to account for recent changes to the query plann...
dan [Wed, 11 Aug 2010 12:26:46 +0000 (12:26 +0000)] 
Update an r-tree extension test case to account for recent changes to the query planner. Also fix a comment in rtree.c.

FossilOrigin-Name: eaaca669a4afc83906806b22365b010c83bc3db8

14 years agoUse sqlite3DbFree() instead of sqlite3_free() to free any error message reported...
dan [Wed, 11 Aug 2010 11:59:37 +0000 (11:59 +0000)] 
Use sqlite3DbFree() instead of sqlite3_free() to free any error message reported by the parser layer while attempting to parse a CREATE TABLE statement passed to sqlite3_declare_vtab().

FossilOrigin-Name: 7c674aaba52b00a78babc1e1ece7e5b652b65039

14 years agoFixes to tcl test files so that they work in auto-vacuum mode.
dan [Wed, 11 Aug 2010 11:35:50 +0000 (11:35 +0000)] 
Fixes to tcl test files so that they work in auto-vacuum mode.

FossilOrigin-Name: ea9eaf7480f6fbe2a37813508d1b730d45155966

14 years agoFix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.
drh [Wed, 11 Aug 2010 06:14:15 +0000 (06:14 +0000)] 
Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.

FossilOrigin-Name: f854cbe06355dd3455b8af4ad6366949c412434e

14 years agoMerge experimental changes into trunk.
dan [Wed, 11 Aug 2010 06:04:19 +0000 (06:04 +0000)] 
Merge experimental changes into trunk.

FossilOrigin-Name: aa092ac928dc19bd356d25a1dfd3f432dc145ce6

14 years agoFix a bug in pager.c causing it to omit the xSync() call required following a hot...
dan [Tue, 10 Aug 2010 15:46:06 +0000 (15:46 +0000)] 
Fix a bug in pager.c causing it to omit the xSync() call required following a hot-journal rollback.

FossilOrigin-Name: 42ba43ac690dc800fb8b969ae257a79942918342

14 years agoAdd variable pager.dbHintSize, used to limit the number of calls made to the xFileCon...
dan [Tue, 10 Aug 2010 09:58:57 +0000 (09:58 +0000)] 
Add variable pager.dbHintSize, used to limit the number of calls made to the xFileControl(FCNTL_SIZE_HINT) method.

FossilOrigin-Name: eb3ac895bd92c880ac6acca58de8cf9643c2b5e4

14 years agoChanges to debugging code in mutex_unix.c and mutex_w32.c to make an assert() stateme...
dan [Tue, 10 Aug 2010 07:12:26 +0000 (07:12 +0000)] 
Changes to debugging code in mutex_unix.c and mutex_w32.c to make an assert() statement threadsafe.

FossilOrigin-Name: e82e32bd431ccacd276df8241592eb5519d87122

14 years agoModify some comments in pager.c.
dan [Mon, 9 Aug 2010 19:17:29 +0000 (19:17 +0000)] 
Modify some comments in pager.c.

FossilOrigin-Name: 5662da6d4f648e5d07d7cbea6bbd92fa684c02c9