]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoRemove all vestiges of ctype.h from FTS3.
drh [Fri, 6 Aug 2010 19:00:12 +0000 (19:00 +0000)] 
Remove all vestiges of ctype.h from FTS3.

FossilOrigin-Name: b8b465ed2c56b23b50334680a2a940885b1ac530

14 years agoDo not run some tests in notify3.test with the inmemory_journal permutation. They...
dan [Fri, 6 Aug 2010 13:50:07 +0000 (13:50 +0000)] 
Do not run some tests in notify3.test with the inmemory_journal permutation. They do not pass as the tests assume that the database schema is not loaded until the first invocation of [db eval]. This is not true with the inmemory_journal permutation.

FossilOrigin-Name: 698fba826e40ce6414cf6c261441d68b174c1637

14 years agoChange two automatic array variables into static constant arrays.
drh [Fri, 6 Aug 2010 02:10:00 +0000 (02:10 +0000)] 
Change two automatic array variables into static constant arrays.
Update and reformat some comments for cleaner presentation.

FossilOrigin-Name: a7a15547cccb4aeb719aba19641f31390c316d8c

14 years agoMake the size of a Bitvec object 512 bytes on all platforms, instead of
drh [Thu, 5 Aug 2010 11:56:01 +0000 (11:56 +0000)] 
Make the size of a Bitvec object 512 bytes on all platforms, instead of
having the size depend on the size of a pointer.  This makes testing easier.

FossilOrigin-Name: ca479f3de2927ccc05dc76d10e40c00b8e0c88d1

14 years agoDo not read the database file size on a SAVEPOINT rollback any more since
drh [Thu, 5 Aug 2010 03:21:39 +0000 (03:21 +0000)] 
Do not read the database file size on a SAVEPOINT rollback any more since
after checkin [65b8636ac6e5] the in-header-size field is always valid.

FossilOrigin-Name: fbe70e1106bcc5086ceb9d8f39cc39baf3643092

14 years agoFix the query planner so that when it has a choice of full-scan tables to
drh [Thu, 5 Aug 2010 02:52:32 +0000 (02:52 +0000)] 
Fix the query planner so that when it has a choice of full-scan tables to
move to the outer loop, it chooses the one that is likely to give the fewest
output rows.

FossilOrigin-Name: 309bbedf9648c750d7b8aedbc15d4fd68f846824

14 years agoIf the outer loop of a join must be a full table scan, make sure that an
drh [Wed, 4 Aug 2010 21:17:16 +0000 (21:17 +0000)] 
If the outer loop of a join must be a full table scan, make sure that an
incomplete ANALYZE does not trick the planner into use a table that might
be indexable in an inner loop.  Ticket [13f033c865f878]

FossilOrigin-Name: e7a714b52c45af096af74049826d32c647abfe3f

14 years agoWhen opening a write-transaction on a database file that has been appended to or...
dan [Wed, 4 Aug 2010 11:34:31 +0000 (11:34 +0000)] 
When opening a write-transaction on a database file that has been appended to or truncated by a pre-3.7.0 client, update the database-size field in the database header. Fix for [51ae9cad31].

FossilOrigin-Name: 65b8636ac6e5d3e4502d4f576ddf9350d5df3022

14 years agoFix disabled implementation-mark comments in func.c.
drh [Tue, 3 Aug 2010 18:06:25 +0000 (18:06 +0000)] 
Fix disabled implementation-mark comments in func.c.

FossilOrigin-Name: 57c0960038b8ce97f9d6665f15e7f6ec310c681f

14 years agoFix the REPLACE conflict resolution so that it falls back to ABORT when
drh [Tue, 3 Aug 2010 13:08:54 +0000 (13:08 +0000)] 
Fix the REPLACE conflict resolution so that it falls back to ABORT when
a CHECK constraint fails.  Ticket [c38baa3d969eab794].

FossilOrigin-Name: 4e157b774764b8bafc9fabb88decf54f178b5ff5

14 years agoModify wal2.test to disable tests requiring TCL 8.5 if the test harness is
drh [Mon, 2 Aug 2010 10:59:13 +0000 (10:59 +0000)] 
Modify wal2.test to disable tests requiring TCL 8.5 if the test harness is
compiled using TCL 8.4.

FossilOrigin-Name: 016486c7d544dcf9b7422cb0fb9804aa1c418f68

14 years agoIn shared-cache mode, do not allow one connection to checkpoint a database while...
dan [Mon, 2 Aug 2010 10:47:05 +0000 (10:47 +0000)] 
In shared-cache mode, do not allow one connection to checkpoint a database while a second connection is reading or writing the same shared-cache.

