]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
17 years agoSeparate verbs of sqlite3_config() and sqlite3_db_config() into their
drh [Mon, 4 Aug 2008 20:13:26 +0000 (20:13 +0000)] 
Separate verbs of sqlite3_config() and sqlite3_db_config() into their
own namespaces.  Allow SQLITE3_DBCONFIG_LOOKASIDE to specific an external
memory buffer. (CVS 5536)

FossilOrigin-Name: 5dd865da5e787c10ef4c9e96647724bfab9dea01

17 years agoModify the configure script to avoid using the += operator. Not all shells support...
danielk1977 [Mon, 4 Aug 2008 14:50:05 +0000 (14:50 +0000)] 
Modify the configure script to avoid using the += operator. Not all shells support it. (CVS 5535)

FossilOrigin-Name: f167b2745d491a1adb2b6c869b2169cd6fa53af8

17 years agoEnhanced markings for experimental and deprecated interfaces. (CVS 5534)
drh [Mon, 4 Aug 2008 13:44:57 +0000 (13:44 +0000)] 
Enhanced markings for experimental and deprecated interfaces. (CVS 5534)

FossilOrigin-Name: 7e6ec5d53d9e002848fa437ec21bf009798a9a3b

17 years agoMake it easier to build with the icu extension enabled. Include icu.c in the amalgama...
danielk1977 [Mon, 4 Aug 2008 11:49:20 +0000 (11:49 +0000)] 
Make it easier to build with the icu extension enabled. Include icu.c in the amalgamation source. Ticket #3245. (CVS 5533)

FossilOrigin-Name: e42ff97ba7d9fcda699a63fc8bc609d559498180

17 years agoAdd an assert() statement that will alert us if the potential problem identified...
danielk1977 [Mon, 4 Aug 2008 04:39:48 +0000 (04:39 +0000)] 
Add an assert() statement that will alert us if the potential problem identified by #3243 ever becomes a reality. (CVS 5532)

FossilOrigin-Name: 34208f0ba420ca6bef16991eba200d5ed68d5430

17 years agoAdd the pkgconfigdir variable to Makefile.in. Ticket #3242. (CVS 5531)
danielk1977 [Mon, 4 Aug 2008 04:28:18 +0000 (04:28 +0000)] 
Add the pkgconfigdir variable to Makefile.in. Ticket #3242. (CVS 5531)

FossilOrigin-Name: 540c9d4c0daf9ddf07c95bb3eb9f294a2dd0285d

17 years agoFix (make test) with SQLITE_OMIT_COMPOUND_SELECT. Ticket #3235. (CVS 5530)
danielk1977 [Mon, 4 Aug 2008 03:51:24 +0000 (03:51 +0000)] 
Fix (make test) with SQLITE_OMIT_COMPOUND_SELECT. Ticket #3235. (CVS 5530)

FossilOrigin-Name: 9ca975c8fdeaae7d5af8fe62e097d8d251362cfe