FossilOrigin-Name: e75b52d156905ce16bedb94f65c01a4640bdfa75

14 years agoFix a typo in an error message of the TCL interface.
drh [Sun, 1 Aug 2010 22:41:32 +0000 (22:41 +0000)] 
Fix a typo in an error message of the TCL interface.

FossilOrigin-Name: 8eadd7b87bfe8786e0352ca14b29d1451998c02c

14 years agoIf a database becomes corrupted such that an index is out of sync with its
drh [Fri, 30 Jul 2010 18:40:55 +0000 (18:40 +0000)] 
If a database becomes corrupted such that an index is out of sync with its
table, make sure the corruption is detected and reported back.  Do not assume
that indices always contain rowids for valid table rows.

FossilOrigin-Name: 83395a3d24f18170fc068d9e644291678694c3f0

14 years agoFix typos in comments. No code or logic changes.
drh [Fri, 30 Jul 2010 16:54:25 +0000 (16:54 +0000)] 
Fix typos in comments.  No code or logic changes.

FossilOrigin-Name: 15c294ca051ed8b5078e7ac9a969b0f9358d9184

14 years agoRemove a test from sqlite3PagerCommitPhaseOne which is now always true
drh [Fri, 30 Jul 2010 16:44:29 +0000 (16:44 +0000)] 
Remove a test from sqlite3PagerCommitPhaseOne which is now always true
after the multi-file transaction fix.

FossilOrigin-Name: 6758f6a8ec97941e09847b309812b3194eb57f19

14 years agoChanges to the comments describing the Pager.setMaster variable in pager.c. Add an...
dan [Fri, 30 Jul 2010 11:31:12 +0000 (11:31 +0000)] 
Changes to the comments describing the Pager.setMaster variable in pager.c. Add an assert() statement to verify that two master journal pointers are not written to a single journal file.

FossilOrigin-Name: ad78ccacb00e2f8a5ca93e2c9006266d9477fe48

14 years agoCherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of
drh [Fri, 30 Jul 2010 11:20:35 +0000 (11:20 +0000)] 
Cherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of
the experimental branch.

FossilOrigin-Name: 40f7f0a583e6bba66cd006253a0ef4623ea74f17

14 years agoAdd tests to check that the ICU regexp() function can only be called with exactly...
dan [Fri, 30 Jul 2010 05:06:05 +0000 (05:06 +0000)] 
Add tests to check that the ICU regexp() function can only be called with exactly two arguments.

FossilOrigin-Name: 451d965742cc219db709939b4ba1da2f2343dbce

14 years agoUpdates to the README.txt file for ICU.
drh [Fri, 30 Jul 2010 00:31:08 +0000 (00:31 +0000)] 
Updates to the README.txt file for ICU.

FossilOrigin-Name: d37443d33388b402e610a00c362a1e2e79548801

14 years agoUnconditionally include the pTmpSpace size in the estimate of the pager
drh [Thu, 29 Jul 2010 10:13:25 +0000 (10:13 +0000)] 
Unconditionally include the pTmpSpace size in the estimate of the pager
memory used.

FossilOrigin-Name: 4b97f8640e9167cd355a24836fe74e4224cf12b9

14 years agoChange the profile timer units back to nanoseconds and update the
drh [Thu, 29 Jul 2010 10:07:21 +0000 (10:07 +0000)] 
Change the profile timer units back to nanoseconds and update the
sqlite3_profile() documentation.
Ticket [c43940c49b74c70a69]

FossilOrigin-Name: 7783b98a938b77d6b8e4e85b32b05452c47fbe4b

14 years agoCorrect handling of compound foreign key constraints that include the
drh [Thu, 29 Jul 2010 01:50:38 +0000 (01:50 +0000)] 
Correct handling of compound foreign key constraints that include the
integer primary key as one of the columns.
Ticket [ce7c133ea6cc9ccdc1]

FossilOrigin-Name: 53902f7d4a46aa70ecc5bf180a01ff888d52686a

14 years agoGet SQLITE_OMIT_VIRTUALTABLE working again after being broken by recent
drh [Wed, 28 Jul 2010 19:17:51 +0000 (19:17 +0000)] 
Get SQLITE_OMIT_VIRTUALTABLE working again after being broken by recent
changes.

FossilOrigin-Name: 33b1e862ffa7109480cf4a77ceae8aebe98d3eee

14 years agoFix the dbstatus.test script so that it works correctly on 64-bit machines.
drh [Wed, 28 Jul 2010 18:51:26 +0000 (18:51 +0000)] 
Fix the dbstatus.test script so that it works correctly on 64-bit machines.

FossilOrigin-Name: a3401d9ee540828f3efd26d89f6b771e0ecb2777

14 years agoImprove the accuracy of the Pager heap usage estimate.
drh [Wed, 28 Jul 2010 17:36:11 +0000 (17:36 +0000)] 
Improve the accuracy of the Pager heap usage estimate.

FossilOrigin-Name: ae89777e7f8bae2cdd3407395ea84c1b39577c4b

14 years agoAdjust the shell test script "shell4.test" to account for changes in the
drh [Wed, 28 Jul 2010 17:16:41 +0000 (17:16 +0000)] 
Adjust the shell test script "shell4.test" to account for changes in the
".stat on" display format from the previous checkin.

FossilOrigin-Name: 2f2fa7dd809ae2a67048643da8c01a4664848ba7

14 years agoRecord the pcache allocation size statistics even for pcache overflow
drh [Wed, 28 Jul 2010 17:01:24 +0000 (17:01 +0000)] 
Record the pcache allocation size statistics even for pcache overflow
allocations.  Adjust the wording on one of the stat output lines in
the shell.

FossilOrigin-Name: f9adf66ad575abbb63736caef27bd3c619e516a6

14 years agoModify CLI to optionally display "stats".
shaneh [Wed, 28 Jul 2010 16:05:34 +0000 (16:05 +0000)] 
Modify CLI to optionally display "stats".

FossilOrigin-Name: 419ce0ed89d10252492b2926817259899ee74e71

14 years agoLookaside memory is not used to store schemas. Change the
drh [Wed, 28 Jul 2010 15:52:09 +0000 (15:52 +0000)] 
Lookaside memory is not used to store schemas.  Change the
SQLITE_DBSATUS_SCHEMA_USED documentation to reflect this fact.

FossilOrigin-Name: 07abfd5268564c18afd1074c2069d65c64f4b8eb

14 years agoAdd documentation for the SQLITE_STATUS_MALLOC_COUNT parameter to
drh [Wed, 28 Jul 2010 15:49:02 +0000 (15:49 +0000)] 
Add documentation for the SQLITE_STATUS_MALLOC_COUNT parameter to
sqlite3_status().

FossilOrigin-Name: dbfbdb60c00b5aeae29c85acec0ae910b82dbdba

14 years agoDo not allow automatic indices for the RHS of IN expressions which are not
drh [Wed, 28 Jul 2010 02:53:36 +0000 (02:53 +0000)] 
Do not allow automatic indices for the RHS of IN expressions which are not
correlated subqueries.  Ticket [8011086c85c6c404014c9]

FossilOrigin-Name: 267492d3a7eff7b7b24ed6bd6d6ff55148fe37f3

14 years agoUpdate the makefiles to prefer TCL version 8.5 instead of 8.4.
drh [Tue, 27 Jul 2010 16:42:22 +0000 (16:42 +0000)] 
Update the makefiles to prefer TCL version 8.5 instead of 8.4.

FossilOrigin-Name: 8118de2af33557f75b4f2f1b1194a21d46ccf7fe

14 years agoFix a bug in the SQLITE_STATUS_MALLOC_COUNT counter. Add an ALWAYS() around
drh [Mon, 26 Jul 2010 19:09:31 +0000 (19:09 +0000)] 
Fix a bug in the SQLITE_STATUS_MALLOC_COUNT counter.  Add an ALWAYS() around
a condition in the SQLITE_DBSTATUS_SCHEMA_USED logic that is always true.

FossilOrigin-Name: 6df081adbfa581c477bd2c96bb3f7f44be131a8f

14 years agoAdd the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status().
drh [Mon, 26 Jul 2010 18:43:40 +0000 (18:43 +0000)] 
Add the SQLITE_STATUS_MALLOC_COUNT option for sqlite3_status().

FossilOrigin-Name: 8f8e442b3af553753e25c304efa289b626e3a227

14 years agoIncrease the version number to 3.7.1 due to the API enhancement of the previous
drh [Mon, 26 Jul 2010 16:40:03 +0000 (16:40 +0000)] 
Increase the version number to 3.7.1 due to the API enhancement of the previous
check-in.

FossilOrigin-Name: 1d7571e4be6d96aec13cd8b3b7b10b8dc44d19a5

14 years agoAdd support for SQLITE_DBSTATUS_SCHEMA_USED and SQLITE_DBSTATUS_STMT_USED to
drh [Mon, 26 Jul 2010 16:24:35 +0000 (16:24 +0000)] 
Add support for SQLITE_DBSTATUS_SCHEMA_USED and SQLITE_DBSTATUS_STMT_USED to
the trunk.