17 years agoremoved some extraneous blank lines. made sure to use only LF line endings. (CVS...
shane [Mon, 4 Aug 2008 01:46:55 +0000 (01:46 +0000)] 
removed some extraneous blank lines.  made sure to use only LF line endings. (CVS 5529)

FossilOrigin-Name: 358bd6609ebffa293a9a98fae14924b8162332d8

17 years agoTest scripts revised to work when auto_vacuum defaults on. (CVS 5528)
drh [Sat, 2 Aug 2008 20:09:36 +0000 (20:09 +0000)] 
Test scripts revised to work when auto_vacuum defaults on. (CVS 5528)

FossilOrigin-Name: e63186b0b6defce9ce16b3c334887c1f5a0bfcf0

17 years agoFix a reference count leak introduced by (5526). (CVS 5527)
danielk1977 [Sat, 2 Aug 2008 17:36:45 +0000 (17:36 +0000)] 
Fix a reference count leak introduced by (5526). (CVS 5527)

FossilOrigin-Name: f653995c32197cacbcd14ea9e876ba5b2fde94df

17 years agoAvoid doing IO purely to check assert() constraints. (CVS 5526)
danielk1977 [Sat, 2 Aug 2008 17:03:31 +0000 (17:03 +0000)] 
Avoid doing IO purely to check assert() constraints. (CVS 5526)

FossilOrigin-Name: fb26ae723959390a716f221af93c6c29eec16955

17 years agoFix a bug introduced by (5519) causing builds with SQLITE_OMIT_VIRTUALTABLE to malfun...
danielk1977 [Sat, 2 Aug 2008 15:32:39 +0000 (15:32 +0000)] 
Fix a bug introduced by (5519) causing builds with SQLITE_OMIT_VIRTUALTABLE to malfunction. (CVS 5525)

FossilOrigin-Name: 761e73ceab77f965d58546ecf493f65cf52456fc

17 years agoIncrease the ref-count on the sqlite3_vtab structure before calling either the xNext...
danielk1977 [Sat, 2 Aug 2008 15:10:08 +0000 (15:10 +0000)] 
Increase the ref-count on the sqlite3_vtab structure before calling either the xNext or xFilter methods. (CVS 5524)

FossilOrigin-Name: 6e41455f2c7ee57c60578541040631b899e1481f

17 years agoAdditional coverage testing. Fix a segfault following OOM in
drh [Sat, 2 Aug 2008 03:50:39 +0000 (03:50 +0000)] 
Additional coverage testing.  Fix a segfault following OOM in
sqltie3_load_extension(). (CVS 5523)

FossilOrigin-Name: f1e44eb323f05495cbae25113aebcc50d16b40df

17 years agoBring test coverage up to 99%. (CVS 5522)
drh [Fri, 1 Aug 2008 20:10:08 +0000 (20:10 +0000)] 
Bring test coverage up to 99%. (CVS 5522)

FossilOrigin-Name: 2cd6bae80984126023bcf479e5f3db5eaa5c4134

17 years agoFix problems in test scripts. Add new test cases to improve test coverage. (CVS...
drh [Fri, 1 Aug 2008 18:47:01 +0000 (18:47 +0000)] 
Fix problems in test scripts.  Add new test cases to improve test coverage. (CVS 5521)

FossilOrigin-Name: b65f493c7519e8a5ee632a395b57d45269741dda

17 years agoAlso test that setting sqlite3_vtab.zErrMsg works from within the xRename method...
danielk1977 [Fri, 1 Aug 2008 17:51:47 +0000 (17:51 +0000)] 
Also test that setting sqlite3_vtab.zErrMsg works from within the xRename method. (CVS 5520)

FossilOrigin-Name: 4f4a9ccae7d25b9856d1203f6b289d552c2b425e

17 years agoTest that virtual table methods xBestIndex, xOpen, xFilter, xNext, xColumn, xRowid...
danielk1977 [Fri, 1 Aug 2008 17:37:40 +0000 (17:37 +0000)] 
Test that virtual table methods xBestIndex, xOpen, xFilter, xNext, xColumn, xRowid, xUpdate, xSync and xBegin can all return error messages using the sqlite3_vtab.zErrMsg variable. (CVS 5519)

FossilOrigin-Name: 007359b770f225877880b11f4c5d97bb548e38ca

17 years agoTest cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)
drh [Fri, 1 Aug 2008 16:31:14 +0000 (16:31 +0000)] 
Test cases for sqlite3_db_config() and sqlite3_db_status(). (CVS 5518)

FossilOrigin-Name: 6a6b94302acdfe6404b04bff1cc8d16c1ef69df9

17 years agoAdd a permutation test case for running all OOM tests with lookaside
drh [Fri, 1 Aug 2008 15:06:30 +0000 (15:06 +0000)] 
Add a permutation test case for running all OOM tests with lookaside
disabled. (CVS 5517)

FossilOrigin-Name: 3f70e03ae83d374f5f69770bd7a4b279584f7090

17 years agoApplied patch to fix failure with build on gcc-powerpc (provide sqlite3Hwtime). Ticke...
shane [Fri, 1 Aug 2008 14:33:15 +0000 (14:33 +0000)] 
Applied patch to fix failure with build on gcc-powerpc (provide sqlite3Hwtime). Ticket #3256. (CVS 5516)

FossilOrigin-Name: c9ecd88e273aee56b4af5b69fae94e1f98d3e43d

17 years agoIf xAccess() fails while attempting to detect a hot-journal file, do not assume that...
danielk1977 [Fri, 1 Aug 2008 10:50:23 +0000 (10:50 +0000)] 
If xAccess() fails while attempting to detect a hot-journal file, do not assume that the error was an out-of-memory condition. (CVS 5515)

FossilOrigin-Name: 70f20425e8197bce74b412f65050d954acb5bde4

17 years agoDefine _GNU_SOURCE only if it is not already defined. Ticket #3263. (CVS 5514)
drh [Thu, 31 Jul 2008 17:35:45 +0000 (17:35 +0000)] 
Define _GNU_SOURCE only if it is not already defined.  Ticket #3263. (CVS 5514)

FossilOrigin-Name: bc5abd31a7b5bc656edbb54c1c4523549d888056

17 years agoUpdate the memsubsys1 test script to take into account the buffer size
drh [Thu, 31 Jul 2008 17:20:58 +0000 (17:20 +0000)] 
Update the memsubsys1 test script to take into account the buffer size
changes of the previous check-in. (CVS 5513)

FossilOrigin-Name: d43ff7bb8fc59c54b85658aaeb3dd088a324276f

17 years agoChange the definition of SQLITE_CONFIG_PAGECACHE and
drh [Thu, 31 Jul 2008 17:16:05 +0000 (17:16 +0000)] 
Change the definition of SQLITE_CONFIG_PAGECACHE and
SQLITE_CONFIG_SCRATCH to omit the magic "+4" in the buffer size
calculation. (CVS 5512)

FossilOrigin-Name: e7ed0fe640a39053009eac52a7f055b121750e57

17 years agoDocumentation updates. (CVS 5511)
drh [Thu, 31 Jul 2008 14:47:54 +0000 (14:47 +0000)] 
Documentation updates. (CVS 5511)

FossilOrigin-Name: e7fdd813ccdefab33aedbcf7f44e13b935dd3299

17 years agoUpdated omittest.tcl. Updated OMIT list. Updated for Windows. (CVS 5510)
shane [Thu, 31 Jul 2008 02:43:34 +0000 (02:43 +0000)] 
Updated omittest.tcl.  Updated OMIT list. Updated for Windows. (CVS 5510)

FossilOrigin-Name: f94239933e6f93d9780178b6f9a6b14ca791716a

17 years agoOmit calls to test_get_table_printf() if SQLITE_OMIT_GET_TABLE defined. (CVS 5509)
shane [Thu, 31 Jul 2008 02:05:04 +0000 (02:05 +0000)] 
Omit calls to test_get_table_printf() if SQLITE_OMIT_GET_TABLE defined. (CVS 5509)

FossilOrigin-Name: 524a4075ddaecb07469da717e8afebc91240616e

17 years agoOmit calls to test_destructor16() if SQLITE_OMIT_UTF16 defined. (CVS 5508)
shane [Thu, 31 Jul 2008 01:47:11 +0000 (01:47 +0000)] 
Omit calls to test_destructor16() if SQLITE_OMIT_UTF16 defined. (CVS 5508)

FossilOrigin-Name: 2d5cec53c2f31875d198d81ac4fd54e7066ea0ff

17 years agoFixed comment to use right function names for sqlite3VdbeSerialPut() and sqlite3VdbeS...
shane [Thu, 31 Jul 2008 01:43:13 +0000 (01:43 +0000)] 
Fixed comment to use right function names for sqlite3VdbeSerialPut() and sqlite3VdbeSerialGet(). (CVS 5507)

FossilOrigin-Name: 820c37ec5290d7f0030438da29b30c33400fd4e3

17 years agoOmit calls to sqlite3Pragma() if SQLITE_OMIT_PARSER defined. Not technically needed...
shane [Thu, 31 Jul 2008 01:40:42 +0000 (01:40 +0000)] 
Omit calls to sqlite3Pragma() if SQLITE_OMIT_PARSER defined.  Not technically needed, as the entire generated parse.c file should not be included. (CVS 5506)

FossilOrigin-Name: 10e0450896a8b92b160f2e670e8d5a909c1c67ba

17 years agoImproved retry logic for winDelete() when in "pending delete" state. (CVS 5505)
shane [Thu, 31 Jul 2008 01:34:34 +0000 (01:34 +0000)] 
Improved retry logic for winDelete() when in "pending delete" state. (CVS 5505)

FossilOrigin-Name: 03a7973477b419d21c3b2925aa90efb05ff64ef9

17 years agoWhen opening a zero-size database on unix, write one byte into the file before
drh [Wed, 30 Jul 2008 17:28:04 +0000 (17:28 +0000)] 
When opening a zero-size database on unix, write one byte into the file before
interrogating the inode number.  This works around issues with msdos
filesystems mounted on OS-X.  Ticket #3260. (CVS 5504)

FossilOrigin-Name: a480a8845fb3b49967de0790b30e6250c824b9be

17 years agoIn the unix OS implementation, replace inode hash tables with linked lists. (CVS...
drh [Wed, 30 Jul 2008 15:27:54 +0000 (15:27 +0000)] 
In the unix OS implementation, replace inode hash tables with linked lists. (CVS 5503)

FossilOrigin-Name: db4022db64dc5864e6f1d0a20672183879ad43aa

17 years agoImplicit string->numeric conversion should go to an integer value when
drh [Wed, 30 Jul 2008 13:27:10 +0000 (13:27 +0000)] 
Implicit string->numeric conversion should go to an integer value when
possible.  Ticket #3257. (CVS 5502)

FossilOrigin-Name: da0e4bff30a77f72ae283406b547401c2ebb42c5

17 years agoMake sure everything is deallocated before calling sqlite3_shutdown().
drh [Wed, 30 Jul 2008 13:15:46 +0000 (13:15 +0000)] 
Make sure everything is deallocated before calling sqlite3_shutdown().
Ticket #3259. (CVS 5501)

FossilOrigin-Name: 4a6ee88697ddc28e0c7df1954d1526de18191827

17 years agoRemove unused sqlite3VdbeMemDynamicify() function from the VDBE. (CVS 5500)
drh [Wed, 30 Jul 2008 13:14:55 +0000 (13:14 +0000)] 
Remove unused sqlite3VdbeMemDynamicify() function from the VDBE. (CVS 5500)

FossilOrigin-Name: aee63308312bcebb79e15cfdf942ee23694444b0

17 years agoBackport http://www.sqlite.org/cvstrac/chngview?cn=5489 from fts3.
shess [Tue, 29 Jul 2008 20:38:17 +0000 (20:38 +0000)] 
Backport http://www.sqlite.org/cvstrac/chngview?cn=5489 from fts3.
Re-used prepared statement from fts2 cursor. (CVS 5499)

FossilOrigin-Name: 02870ed21dae2601a656b2f30c3ca0041e9cb60f

17 years agoAdd some simple tests to make sure that the different fulltextFilter
shess [Tue, 29 Jul 2008 20:24:46 +0000 (20:24 +0000)] 
Add some simple tests to make sure that the different fulltextFilter
query paths are being exercised. (CVS 5498)

FossilOrigin-Name: ae96d960e6e31315d25c7e5c3fb8363ed1b35350

17 years agofinally make temporary and journal files hidden in release builds on OS/2 (CVS 5497)
pweilbacher [Tue, 29 Jul 2008 18:49:28 +0000 (18:49 +0000)] 
finally make temporary and journal files hidden in release builds on OS/2 (CVS 5497)

FossilOrigin-Name: c449a95c4f7abd2bfb92bed0e3a9ae874350ce79

17 years agorecursively call os2Open() with the incoming VFS pointer, in case it gets used in...
pweilbacher [Tue, 29 Jul 2008 18:38:47 +0000 (18:38 +0000)] 
recursively call os2Open() with the incoming VFS pointer, in case it gets used in the future (CVS 5496)

FossilOrigin-Name: 6eac49f046d089dac90c0bf72e8c3fc583694dcd

17 years agomove os2FullPathname() so that it can be used in os2Open() directly (CVS 5495)
pweilbacher [Tue, 29 Jul 2008 18:35:53 +0000 (18:35 +0000)] 
move os2FullPathname() so that it can be used in os2Open() directly (CVS 5495)

FossilOrigin-Name: 2455e45484eff85bf9fd78dadd1e934f2bbe210a

17 years agoEnhancements to the pagecache malloc test configuration. Changes to the
drh [Tue, 29 Jul 2008 14:29:06 +0000 (14:29 +0000)] 
Enhancements to the pagecache malloc test configuration.  Changes to the
speed test scripts to use the new test enhancements. (CVS 5494)

FossilOrigin-Name: 0ce39c21f32958ae53c00dc8bbf8cdd453f2d90e

17 years agoIncrease the version number to 3.6.1. (CVS 5493)
drh [Tue, 29 Jul 2008 14:28:04 +0000 (14:28 +0000)] 
Increase the version number to 3.6.1. (CVS 5493)

FossilOrigin-Name: ec09b551e8279e791070515e1f2413f44dc67ea5

17 years agoUse a macro to make sure that the calls to sqlite3Utf8Read() from MemTranslate()...
danielk1977 [Tue, 29 Jul 2008 11:25:14 +0000 (11:25 +0000)] 
Use a macro to make sure that the calls to sqlite3Utf8Read() from MemTranslate() are inlined. This speeds up converting from utf8 to utf16. (CVS 5492)

FossilOrigin-Name: 78a623bbb17e35bcb902d3ea1d0b963570588d2d

17 years agoAdd a missing "finish_test" to the end of misc5.test. (CVS 5491)
danielk1977 [Tue, 29 Jul 2008 10:26:45 +0000 (10:26 +0000)] 
Add a missing "finish_test" to the end of misc5.test. (CVS 5491)

FossilOrigin-Name: 89216b166924e831dd6264dd60f8da42cef7deee

17 years agoSpeed up OP_Column by eliminating some double handling. (CVS 5490)
danielk1977 [Tue, 29 Jul 2008 10:18:57 +0000 (10:18 +0000)] 
Speed up OP_Column by eliminating some double handling. (CVS 5490)

FossilOrigin-Name: 9ebee8401b68a2bcd49dc750ac394258d554b499

17 years agoRe-used prepared statement from fts3 cursor. Previously, each call to
shess [Tue, 29 Jul 2008 01:13:02 +0000 (01:13 +0000)] 
Re-used prepared statement from fts3 cursor.  Previously, each call to
fulltextFilter() finalized any existing prepared statement and
prepared a new one.  In the case where idxNum has not changed, simply
reseting the statement suffices.  This provides an order of magnitude
speedup in incoming joins against docid. (CVS 5489)

FossilOrigin-Name: a08a5f2b1256b8a93beca5a359ccfc28d403efa3

17 years agoImplement the "lookaside" memory allocation cache. Use of this cache makes
drh [Mon, 28 Jul 2008 19:34:53 +0000 (19:34 +0000)] 
Implement the "lookaside" memory allocation cache.  Use of this cache makes
the speed1.test script run about 15% faster.  Added new interfaces to
control the cache. (CVS 5488)

FossilOrigin-Name: e48f9697e9fea339e150ddc32940760027dd07d9

17 years agoAdd mem6.c to Makefile.in. Ticket #3253. (CVS 5487)
danielk1977 [Mon, 28 Jul 2008 05:26:32 +0000 (05:26 +0000)] 
Add mem6.c to Makefile.in. Ticket #3253. (CVS 5487)

FossilOrigin-Name: 51be2e4463ca32f290feb610f59553b55bc67a5c

17 years agoIn the documentation for SQLITE_CONFIG_MEMSTATUS, make it clear that the 'boolean...
danielk1977 [Mon, 28 Jul 2008 05:22:35 +0000 (05:22 +0000)] 
In the documentation for SQLITE_CONFIG_MEMSTATUS, make it clear that the 'boolean' argument passed to sqlite3_config() is actually of type int. Ticket #3252. (CVS 5486)

FossilOrigin-Name: 1ffdd46f0bf5c82c652dedf74660e913b5699b18

17 years agoRemove a branch that could not be taken from OP_IsUnique. (CVS 5485)
danielk1977 [Sat, 26 Jul 2008 18:47:27 +0000 (18:47 +0000)] 
Remove a branch that could not be taken from OP_IsUnique. (CVS 5485)

FossilOrigin-Name: 75c2a532f4dfd7eee5136fbb79f8e20dbc666fad

17 years agoFix a case where database corruption was causing an invalid reference. (CVS 5484)
danielk1977 [Sat, 26 Jul 2008 18:26:10 +0000 (18:26 +0000)] 
Fix a case where database corruption was causing an invalid reference. (CVS 5484)

FossilOrigin-Name: 7aecabacf924ad8c1f9f4e707d0c56e433e3a434

17 years agoAdd an SQLITE_OMIT_LOCALTIME around the "utc" modifier in date/time functions. (CVS...
drh [Fri, 25 Jul 2008 16:39:24 +0000 (16:39 +0000)] 
Add an SQLITE_OMIT_LOCALTIME around the "utc" modifier in date/time functions. (CVS 5483)

FossilOrigin-Name: 71486e93b274b7ca954314dd3e4146192a8b6d79

17 years agoFurther performance improvements to mem6.c. (CVS 5482)
danielk1977 [Fri, 25 Jul 2008 16:07:00 +0000 (16:07 +0000)] 
Further performance improvements to mem6.c. (CVS 5482)

FossilOrigin-Name: 4528f7b1cce2d009f1bf32bfb8eeaf3ce5531f41

17 years agoAdd the capability to track the maximum depth of the LALR(1) parser stack
drh [Fri, 25 Jul 2008 15:39:03 +0000 (15:39 +0000)] 
Add the capability to track the maximum depth of the LALR(1) parser stack
so that critical applications can check to see if they are getting close
to limits. (CVS 5481)

FossilOrigin-Name: ef0250f3dc769a4acd534f31fa06d90922d4145b

17 years agoFix the corrupt7 tests to track changes in the integrity check error message. (CVS...
drh [Fri, 25 Jul 2008 14:53:17 +0000 (14:53 +0000)] 
Fix the corrupt7 tests to track changes in the integrity check error message. (CVS 5480)

FossilOrigin-Name: 22177dac2e3cd9acafe7fcc71674a675fdd098ff

17 years agoIncrease limits on memsubsys1 tests to accomodate the larger structure
drh [Fri, 25 Jul 2008 13:39:08 +0000 (13:39 +0000)] 
Increase limits on memsubsys1 tests to accomodate the larger structure
sizes on 64-bit platforms. (CVS 5479)

FossilOrigin-Name: f7720f1bfcc6dcdd60002520e10f545a6f0eb126

17 years agoRequire the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture
drh [Fri, 25 Jul 2008 13:32:44 +0000 (13:32 +0000)] 
Require the SQLITE_ENABLE_INSTVFS symbol in order to compile testfixture
with sqlite3_instvfs enabled.  This allows fulltest to run on platforms
for which we do not have a working hwtime.h (ex: ppc, s390).  Change
requested from the SuSE team. (CVS 5478)

FossilOrigin-Name: 16c164e79c2033347a36d6f7150eb8d2e0497c78

17 years agoMake the libtclsqlite3.la shared library depend on a separate
drh [Fri, 25 Jul 2008 12:49:44 +0000 (12:49 +0000)] 
Make the libtclsqlite3.la shared library depend on a separate
libsqlite3.la shared library.  I think this flies in the face of the
whole SQLite philosophy of minimal dependencies, but on the other hand,
few people use that shared library and the capability has been requested
from the SuSE team. (CVS 5477)

FossilOrigin-Name: 83484b42bf353535567e245a92f40096b63b342f

17 years agoFix a build problem on tclsqlite in Makefile.in. (CVS 5476)
drh [Fri, 25 Jul 2008 12:39:23 +0000 (12:39 +0000)] 
Fix a build problem on tclsqlite in Makefile.in. (CVS 5476)

FossilOrigin-Name: e7a604807f9f3f92920b2bac403d2dd368dfa102

17 years agoSpeed up the xFree() method of the mem6.c allocator by storing the offset from the...
danielk1977 [Fri, 25 Jul 2008 10:40:18 +0000 (10:40 +0000)] 
Speed up the xFree() method of the mem6.c allocator by storing the offset from the pointer to the start of its chunk in a header field. (CVS 5475)

FossilOrigin-Name: 0de54891d4901dec929459d27004efe87106ffa2

17 years agoChange mem6.c to use the malloc() and free() functions directly, instead of going...
danielk1977 [Fri, 25 Jul 2008 09:24:13 +0000 (09:24 +0000)] 
Change mem6.c to use the malloc() and free() functions directly, instead of going via another sqlite3_mem_methods structure. (CVS 5474)

FossilOrigin-Name: cfa65e23df8b6f33884f533492b84dd1985db4d4

17 years agoUpdates to mem6.c allocator. (CVS 5473)
danielk1977 [Fri, 25 Jul 2008 08:48:59 +0000 (08:48 +0000)] 
Updates to mem6.c allocator. (CVS 5473)

FossilOrigin-Name: 43a4cae2acea33d1a17c0037516e9c27fb7e8e91

17 years agoReduce the size of the parser allocation. Add additional instrumentation
drh [Thu, 24 Jul 2008 23:34:07 +0000 (23:34 +0000)] 
Reduce the size of the parser allocation.  Add additional instrumentation
to mem2.  speed1*.test uses scratch malloc. (CVS 5472)

FossilOrigin-Name: 599a9dea8fc97d0e7f09e67c9954de8cc1b8748e

17 years agoUse a new algorithm for sqlite3Strlen that is slightly slower but is more
drh [Thu, 24 Jul 2008 17:06:48 +0000 (17:06 +0000)] 
Use a new algorithm for sqlite3Strlen that is slightly slower but is more
like to work on a mixture of 32- and 64-bit systems.  Ticket #3237, #3248. (CVS 5471)

FossilOrigin-Name: cb1876d8dc102be74be98dd57ac14ee67be8e8e2

17 years agoUpdate the implementation of sqlite3ResultSetOfSelect() to (hopefully) make
drh [Thu, 24 Jul 2008 15:50:41 +0000 (15:50 +0000)] 
Update the implementation of sqlite3ResultSetOfSelect() to (hopefully) make
it clearer that malloc failures cannot possibly result in a crash.
Ticket #3247. (CVS 5470)

FossilOrigin-Name: 7455310931787ddc72d677ba6c471b67af9418a8

17 years agoDo not run capi3.test or capi3c.test when testing memsys6. (CVS 5469)
danielk1977 [Thu, 24 Jul 2008 10:32:30 +0000 (10:32 +0000)] 
Do not run capi3.test or capi3c.test when testing memsys6. (CVS 5469)

FossilOrigin-Name: e0a101117ca44f0cce555b5db667286729fd2ad4

17 years agoAdd a mutex to mem6.c to make it threadsafe. (CVS 5468)
danielk1977 [Thu, 24 Jul 2008 10:11:27 +0000 (10:11 +0000)] 
Add a mutex to mem6.c to make it threadsafe. (CVS 5468)

FossilOrigin-Name: 9b97ce60c63c8b8afa43496a97917afd5fc26c71

17 years agoAdd mem6.c, a new allocator. More to come. (CVS 5467)
danielk1977 [Thu, 24 Jul 2008 08:20:40 +0000 (08:20 +0000)] 
Add mem6.c, a new allocator. More to come. (CVS 5467)

FossilOrigin-Name: 192bc192185a7b475ef9331e2a4a0dc68083ec03

17 years agoError messages from virtual tables store on the sqlite3_vtab->zErrMsg field
drh [Wed, 23 Jul 2008 21:07:25 +0000 (21:07 +0000)] 
Error messages from virtual tables store on the sqlite3_vtab->zErrMsg field
are reported back up to the application interface and memory is reclaimed. (CVS 5466)

FossilOrigin-Name: 4a9dd5e782a363e93d4705fa3671bc6cf0bb5a33

17 years agoRemove stray breakpoints from test scripts. (CVS 5465)
drh [Wed, 23 Jul 2008 20:28:13 +0000 (20:28 +0000)] 
Remove stray breakpoints from test scripts. (CVS 5465)

FossilOrigin-Name: cb5e75dfa5c7048bd0994afac19846f70bfa7a4d

17 years agoClarify in the documentation that the database connection pointer to
drh [Wed, 23 Jul 2008 18:25:56 +0000 (18:25 +0000)] 
Clarify in the documentation that the database connection pointer to
sqlite3_next_stmt() must not be NULL.  Ticket #3244. (CVS 5464)

FossilOrigin-Name: a7d64e86e84cf16c9742e6b012a0b96d9c6b2ba1

17 years agoRead the sqlite3_vtab.zErrMsg after each call to a virtual table
drh [Wed, 23 Jul 2008 18:17:32 +0000 (18:17 +0000)] 
Read the sqlite3_vtab.zErrMsg after each call to a virtual table
method and transfer any error into the database connection.
Fix the fts2.test and fts3.test scripts to that they return
silently rather than failing the test sequence if the appropriate
FTS implementation is unavailable. (CVS 5463)

FossilOrigin-Name: e2c6771d44f1b4fee16ef90e91c3498be2a7d2b1

17 years agoUpdate requirements derivation information in sqlite.h.in. (CVS 5462)
drh [Wed, 23 Jul 2008 15:40:06 +0000 (15:40 +0000)] 
Update requirements derivation information in sqlite.h.in. (CVS 5462)

FossilOrigin-Name: d6202907e70d902e967ba116012c274154f30b8d

17 years agoQuick typo fix. No changes to code. (CVS 5461)
mihailim [Wed, 23 Jul 2008 13:42:26 +0000 (13:42 +0000)] 
Quick typo fix. No changes to code. (CVS 5461)

FossilOrigin-Name: dfa8b456630089d385f89c145ae709be85424cd7

17 years agoDocumentation updates. (CVS 5460)
drh [Wed, 23 Jul 2008 00:52:55 +0000 (00:52 +0000)] 
Documentation updates. (CVS 5460)

FossilOrigin-Name: fe8e9f53f4bcedf2e8a657f33eb9a0939ef74c95

17 years agoBe a bit more susicious of invalid results from the tokenizer.
shess [Tue, 22 Jul 2008 23:54:50 +0000 (23:54 +0000)] 
Be a bit more susicious of invalid results from the tokenizer.
Backports check-in (4514) from fts3. (CVS 5459)

FossilOrigin-Name: 311aeb9c2b75c420a37198a93e353c72e9166747

17 years agoImplement optimize() function.
shess [Tue, 22 Jul 2008 23:49:44 +0000 (23:49 +0000)] 
Implement optimize() function.
Backports check-in (5417) from fts3. (CVS 5458)

FossilOrigin-Name: c16900dc7603cab30f8729b25361bc88bb37ae43

17 years agoDelete all fts2 index data the table becomes empty.
shess [Tue, 22 Jul 2008 23:41:26 +0000 (23:41 +0000)] 
Delete all fts2 index data the table becomes empty.
Backports check-in (5413) from fts3. (CVS 5457)

FossilOrigin-Name: 4c98179be258319f441ae4e123cf59af77e96409

17 years agofts2 functions for testing scripts.
shess [Tue, 22 Jul 2008 23:32:27 +0000 (23:32 +0000)] 
fts2 functions for testing scripts.
Backports (5340) from fts3. (CVS 5456)

FossilOrigin-Name: 4e47394be9dfbf0f9309e55eb6c6a3a517ea2006

17 years agoChange prefix search from O(N*M) to O(NlogM).
shess [Tue, 22 Jul 2008 23:08:40 +0000 (23:08 +0000)] 
Change prefix search from O(N*M) to O(NlogM).
Backports (4599) from fts3. (CVS 5455)

FossilOrigin-Name: 3f614453d2d7c753a5963b027fe8618b50b4f6b9

17 years agoChanges fts2 to use only sqlite3_malloc() and not system malloc.
shess [Tue, 22 Jul 2008 22:57:54 +0000 (22:57 +0000)] 
Changes fts2 to use only sqlite3_malloc() and not system malloc.
Backports (4554) and (4555) from fts3. (CVS 5454)

FossilOrigin-Name: ecf2dec66cb979cb7d8db3b7ce5c64cab57fe2bb

17 years agofts2.c buildTerms() passes -1 for nInput.
shess [Tue, 22 Jul 2008 22:20:50 +0000 (22:20 +0000)] 
fts2.c buildTerms() passes -1 for nInput.
Backports (4511) from fts3. (CVS 5453)

FossilOrigin-Name: d562515e1cdd05212674516033c64b5f5668b799

17 years agoCleanup the hash functions in FTS2.
shess [Tue, 22 Jul 2008 22:15:47 +0000 (22:15 +0000)] 
Cleanup the hash functions in FTS2.
Backports (4440) from fts3. (CVS 5452)

FossilOrigin-Name: e31d2f875c13ee41742c9aaee6291662cdbbf863

17 years agoDocumentation updates. No changes to code. (CVS 5451)
drh [Tue, 22 Jul 2008 18:45:08 +0000 (18:45 +0000)] 
Documentation updates.  No changes to code. (CVS 5451)

FossilOrigin-Name: e58b49779bfd4a9e88e8c6b0a929c97167b718b3

17 years agowinGetLastError support added. Consolidated getLastErrorMsg() support. Removed...
shane [Tue, 22 Jul 2008 05:32:03 +0000 (05:32 +0000)] 
winGetLastError support added.  Consolidated getLastErrorMsg() support.  Removed some more WINCE dead code similar to instance in ticket #3232.   Added error return on SystemTimeToFileTime() failure. (CVS 5450)

FossilOrigin-Name: c0a5cf38eea80640e42c612ce6f4850c98f70638

17 years agoChanged a few loop counters to unsigned ints to remove compiler warnings. (CVS 5449)
shane [Tue, 22 Jul 2008 05:18:00 +0000 (05:18 +0000)] 
Changed a few loop counters to unsigned ints to remove compiler warnings. (CVS 5449)

FossilOrigin-Name: 16f51f9b39c46659b4be4afd7f0d8ec325469e7b

17 years agoAdded comment on floating point precision compile option for MSVC. (CVS 5448)
shane [Tue, 22 Jul 2008 05:15:52 +0000 (05:15 +0000)] 
Added comment on floating point precision compile option for MSVC. (CVS 5448)

FossilOrigin-Name: e20f2b8c6a13aa826703441cf340d0ee03bf9f64

17 years agoAdd assertion check for NaN support at startup. (CVS 5447)
shane [Tue, 22 Jul 2008 05:13:30 +0000 (05:13 +0000)] 
Add assertion check for NaN support at startup. (CVS 5447)

FossilOrigin-Name: 8474cde34b3fcb99cd5908fddb8528d0db331cdf

17 years ago"configure" support updated. Removed unused features. Added parsing of CFLAGS and...
shane [Tue, 22 Jul 2008 05:05:01 +0000 (05:05 +0000)] 
"configure" support updated.  Removed unused features.  Added parsing of CFLAGS and CPPFLAGS to extract OMIT options to pass to lemon and mkkeywordhash. (CVS 5446)

FossilOrigin-Name: c67aa5057deda6419e1f205118bf09957d599c15

17 years agoflattenSubquery() needed if either SQLITE_OMIT_SUBQUERY or SQLITE_OMIT_VIEW not defin...
shane [Tue, 22 Jul 2008 05:00:55 +0000 (05:00 +0000)] 
flattenSubquery() needed if either SQLITE_OMIT_SUBQUERY or SQLITE_OMIT_VIEW not defined. (CVS 5445)

FossilOrigin-Name: 1ffe7a995733fe91534a3ed81d2640fd7e6ebaa6

17 years agoReduce the number of "#ifndef SQLITE_OMIT_AUTOVACUUM" conditions in btree.c by using...
danielk1977 [Sat, 19 Jul 2008 14:25:15 +0000 (14:25 +0000)] 
Reduce the number of "#ifndef SQLITE_OMIT_AUTOVACUUM" conditions in btree.c by using the ISAUTOVACUUM macro instead. (CVS 5444)

FossilOrigin-Name: a560c61849cb669ab03ba4a63b23369db234f329

17 years agoTo ensure SQLITE_THREADSAFE is always defined, have test_mutex.c include sqliteInt...
danielk1977 [Sat, 19 Jul 2008 13:43:23 +0000 (13:43 +0000)] 
To ensure SQLITE_THREADSAFE is always defined, have test_mutex.c include sqliteInt.h. (CVS 5443)

FossilOrigin-Name: d8be91e2d2737dcb0e82e6c8a6a3f4827bc98d63

17 years agoImprove the performance of balance_nonroot() on auto-vacuum databases by reducing...
danielk1977 [Sat, 19 Jul 2008 11:49:07 +0000 (11:49 +0000)] 
Improve the performance of balance_nonroot() on auto-vacuum databases by reducing the number of calls to ptrmapPut(). (CVS 5442)

FossilOrigin-Name: 9992b1aecdbbc7a260f00cb6ef78b500aeab22df

17 years agoRemove dead code from os_win.c. Ticket #3232. (CVS 5441)
drh [Fri, 18 Jul 2008 23:47:43 +0000 (23:47 +0000)] 
Remove dead code from os_win.c.  Ticket  #3232. (CVS 5441)

FossilOrigin-Name: 5c5c1f72797e4ceb229b8e3a7c65e5f173bb9e1a

17 years agoUse the actual size of memory allocations to update the memory status
drh [Fri, 18 Jul 2008 18:56:16 +0000 (18:56 +0000)] 
Use the actual size of memory allocations to update the memory status
counters.  Fix the roundup() function of mem3 to be much closer to the
actual allocation size.  Ticket #3226. (CVS 5440)

FossilOrigin-Name: 5c22132eb171058f30ec5b7562b8164611236748

17 years agoFix SQLITE_OMIT_AUTOVACUUM so that it works again. Ticket #3228. (CVS 5439)
drh [Fri, 18 Jul 2008 17:16:26 +0000 (17:16 +0000)] 
Fix SQLITE_OMIT_AUTOVACUUM so that it works again.  Ticket #3228. (CVS 5439)

FossilOrigin-Name: 3b2dd417f9dab3cae3ab3693629a65a2c90f00e9

17 years agoMake sure expression spans are set correctly for "x.*" expressions in
drh [Fri, 18 Jul 2008 17:03:52 +0000 (17:03 +0000)] 
Make sure expression spans are set correctly for "x.*" expressions in
the result set of a SELECT.  Ticket #3229. (CVS 5438)

FossilOrigin-Name: 17a9984e7668be388c4042c070718a02b284a336

17 years agoPerformance improvement: reduce the number of calls to ptrmapPageno() made by ptrmapP...
danielk1977 [Fri, 18 Jul 2008 09:34:57 +0000 (09:34 +0000)] 
Performance improvement: reduce the number of calls to ptrmapPageno() made by ptrmapPut() and ptrmapGet(). (CVS 5437)

FossilOrigin-Name: d807fb271340901bbf3e06de23d91132422d1408