FossilOrigin-Name: 008368b2bd1513e2df21c2070548c6fc94abebb1

14 years agoWhen calculating schema memory, use the actual allocated size of hash elements, not...
dan [Mon, 26 Jul 2010 15:57:01 +0000 (15:57 +0000)] 
When calculating schema memory, use the actual allocated size of hash elements, not sizeof(HashElem). Also fix a bug in dbstatus.test

FossilOrigin-Name: e327ef37faec52ce99591266160be2ce2d577cc3

14 years agoAdd virtual table test cases to dbstatus.test.
dan [Mon, 26 Jul 2010 14:47:14 +0000 (14:47 +0000)] 
Add virtual table test cases to dbstatus.test.

FossilOrigin-Name: 72b84d066a4eac90a77142c3ea66ef3d21a1104e

14 years agoFurther fixes to the P4_MEM size measurement logic.
drh [Mon, 26 Jul 2010 14:20:06 +0000 (14:20 +0000)] 
Further fixes to the P4_MEM size measurement logic.

FossilOrigin-Name: 934cda2987c331b57a195ed45e9a91794896672a

14 years agoFix an issue with P4_MEM and the schema size measurement logic. Also fix
drh [Mon, 26 Jul 2010 13:57:59 +0000 (13:57 +0000)] 
Fix an issue with P4_MEM and the schema size measurement logic.  Also fix
a compiler warning.

FossilOrigin-Name: 8166f33885b86029bb8a0fbaf70606a0d2d5ec2e

14 years agoMake sure sqlite3_free() is not called for P4_MPRINTF during a size
drh [Mon, 26 Jul 2010 12:38:12 +0000 (12:38 +0000)] 
Make sure sqlite3_free() is not called for P4_MPRINTF during a size
measurement.

FossilOrigin-Name: 56f11f8823cd06a69eebce6a9613e22b1810b59b

14 years agoRemove an assert() that uses a variable removed earlier.
dan [Mon, 26 Jul 2010 12:36:29 +0000 (12:36 +0000)] 
Remove an assert() that uses a variable removed earlier.

FossilOrigin-Name: c04907e69820bd19f647c5f555327e0058db4e6d

14 years agoChange the way SubProgram objects are deleted so that the code is the same for deleti...
dan [Mon, 26 Jul 2010 12:05:17 +0000 (12:05 +0000)] 
Change the way SubProgram objects are deleted so that the code is the same for deletion and measurement.

FossilOrigin-Name: 00e55102a8309eb6df08ad4a8937ba02688bac62

14 years agoUpdate comments to better documentation the new memory measurement functions.
drh [Mon, 26 Jul 2010 11:59:40 +0000 (11:59 +0000)] 
Update comments to better documentation the new memory measurement functions.

FossilOrigin-Name: 620bad035755449c4e6a762f01ef2b1d9e521c7c

14 years agoMake sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree()
drh [Mon, 26 Jul 2010 11:07:20 +0000 (11:07 +0000)] 
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree()
and all memory from sqlite3_malloc() is freed by sqlite3_free().

FossilOrigin-Name: 629e38a8c9e31111e351fe4625a5835576d23584

14 years agoMake sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and
drh [Sat, 24 Jul 2010 16:34:37 +0000 (16:34 +0000)] 
Make sure all memory from sqlite3DbMalloc() is freed by sqlite3DbFree() and
all memory from sqlite3_malloc() is freed by sqlite3_free().

FossilOrigin-Name: ac1f37a647e9ed1c00a901d26d9956a86c40117a

14 years agoExperimental code to measure memory consumed by database schemas and prepared statements.
dan [Sat, 24 Jul 2010 11:28:28 +0000 (11:28 +0000)] 
Experimental code to measure memory consumed by database schemas and prepared statements.

FossilOrigin-Name: 9aa30342f4de4eff630520ea8e07ad253d3f0877

14 years agoFix a typo in the OS/2 vfs code.
drh [Fri, 23 Jul 2010 22:26:20 +0000 (22:26 +0000)] 
Fix a typo in the OS/2 vfs code.

FossilOrigin-Name: a6bb2108bfb562a7067ef6150e43382736c0c4f5

14 years agoMerge two leaves.
dan [Fri, 23 Jul 2010 17:37:13 +0000 (17:37 +0000)] 
Merge two leaves.

FossilOrigin-Name: 54e5886d841af69c8fa965bbcd637441d4a398ba

14 years agoStrenghten an assert() in malloc.c that helps to ensure that allocated memory
drh [Fri, 23 Jul 2010 17:32:23 +0000 (17:32 +0000)] 
Strenghten an assert() in malloc.c that helps to ensure that allocated memory
is freed by the appropriate routine.

FossilOrigin-Name: 80db61acca034a8edff0fd23a65a0bbc9206a7b3

14 years agoRemove additional traces (mostly in comments) of the Table.dbMem field.
drh [Fri, 23 Jul 2010 17:06:32 +0000 (17:06 +0000)] 
Remove additional traces (mostly in comments) of the Table.dbMem field.

FossilOrigin-Name: 5c58f44aeb224e106497368d9290d75a08807761

14 years agoAdd a test case to shared.test. No changes to production code.
dan [Fri, 23 Jul 2010 15:55:31 +0000 (15:55 +0000)] 
Add a test case to shared.test. No changes to production code.

FossilOrigin-Name: bfb0dd3c2f7e1ffbdf236be4adc3e0d804ed5854

14 years agoRemove the Table.dbMem variable, as it is no longer being used for its original purpose.
dan [Fri, 23 Jul 2010 15:41:47 +0000 (15:41 +0000)] 
Remove the Table.dbMem variable, as it is no longer being used for its original purpose.

FossilOrigin-Name: 6eddc6e601cf8f585c6c2cf79f36fcbfe98a307e

14 years agoRemove the unused Schema.db variable.
dan [Fri, 23 Jul 2010 08:31:35 +0000 (08:31 +0000)] 
Remove the unused Schema.db variable.

FossilOrigin-Name: 430be657be68687c998f2f5f8dcd112bf26106be

14 years agoAdd evidence marks to the where.c source file. Comment only - no code changes.
drh [Thu, 22 Jul 2010 22:40:03 +0000 (22:40 +0000)] 
Add evidence marks to the where.c source file.  Comment only - no code changes.

FossilOrigin-Name: f3f9e8e5bb90cc36e0d63a7289a8acf534c5fa2a

14 years agoMake the sqlite3_db_status() routine threadsafe.
dan [Thu, 22 Jul 2010 17:55:40 +0000 (17:55 +0000)] 
Make the sqlite3_db_status() routine threadsafe.

FossilOrigin-Name: 241f7bd190329fa02ca428651072a4a206132eab

14 years agoEnhance the LIKE/GLOB query optimization so that it works as long as there
drh [Thu, 22 Jul 2010 17:49:52 +0000 (17:49 +0000)] 
Enhance the LIKE/GLOB query optimization so that it works as long as there
is an index with the appropriate collating sequence and even if the default
collating sequence of the column is different.
Ticket [4711020446da7d93d99].

FossilOrigin-Name: 9f932655f9eb9fdab16d7deed98b7cad414e0ca6

14 years agoAdd test/threadtest3.c, containing multi-thread tests implemented in C.
dan [Thu, 22 Jul 2010 15:44:06 +0000 (15:44 +0000)] 
Add test/threadtest3.c, containing multi-thread tests implemented in C.

FossilOrigin-Name: aad88cf54e9e55b757d2ece9e39d436e71dcaa9f

14 years agoTry to optimize LIKE and GLOB operators when RHS contains no wildcard.
drh [Thu, 22 Jul 2010 12:33:57 +0000 (12:33 +0000)] 
Try to optimize LIKE and GLOB operators when RHS contains no wildcard.
Ticket [e090183531fc274747]

FossilOrigin-Name: 613a87d62fd1f8526d53136efae5adae91824bcf

14 years agoTweaks to the virtual table documentation contained in comments of sqlite3.h.
drh [Thu, 22 Jul 2010 11:40:34 +0000 (11:40 +0000)] 
Tweaks to the virtual table documentation contained in comments of sqlite3.h.
No changes to actual code.

FossilOrigin-Name: f5866d4723460e80814b8599e0b84ff4a924da6f

14 years agoFix a comment typo. This check-in is 3.7.0 release candidate 2.
drh [Wed, 21 Jul 2010 16:16:28 +0000 (16:16 +0000)] 
Fix a comment typo.  This check-in is 3.7.0 release candidate 2.

FossilOrigin-Name: b36b105eab6fd3195f4bfba6cb5cda0f063b7460

14 years agoAdded fix for race conditions from os_unix.c; added saving of errno in two places.
shaneh [Tue, 20 Jul 2010 20:23:38 +0000 (20:23 +0000)] 
Added fix for race conditions from os_unix.c; added saving of errno in two places.

FossilOrigin-Name: 13ed106c8c279422a6159e28c6887d13a88b7b8b

14 years agoFix a race condition in os_unix.c that may occur when one thread is opening a connect...
dan [Tue, 20 Jul 2010 18:59:00 +0000 (18:59 +0000)] 
Fix a race condition in os_unix.c that may occur when one thread is opening a connection to a shared-memory block and another is either closing or locking the same shared-memory.

FossilOrigin-Name: 3b7330c19a5327322068e9460018fe0152b8ac87

14 years agoUpdate the CLI test scripts for version 3.7.0.
drh [Mon, 19 Jul 2010 15:01:43 +0000 (15:01 +0000)] 
Update the CLI test scripts for version 3.7.0.

FossilOrigin-Name: 92fe70dadde2eb551518d69ac2eaa6a0151d7dfe

14 years agoUse exit(255) instead of abort() in the tcl [sqlite_abort] test command. This stops...
dan [Mon, 19 Jul 2010 12:44:14 +0000 (12:44 +0000)] 
Use exit(255) instead of abort() in the tcl [sqlite_abort] test command. This stops testfixture from creating dozens of core files each time tests are run.

FossilOrigin-Name: aec9e13148671e612d4ba674e74c12116573434f

14 years agoChanges to stat.test so that it works with file-format 4.
dan [Mon, 19 Jul 2010 12:05:33 +0000 (12:05 +0000)] 
Changes to stat.test so that it works with file-format 4.

FossilOrigin-Name: f87bb283615847764d24943695990564f02b939e

14 years agoRe-introduce the prefix-search optimization of [feef1b15d6], which was lost in a...
dan [Mon, 19 Jul 2010 11:16:36 +0000 (11:16 +0000)] 
Re-introduce the prefix-search optimization of [feef1b15d6], which was lost in a reorganization of FTS3 code.

FossilOrigin-Name: d692434b4935e8e7858230af1c126b0be8203077

14 years agoEnable previously failing tests in e_expr.test that pass following [3e5975aa3b].
dan [Mon, 19 Jul 2010 05:27:17 +0000 (05:27 +0000)] 
Enable previously failing tests in e_expr.test that pass following [3e5975aa3b].

FossilOrigin-Name: 3d59c54a39c4c3149bf01063a91c3db35ec84b31

14 years agoFix a parser bug that was causing the relative precedence of LIKE and <
drh [Mon, 19 Jul 2010 02:30:33 +0000 (02:30 +0000)] 
Fix a parser bug that was causing the relative precedence of LIKE and <
operators to be incorrect.

FossilOrigin-Name: 3e5975aa3bb9df9e1f954bcce99384e0f13cb453

14 years agoImprovements to the formatting of parse.out file from Lemon. Add the -r option
drh [Mon, 19 Jul 2010 01:52:07 +0000 (01:52 +0000)] 
Improvements to the formatting of parse.out file from Lemon.  Add the -r option
to Lemon to disable the state sorting, making debugging easier.

FossilOrigin-Name: a2eaf8294f6d3fb39548987d632e934bb5d71cc9

14 years agoAdd the -p option to lemon to cause conflicts resolved by precedence rules
drh [Sun, 18 Jul 2010 11:35:53 +0000 (11:35 +0000)] 
Add the -p option to lemon to cause conflicts resolved by precedence rules
to appear in the parse.out file.

FossilOrigin-Name: fb6a59b0a905ddea071948f9a527483a1b1b219f

14 years agoAdd new test file e_expr.test.
dan [Sat, 17 Jul 2010 18:44:49 +0000 (18:44 +0000)] 
Add new test file e_expr.test.

FossilOrigin-Name: cbcf8abbb2cb3e603cc3da45075f6b076e5cad56

14 years agoDo not run journal3.test with the inmemory_journal permutation.
dan [Sat, 17 Jul 2010 09:27:31 +0000 (09:27 +0000)] 
Do not run journal3.test with the inmemory_journal permutation.

FossilOrigin-Name: e1d228e992fe8da1fc5aef95d9bc8be62c6b46c7

14 years agoFix a problem with wal4.test caused by changes in the previous checkin.
dan [Fri, 16 Jul 2010 11:10:25 +0000 (11:10 +0000)] 
Fix a problem with wal4.test caused by changes in the previous checkin.

FossilOrigin-Name: 1218d3703ad23d01ce0d7cbcabdc9e0d864f8717

14 years agoFix a test script bug uncovered by [a121cd80c5] that was causing shared_err.test...
dan [Fri, 16 Jul 2010 10:39:54 +0000 (10:39 +0000)] 
Fix a test script bug uncovered by [a121cd80c5] that was causing shared_err.test to fail.

FossilOrigin-Name: d7b63a4c9fdd2acdb5829224b6189e7f2f6bedb9

14 years agoPrevious check-in [534aab837e] accidently reverted some
drh [Thu, 15 Jul 2010 18:38:39 +0000 (18:38 +0000)] 
Previous check-in [534aab837e] accidently reverted some
changes from [a121cd80c5].  This check-in restores those changes.

FossilOrigin-Name: abff795f38e33d778c8dd494a601bc029237da9e

14 years agoOptionally support shared-memory in /dev/shm or other tmpfs directory
drh [Thu, 15 Jul 2010 18:32:40 +0000 (18:32 +0000)] 
Optionally support shared-memory in /dev/shm or other tmpfs directory
using an unsupported compile-time option.

FossilOrigin-Name: 534aab837e5a34fd58963ab2b505bfbb9da2e8ee

14 years agoChanges to wal.c so that SQLite can read even if the WAL file is opened read-only...
dan [Thu, 15 Jul 2010 18:20:53 +0000 (18:20 +0000)] 
Changes to wal.c so that SQLite can read even if the WAL file is opened read-only, provided the wal-index (shm file) is opened read/write.

FossilOrigin-Name: 932d19da73c9673cdd4cc01289b17761c23d23cb

14 years agoHandle the case where xShmMap returns SQLITE_BUSY.
dan [Thu, 15 Jul 2010 17:54:14 +0000 (17:54 +0000)] 
Handle the case where xShmMap returns SQLITE_BUSY.

FossilOrigin-Name: 75f5354876c4300a8e53fe551dc837dd383d1e38

14 years agoWhen creating a journal file on unix, attempt to create it with the same permissions...
dan [Thu, 15 Jul 2010 14:59:37 +0000 (14:59 +0000)] 
When creating a journal file on unix, attempt to create it with the same permissions as the associated database file.

FossilOrigin-Name: a121cd80c5ac94e5977bc3164d2500e0ea132fed

14 years agoChange a comment inside a block of code in parse.y from C++ to C style.
dan [Thu, 15 Jul 2010 11:14:21 +0000 (11:14 +0000)] 
Change a comment inside a block of code in parse.y from C++ to C style.

FossilOrigin-Name: dea7d33b2d7d25280a31a2b9c1573f4292b81187

14 years agoFix a typo in a comment in os_unix.c.
drh [Wed, 14 Jul 2010 20:51:34 +0000 (20:51 +0000)] 
Fix a typo in a comment in os_unix.c.

FossilOrigin-Name: e1e7312580a8b19825b0c52fa8af6c9382f99f22

14 years agoThe expression list on the RHS of an IN operator can no longer be empty
drh [Wed, 14 Jul 2010 20:23:52 +0000 (20:23 +0000)] 
The expression list on the RHS of an IN operator can no longer be empty
because an empty expression list is now optimized out by changes in
check-in [c288ac644d0bf].  Therefore add ALWAYS() macros around tests
for the expression list being non-empty.

FossilOrigin-Name: fd130ae56c0e23f2d5b4a82f1a09e89ed7ae1e85

14 years agoAdditional test cases and evidence marks for the empty RHS bug on the IN
drh [Wed, 14 Jul 2010 19:31:07 +0000 (19:31 +0000)] 
Additional test cases and evidence marks for the empty RHS bug on the IN
operator - ticket [80e031a00f45dca877]

FossilOrigin-Name: 6851c517ac7f80538aa5f3a1994fa1921c0ec3f4

14 years agoMake the result of an IN or NOT IN expression with an empty set on the
drh [Wed, 14 Jul 2010 18:24:06 +0000 (18:24 +0000)] 
Make the result of an IN or NOT IN expression with an empty set on the
right-hand side always either false or true, respectively, even if the
left-hand side is NULL.  Ticket [80e031a00f45dc]

FossilOrigin-Name: c288ac644d0bfda2b9bc204dc86df8e74d4f6843

14 years agoFix an assert() failure in wal2.test caused by messing with the contents of shared...
dan [Wed, 14 Jul 2010 18:10:02 +0000 (18:10 +0000)] 
Fix an assert() failure in wal2.test caused by messing with the contents of shared memory.

FossilOrigin-Name: 9f452514d96ab8d424eadc55c283c53fe831476d

14 years agoTest the libaries response to read-only or unreadable database, WAL and wal-index...
dan [Wed, 14 Jul 2010 16:37:17 +0000 (16:37 +0000)] 
Test the libaries response to read-only or unreadable database, WAL and wal-index files. If a WAL file cannot be opened in read/write mode, return SQLITE_CANTOPEN to the caller.

FossilOrigin-Name: 45bb84c6283d803fc29077fdc2d06fa50ec06a59

14 years agoOn unix, try to create the *-wal and *-shm files with the same permissions as the...
dan [Wed, 14 Jul 2010 14:48:58 +0000 (14:48 +0000)] 
On unix, try to create the *-wal and *-shm files with the same permissions as the associated database file.

FossilOrigin-Name: e5d180eed245437b61bfb257ee01e2571c93afe7

14 years agoAdd tests to pagerfault.test.
dan [Wed, 14 Jul 2010 08:20:35 +0000 (08:20 +0000)] 
Add tests to pagerfault.test.

FossilOrigin-Name: b092f2a74bdc77c1f90ad3b4448cb68a891ecf63

14 years agoTest that a corrupted WAL hash-table does not put the library into an infinite loop.
dan [Wed, 14 Jul 2010 07:06:47 +0000 (07:06 +0000)] 
Test that a corrupted WAL hash-table does not put the library into an infinite loop.

FossilOrigin-Name: c73886ed7497c0daf798c3b02ca6f5a1c2addde3

14 years agoFix a typo in the IS_BIG_INT macro used by coverage test instrumentation.
dan [Wed, 14 Jul 2010 06:20:26 +0000 (06:20 +0000)] 
Fix a typo in the IS_BIG_INT macro used by coverage test instrumentation.

FossilOrigin-Name: 5314ca3928dab1c76fa4ec5dbe110e3212c95e9f

14 years agoFix the unix driver to return an I/O error if unlink fails for any reason
drh [Wed, 14 Jul 2010 01:45:22 +0000 (01:45 +0000)] 
Fix the unix driver to return an I/O error if unlink fails for any reason
other than the file not existing in the first place.

FossilOrigin-Name: 90d73c66bfa880cdeb688b3016c8b1c58bfcf35f

14 years agoRemove the xShmOpen method from the VFS. Shared-memory is opened automatically
drh [Wed, 14 Jul 2010 00:22:36 +0000 (00:22 +0000)] 
Remove the xShmOpen method from the VFS.  Shared-memory is opened automatically
by a call to xShmMap.  Rename the xShmClose method to xShmUnmap.

FossilOrigin-Name: 2b68e50268412599576c86ae70b830d0388cb35c

14 years agoChange the name of the xShmClose VFS method to xShmUnmap, everywhere.
drh [Wed, 14 Jul 2010 00:14:30 +0000 (00:14 +0000)] 
Change the name of the xShmClose VFS method to xShmUnmap, everywhere.

FossilOrigin-Name: c2d27cf51d33e6f38bab37008d39074051f75274

14 years agoTweaks to the new shared-memory interface design - mostly comment changes.
drh [Tue, 13 Jul 2010 23:41:40 +0000 (23:41 +0000)] 
Tweaks to the new shared-memory interface design - mostly comment changes.

FossilOrigin-Name: 6336de7aa96a6e1e68cc123e5d5f485d790d95a2

14 years agoFix a typo in a comment in sqlite.h.in.
dan [Tue, 13 Jul 2010 18:45:10 +0000 (18:45 +0000)] 
Fix a typo in a comment in sqlite.h.in.

FossilOrigin-Name: 4a6c4b6605ddce59e586ab17024de5269191a823

14 years agoChanges so that the xShmOpen VFS method is no longer required. Its job can be done...
dan [Tue, 13 Jul 2010 18:44:03 +0000 (18:44 +0000)] 
Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap.

FossilOrigin-Name: f4780bde62c6c19146d2723c101540b8db898d38

14 years agoImproved documentation for the SQLITE_ACCESS_* constants that are used
drh [Tue, 13 Jul 2010 14:48:27 +0000 (14:48 +0000)] 
Improved documentation for the SQLITE_ACCESS_* constants that are used
with the xAccess() method of the VFS.

FossilOrigin-Name: 3d4bb65f10ed0297f38e732ce57e5440cba8deef

14 years agoAdd proposed interface change to sqlite.h.in. This commit breaks the build.
dan [Tue, 13 Jul 2010 14:33:48 +0000 (14:33 +0000)] 
Add proposed interface change to sqlite.h.in. This commit breaks the build.

FossilOrigin-Name: 52577bb5e723d8de4fc609286666b581f8d9c746