]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
14 years agoAdd a couple of extra tests. fts3-prefix-search
dan [Tue, 14 Jun 2011 11:32:50 +0000 (11:32 +0000)] 
Add a couple of extra tests.

FossilOrigin-Name: aefd46dfae7e06fbaf4f2b9a86a7f2ac6927331e

14 years agoFix another bug caused by NEAR/matchinfo/order=DESC interaction.
dan [Tue, 14 Jun 2011 09:00:27 +0000 (09:00 +0000)] 
Fix another bug caused by NEAR/matchinfo/order=DESC interaction.

FossilOrigin-Name: 04907fbadeb743c95cc9f3529e63ef388684799f

14 years agoMerge recent trunk changes into fts3-prefix-search branch.
dan [Tue, 14 Jun 2011 07:22:30 +0000 (07:22 +0000)] 
Merge recent trunk changes into fts3-prefix-search branch.

FossilOrigin-Name: 135ce30f62ebd6a1b239c18dbbd9c926ea507db4

14 years agoRemove unused parameters from internal fts3 function.
dan [Tue, 14 Jun 2011 07:14:43 +0000 (07:14 +0000)] 
Remove unused parameters from internal fts3 function.

FossilOrigin-Name: 06de3f2cbc27cdfd9f83218c9ea576f74f60d07b

14 years agoUpdate trace2.test to account for new FTS queries.
dan [Mon, 13 Jun 2011 18:21:11 +0000 (18:21 +0000)] 
Update trace2.test to account for new FTS queries.

FossilOrigin-Name: 2c20129297b64f4113b8edb551385eb918279471

14 years agoAdd tests for deferred tokens to fts3auto.test. Fix a problem with OR queries and...
dan [Mon, 13 Jun 2011 17:00:12 +0000 (17:00 +0000)] 
Add tests for deferred tokens to fts3auto.test. Fix a problem with OR queries and deferred tokens.

FossilOrigin-Name: b9fb69e55bb05a8819688ee63987f2a05c33d59b

14 years agoChanges to fts3auto.test to test OR, AND and NOT operations.
dan [Mon, 13 Jun 2011 13:48:36 +0000 (13:48 +0000)] 
Changes to fts3auto.test to test OR, AND and NOT operations.

FossilOrigin-Name: e4ab6cdb101bbeb804820425cf569ee7dc2397fb

14 years agoUse only unsigned values in the implementatin of LIKE and GLOB so that
drh [Mon, 13 Jun 2011 12:19:21 +0000 (12:19 +0000)] 
Use only unsigned values in the implementatin of LIKE and GLOB so that
values won't overflow to negative when dealing with malformed UTF8.

FossilOrigin-Name: 77f01578bb565d1bc884b374b68bae10ce34a084

14 years agoFix a bug exposed by combining matchinfo(), NEAR and "ORDER BY rowid DESC".
dan [Mon, 13 Jun 2011 09:11:01 +0000 (09:11 +0000)] 
Fix a bug exposed by combining matchinfo(), NEAR and "ORDER BY rowid DESC".

FossilOrigin-Name: 5f6b87f420f21749aa7c72e020c50aca74890086

14 years agoWhen updating a field that requires foreign key constraints be checked, ensure that...
dan [Fri, 10 Jun 2011 18:33:35 +0000 (18:33 +0000)] 
When updating a field that requires foreign key constraints be checked, ensure that the indexes and tables are consistent when the FK logic is run. Otherwise, it may detect the inconsistency and report database corruption.

FossilOrigin-Name: 2b3d9996a829c62fbaf7c92d50e44636340b07c6

14 years agoFix minor problems with foreign key constraints where the parent table is the same...
dan [Fri, 10 Jun 2011 16:33:25 +0000 (16:33 +0000)] 
Fix minor problems with foreign key constraints where the parent table is the same as the child table.

FossilOrigin-Name: 442d8d8bfe443797482354ba8766d97d3d6acaae

14 years agoFix a line in pcache1.c where a global data structure is accessed without using the...
dan [Thu, 9 Jun 2011 17:53:43 +0000 (17:53 +0000)] 
Fix a line in pcache1.c where a global data structure is accessed without using the GLOBAL() macro. This causes a subtle malfunction on test systems that use SQLITE_OMIT_WSD.

FossilOrigin-Name: b11b2e1f8ccadf78bebe2278f05a8e3d3e543328

14 years agoFix problems to do with using both OR and NEAR operators in a single expression.
dan [Thu, 9 Jun 2011 10:48:02 +0000 (10:48 +0000)] 
Fix problems to do with using both OR and NEAR operators in a single expression.

FossilOrigin-Name: 4e8dd19eef04777d800977faf1859a405e396f30

14 years agoFix various issues to do with deferred tokens, NEAR expressions and matchinfo().
dan [Wed, 8 Jun 2011 18:39:07 +0000 (18:39 +0000)] 
Fix various issues to do with deferred tokens, NEAR expressions and matchinfo().

FossilOrigin-Name: 3972a787df5ec253b99b148385655e7b68d851fa

14 years agoHave NEAR queries use incremental merging. Fix issues surrounding the deferred token...
dan [Tue, 7 Jun 2011 18:35:45 +0000 (18:35 +0000)] 
Have NEAR queries use incremental merging. Fix issues surrounding the deferred token optimization.

FossilOrigin-Name: 9d10a6846b12a9cc8fd4fdc3affd931a27218b5a

14 years agoFix a comment type on the description of the Schema object.
drh [Tue, 7 Jun 2011 18:31:14 +0000 (18:31 +0000)] 
Fix a comment type on the description of the Schema object.

FossilOrigin-Name: 095cd9a6ec175b703ff3fcafeffb3349f21bd831

14 years agoMerge the latest trunk changes into the fts3-prefix-search branch.
drh [Mon, 6 Jun 2011 18:14:25 +0000 (18:14 +0000)] 
Merge the latest trunk changes into the fts3-prefix-search branch.

FossilOrigin-Name: 567dd84359218245d4e6887547e2a48881f2c8e0

14 years agoModify fts3rnd.test to run tests for both "ORDER BY docid ASC" and "ORDER BY docid...
dan [Mon, 6 Jun 2011 14:51:50 +0000 (14:51 +0000)] 
Modify fts3rnd.test to run tests for both "ORDER BY docid ASC" and "ORDER BY docid DESC" with both order=ASC and order=DESC FTS tables. Fixes for some bugs found.

FossilOrigin-Name: 89f2f482e077241ac29a58eadf44a72a9c01f98c

14 years agoAdd assert() statements to verify that u16 pointers associated with
drh [Mon, 6 Jun 2011 13:38:11 +0000 (13:38 +0000)] 
Add assert() statements to verify that u16 pointers associated with
the enhancement in [897f56a158] are always 2-byte aligned.

FossilOrigin-Name: 98ccfa930e8e5f10808a518e3e22e85e8a8a65c2

14 years agoClean up the code for processing FTS4 options a bit.
dan [Mon, 6 Jun 2011 06:55:38 +0000 (06:55 +0000)] 
Clean up the code for processing FTS4 options a bit.

FossilOrigin-Name: 0425138a2365d23b07d88fda2b1f458f112f389d

14 years agoRemove some unreachable code.
dan [Sat, 4 Jun 2011 20:13:24 +0000 (20:13 +0000)] 
Remove some unreachable code.

FossilOrigin-Name: 650e1a79eda5a2134a1fbd305ab1f205a57c0892

14 years agoAllow the "order=DESC" and "order=ASC" parameters in FTS4 "CREATE VIRTUAL TABLE"...
dan [Sat, 4 Jun 2011 20:04:35 +0000 (20:04 +0000)] 
Allow the "order=DESC" and "order=ASC" parameters in FTS4 "CREATE VIRTUAL TABLE" statements. Tables created with "order=DESC" store all doclists in descending order, which allows optimizations normally applied to "ORDER BY docid ASC" queries to be used with "ORDER BY docid DESC" queries instead.

FossilOrigin-Name: f6a0193f5a32603eb48bddc6297042dbd2ffe96e

14 years agoPerformance improvement to the btree search routine.
drh [Sat, 4 Jun 2011 01:43:53 +0000 (01:43 +0000)] 
Performance improvement to the btree search routine.

FossilOrigin-Name: 65db822f200bafe9abe59b33b17b2c643c17c5e8

14 years agoPerformance improvements on memory copies inside of btree by moving 2 bytes
drh [Fri, 3 Jun 2011 23:28:33 +0000 (23:28 +0000)] 
Performance improvements on memory copies inside of btree by moving 2 bytes
at a time instead of just 1 byte at a time.

FossilOrigin-Name: 897f56a158ebe62758c9998e4941ae046c75fb99

14 years agoPerformance enhancement to the blob-literal tokenizer.
drh [Fri, 3 Jun 2011 21:34:45 +0000 (21:34 +0000)] 
Performance enhancement to the blob-literal tokenizer.

FossilOrigin-Name: 61aa2031f1c5ae05e31077588a55194a9546262a

14 years agoCreate and use a function especially for adding the ParseSchema opcode.
drh [Fri, 3 Jun 2011 20:11:17 +0000 (20:11 +0000)] 
Create and use a function especially for adding the ParseSchema opcode.
This gives a small reduction in code and a small performance increase.

FossilOrigin-Name: 957b2ab67c6185f0e1062593d237de5c434a38bf

14 years agoFTS changes: Remove unreachable code. Fix bugs. When processing a large doclist incre...
dan [Fri, 3 Jun 2011 18:00:19 +0000 (18:00 +0000)] 
FTS changes: Remove unreachable code. Fix bugs. When processing a large doclist incrementally, read from disk incrementally too.

FossilOrigin-Name: a4c7e2820824e82580730c36f85aede2efa66754

14 years agoFactor an "if" out of a loop in balance_nonroot() for about a 1% performance
drh [Fri, 3 Jun 2011 17:50:49 +0000 (17:50 +0000)] 
Factor an "if" out of a loop in balance_nonroot() for about a 1% performance
increase.

FossilOrigin-Name: 1bd72d0c616e20fdb395c72ecd96579090ae26cb

14 years agoHush some harmless compiler warnings in the URI parsing logic.
drh [Fri, 3 Jun 2011 14:19:10 +0000 (14:19 +0000)] 
Hush some harmless compiler warnings in the URI parsing logic.

FossilOrigin-Name: 0206bc6f87bb9393218a380fc5b18039d334a8d8

14 years agoInclude more detailed version information in the command-line shell output.
drh [Fri, 3 Jun 2011 13:28:22 +0000 (13:28 +0000)] 
Include more detailed version information in the command-line shell output.

FossilOrigin-Name: 049c3c42fdefea8de7ec7008871963e37ce2d7bc

14 years agoAdd shell scripts used for testing compiler warnings (tool/warnings.sh),
drh [Fri, 3 Jun 2011 13:06:50 +0000 (13:06 +0000)] 
Add shell scripts used for testing compiler warnings (tool/warnings.sh),
for verifying that the library exports the correct symbols (tool/symbols.sh),
and to demonstrate building a full-featured command-line shell
(tool/build-shell.sh).

FossilOrigin-Name: 3aca9a92c8b29bb43f65f93593ba4defd65139dc

14 years agoFix the build when using SQLITE_OMIT_PRAGMA.
drh [Fri, 3 Jun 2011 13:02:57 +0000 (13:02 +0000)] 
Fix the build when using SQLITE_OMIT_PRAGMA.

FossilOrigin-Name: 051f4635bf1e9618b108c4177b8ecc5762ed08e7

14 years agoFix an #ifdef of SQLITE_OMIT_VIRTUALTABLE that had an extra "_" character.
drh [Fri, 3 Jun 2011 12:15:26 +0000 (12:15 +0000)] 
Fix an #ifdef of SQLITE_OMIT_VIRTUALTABLE that had an extra "_" character.

FossilOrigin-Name: 93e0be2bbf16d66d97ea7344187139d254b11cc3

14 years agoChanges to improve performance and support LIMIT clauses on fts3 tables. This branch...
dan [Thu, 2 Jun 2011 19:57:24 +0000 (19:57 +0000)] 
Changes to improve performance and support LIMIT clauses on fts3 tables. This branch is unstable for now.

FossilOrigin-Name: 28149a7882a1e9dfe4a75ec5b91d176ebe6284e9

14 years agoFix a faulty assert() in the WAL-mode logic for read-only shared memory.
drh [Thu, 2 Jun 2011 17:24:49 +0000 (17:24 +0000)] 
Fix a faulty assert() in the WAL-mode logic for read-only shared memory.

FossilOrigin-Name: a13cfe616284f4ee86f0406e7b8fe8f9ba6e6990

14 years agoAdd a missing check for out-of-memory in the lemon code generator.
drh [Thu, 2 Jun 2011 15:48:51 +0000 (15:48 +0000)] 
Add a missing check for out-of-memory in the lemon code generator.

FossilOrigin-Name: efb20b9da6c7cb310a449cc818eaccd3d5bb4ab3

14 years agoMerge the read-only shared memory branch into trunk. After this merge, an
drh [Thu, 2 Jun 2011 13:04:33 +0000 (13:04 +0000)] 
Merge the read-only shared memory branch into trunk.  After this merge, an
unprivileged process can open WAL-mode databases owned by another user as
long as a database connection with write permission exists on the database
file and if the readonly_shm=1 URI query parameter is supplied.

FossilOrigin-Name: 19084a6641f77a62110b04ea50e298fe132ea784

14 years agoMake use of the sqlite3GetBoolean() interface for more robust processing wal-readonly
drh [Wed, 1 Jun 2011 20:13:36 +0000 (20:13 +0000)] 
Make use of the sqlite3GetBoolean() interface for more robust processing
of the readonly_shm query parameter inside of unixShmMap().

FossilOrigin-Name: 1f930d7e04cd4a5ff3d91a0e9f1b62114f1cebd2

14 years agoSimplify the wal-readonly branch so that it does not require changes to
drh [Wed, 1 Jun 2011 20:01:49 +0000 (20:01 +0000)] 
Simplify the wal-readonly branch so that it does not require changes to
anything other than os_unix.c and wal.c and a couple of new error codes.

FossilOrigin-Name: d6b4709de4d1f8af001f58938247f00a652a616e

14 years agoPull the latest trunk changes into the wal-readonly branch.
drh [Wed, 1 Jun 2011 19:44:57 +0000 (19:44 +0000)] 
Pull the latest trunk changes into the wal-readonly branch.

FossilOrigin-Name: 0b63b71357a65e26ecd3f3bb34a5f14feee322f4

14 years agoAvoid unnecessary duplication of SQL parameter names.
drh [Wed, 1 Jun 2011 19:16:06 +0000 (19:16 +0000)] 
Avoid unnecessary duplication of SQL parameter names.

FossilOrigin-Name: e704e8690ae35decc9769a45cf8d519ccad8b79d

14 years agoRefactor the SQL parameter processing so that parameter names for values
drh [Wed, 1 Jun 2011 18:15:55 +0000 (18:15 +0000)] 
Refactor the SQL parameter processing so that parameter names for values
that are optimized out of the prepare statement are not forgotten.

FossilOrigin-Name: b3aaf715b60b8a338cc6c92dad1ead4a3f7146a3

14 years agoMerge the latest trunk changes into the wal-readonly branch.
drh [Tue, 31 May 2011 17:08:32 +0000 (17:08 +0000)] 
Merge the latest trunk changes into the wal-readonly branch.

FossilOrigin-Name: 2c6b5a28e3f6b7cb96b944d0a254f3707885f1ce

14 years agoFix a problem in the sqlite3TestErrorName() function (used only for testing)
drh [Tue, 31 May 2011 16:50:23 +0000 (16:50 +0000)] 
Fix a problem in the sqlite3TestErrorName() function (used only for testing)
that appears to have originated from a bad merge.

FossilOrigin-Name: a0ae314c7f41d0146a9ee1adc576cd977219a378

14 years agoUpdate the documentation to state that any parameter that is optimized out
drh [Tue, 31 May 2011 11:56:15 +0000 (11:56 +0000)] 
Update the documentation to state that any parameter that is optimized out
of a prepared statement becomes an anonymous parameter for which
sqlite3_bind_parameter_name() returns NULL.

FossilOrigin-Name: 701b8a23e3ea2c94454af5d9bd1e72acb66d0fe2

14 years agoMinor performance improvements.
drh [Mon, 30 May 2011 23:42:16 +0000 (23:42 +0000)] 
Minor performance improvements.

FossilOrigin-Name: f9950c6af1813f724dacd7455f472acec921b06a

14 years agoUpdate evidence marks on the URI filename tests to conform to the latest
drh [Mon, 30 May 2011 15:06:48 +0000 (15:06 +0000)] 
Update evidence marks on the URI filename tests to conform to the latest
documentation.

FossilOrigin-Name: 1bab03c4811b5e5b3d15632bc2a3844891f9fad7

14 years agoMake sure the P5 argument to the OP_VUpdate opcode is always set to a
drh [Mon, 30 May 2011 14:35:48 +0000 (14:35 +0000)] 
Make sure the P5 argument to the OP_VUpdate opcode is always set to a
valid conflict resolution code.

FossilOrigin-Name: e3350dbd9f472c27ea6bc872d85098ac89d874c7

14 years agoFix a "#ifdef" from check-in [03f7d36a8a] that should have been "#ifndef".
drh [Sat, 28 May 2011 19:24:15 +0000 (19:24 +0000)] 
Fix a "#ifdef" from check-in [03f7d36a8a] that should have been "#ifndef".

FossilOrigin-Name: edb865c35415f9553f8279028120f7b8de2bf7e2

14 years agoMinor changes made while planning a larger change.
dan [Sat, 28 May 2011 15:57:40 +0000 (15:57 +0000)] 
Minor changes made while planning a larger change.

FossilOrigin-Name: 84097a4c759b1d65890af885f137d3cb16eef584

14 years agoPrint a log message on each cache spill if compiled with
drh [Sat, 28 May 2011 15:53:07 +0000 (15:53 +0000)] 
Print a log message on each cache spill if compiled with
SQLITE_LOG_CACHE_SPILL.

FossilOrigin-Name: 5f15579f8ca747f0fa0a7867ceffc8c7b8f904e6

14 years agoChanges to work with SQLITE_OMIT_VIRTUAL_TABLE.
drh [Thu, 26 May 2011 14:19:14 +0000 (14:19 +0000)] 
Changes to work with SQLITE_OMIT_VIRTUAL_TABLE.

FossilOrigin-Name: 03f7d36a8a24825b7542b5fed651af1622ae4eb5

14 years agoFix some minor and harmless compiler warnings.
drh [Wed, 25 May 2011 23:18:02 +0000 (23:18 +0000)] 
Fix some minor and harmless compiler warnings.

FossilOrigin-Name: a4755e7088c3cc7c5ea191ce37f3950472f523ec

14 years agoIgnore malloc failures within the WAL file truncation attempt for
drh [Wed, 25 May 2011 20:25:10 +0000 (20:25 +0000)] 
Ignore malloc failures within the WAL file truncation attempt for
journal_size_limit.

FossilOrigin-Name: dd19105aa9521ffc0edcf16b84c064d5ebad55d7

14 years agoIf a prefix index of size N is not present, use a prefix index of size N+1 along...
dan [Wed, 25 May 2011 19:17:32 +0000 (19:17 +0000)] 
If a prefix index of size N is not present, use a prefix index of size N+1 along with the terms index for queries for prefixes of length N.

FossilOrigin-Name: cc83991caae7c7d647432d5711b6cd80228c3002

14 years agoMerge trunk changes into experimental fts3-prefix-search branch.
dan [Wed, 25 May 2011 18:47:26 +0000 (18:47 +0000)] 
Merge trunk changes into experimental fts3-prefix-search branch.

FossilOrigin-Name: f0f0a03db214b68a37069f64c27ae8520220c900

14 years agoFix a case where a malloc() error could lead to mismatched virtual-table xBegin/xComm...
dan [Wed, 25 May 2011 18:46:22 +0000 (18:46 +0000)] 
Fix a case where a malloc() error could lead to mismatched virtual-table xBegin/xCommit/xRollback callbacks.

FossilOrigin-Name: d807304a695fc85402b86e1cd32a6e3bbb2823c8

14 years agoChange fts4 so that the prefix= parameter is passes a comma-separated list of integer...
dan [Wed, 25 May 2011 18:34:53 +0000 (18:34 +0000)] 
Change fts4 so that the prefix= parameter is passes a comma-separated list of integers. For each integer N, a separate index of all prefixes of length N bytes is created.

FossilOrigin-Name: be59bf49402d2e2f4b95fb6668849f3745cb7bf2

14 years agoFix a compiler warning.
drh [Wed, 25 May 2011 15:54:09 +0000 (15:54 +0000)] 
Fix a compiler warning.

FossilOrigin-Name: 6df99e52dabf2a243ad635529649b86c21735e91

14 years agoChanges to savepoint in virtual tables for simpler and more consistent
drh [Wed, 25 May 2011 01:16:42 +0000 (01:16 +0000)] 
Changes to savepoint in virtual tables for simpler and more consistent
operation.

FossilOrigin-Name: 92f26a8b8f18832cb1f8ba7dd8e5b020e71a5883

14 years agoIf the fts4 option prefix=1 is specified, have the fts4 module maintain an index...
dan [Tue, 24 May 2011 18:49:45 +0000 (18:49 +0000)] 
If the fts4 option prefix=1 is specified, have the fts4 module maintain an index of prefixes as well as terms.

FossilOrigin-Name: b5bdc639898ee22eebedeb560810e94e74de8aa4

14 years agoDo not invoke the xRollbackTo or xRelease methods of a virtual table without
drh [Tue, 24 May 2011 15:36:01 +0000 (15:36 +0000)] 
Do not invoke the xRollbackTo or xRelease methods of a virtual table without
having first invoked an appropriate xSavepoint method.  Add assert() statements
to FTS3/4 to verify that this is happening in all cases.

FossilOrigin-Name: 651ef24249d8c22c4f13e4c0bb98a60099cfd23a

14 years agoMake sure the savepoint index is correct one calls to sqlite3VtabSavepoint
drh [Tue, 24 May 2011 00:35:56 +0000 (00:35 +0000)] 
Make sure the savepoint index is correct one calls to sqlite3VtabSavepoint
with SAVEPOINT_BEGIN.

FossilOrigin-Name: a9d095660ca0e99b226e0fe669c11a0be6c49710

14 years agoMinor cleanups to the header comments on various test_*.c file, to make
drh [Mon, 23 May 2011 18:37:42 +0000 (18:37 +0000)] 
Minor cleanups to the header comments on various test_*.c file, to make
the suitable for programmer-level documentation.

FossilOrigin-Name: a65d043a2ad895b931871c67e0ef397a1dc614a6

14 years agoAdjustments to documentation hyperlinks to accommodate the new VFS
drh [Fri, 20 May 2011 20:42:11 +0000 (20:42 +0000)] 
Adjustments to documentation hyperlinks to accommodate the new VFS
documentation.

FossilOrigin-Name: 139a8f53ae1979591734a8244fb33655a6499193

14 years agoAdd a big comment to the top of test_vfstrace.c to explain how to compile
drh [Fri, 20 May 2011 13:26:58 +0000 (13:26 +0000)] 
Add a big comment to the top of test_vfstrace.c to explain how to compile
and use that module.

FossilOrigin-Name: a6a0fefbe503a2c81aa1847ced3bac21850d8faa

14 years agoFix the URI test script so that it works even if there is a subdirectory
drh [Fri, 20 May 2011 01:50:01 +0000 (01:50 +0000)] 
Fix the URI test script so that it works even if there is a subdirectory
named "test".

FossilOrigin-Name: 2018d4e108872f2436df046636401b89cfde589d

14 years agoMark an unreachable branch in the recent WAL problem as unreachable.
drh [Fri, 20 May 2011 01:49:30 +0000 (01:49 +0000)] 
Mark an unreachable branch in the recent WAL problem as unreachable.

FossilOrigin-Name: 3e8a29ff8953054cb3b88db5997b5bae38ba09dd

14 years agoAdd another test for [2d1a5c67df].
dan [Thu, 19 May 2011 07:53:23 +0000 (07:53 +0000)] 
Add another test for [2d1a5c67df].

FossilOrigin-Name: 97fcd9e88891abd44037004e47862bcecfa1b0c9

14 years agoWhen committing a WAL transaction, make sure at least one page is
drh [Thu, 19 May 2011 01:21:42 +0000 (01:21 +0000)] 
When committing a WAL transaction, make sure at least one page is
written to the WAL file so that the WAL subsystem will have a page
on which to set the commit flag.
Ticket [2d1a5c67dfc236].

FossilOrigin-Name: 67bf1c9a888b0d84d252d6c4c754c2c51994d208

14 years agoEnable URI filenames in the command-line shell. Add a check to the
drh [Wed, 18 May 2011 17:15:06 +0000 (17:15 +0000)] 
Enable URI filenames in the command-line shell.  Add a check to the
beginning of the shell to make sure it is compiled with the same
SQLite source and header.

FossilOrigin-Name: de58cb28387f44c35b1a81bdab853cafd938c1a6

14 years agoMake sure the multiplexor shim uses a full pathname for temp file that it
drh [Wed, 18 May 2011 03:02:10 +0000 (03:02 +0000)] 
Make sure the multiplexor shim uses a full pathname for temp file that it
creates.

FossilOrigin-Name: 186d7ff1d9804d508e472e4939608bf2be67bdc2

14 years agoRemove unreachable branches from the 8.3 filename logic.
drh [Wed, 18 May 2011 02:41:10 +0000 (02:41 +0000)] 
Remove unreachable branches from the 8.3 filename logic.

FossilOrigin-Name: 4f7e7b44f2d17681318a1fd22466d3cc03103fc4

14 years agoUpdate multiplex VFS to handle empty filenames which can occur for during vacuuming...
shaneh [Wed, 18 May 2011 02:22:41 +0000 (02:22 +0000)] 
Update multiplex VFS to handle empty filenames which can occur for during vacuuming (temp file names.)

FossilOrigin-Name: a074986045f1a81fb831ffee4a29af13c978b053

14 years agoAdd the ability to limit filenames to 8+3 using the
drh [Tue, 17 May 2011 20:36:21 +0000 (20:36 +0000)] 
Add the ability to limit filenames to 8+3 using the
SQLITE_ENABLE_8_3_NAMES compile-time option together with a URI
parameter of "8_3_names=1".

FossilOrigin-Name: 96d609856025919571f781207dfa6a24b1732e8d

14 years agoFix an off-by-one error in the new sqlite3_uri_parameter() function.
drh [Tue, 17 May 2011 19:43:38 +0000 (19:43 +0000)] 
Fix an off-by-one error in the new sqlite3_uri_parameter() function.

FossilOrigin-Name: 9593a640795458ce6e57e02dd5d702b642858f76

14 years agoAdd the sqlite3_uri_parameter() interface function for use in building
drh [Tue, 17 May 2011 18:53:08 +0000 (18:53 +0000)] 
Add the sqlite3_uri_parameter() interface function for use in building
new VFSes.

FossilOrigin-Name: 6b5de95fb575c7ceb3034068c4f5e0fccb1b15ac

14 years agoAdd extended return code SQLITE_CORRUPT_VTAB. Returned when the tcontents of the...
dan [Tue, 17 May 2011 15:56:16 +0000 (15:56 +0000)] 
Add extended return code SQLITE_CORRUPT_VTAB. Returned when the tcontents of the sqlite tables used internally by a virtual table module are invalid or inconsistent.

FossilOrigin-Name: 8844e8bfb87314fb40ecb92705e8fff88f72bb38

14 years agoAvoid exceeding array bounds when reading a corrupt database file in
drh [Tue, 17 May 2011 15:21:56 +0000 (15:21 +0000)] 
Avoid exceeding array bounds when reading a corrupt database file in
autovacuum mode.  Fixes a problem discovered by John Regehr and Peng Li
using a customized clang compiler.

FossilOrigin-Name: f7c525f5fc31e909721df2b1e66fc62dfb105718

14 years agoAvoid including fts3_term.c in the amalgamation, as it contains test code only.
dan [Tue, 17 May 2011 14:41:36 +0000 (14:41 +0000)] 
Avoid including fts3_term.c in the amalgamation, as it contains test code only.

FossilOrigin-Name: f392b7ae0266b4c694836583cb91b10f2b6c0752

14 years agoEnhance WAL mode so that the WAL file honors the journal size limit set
drh [Mon, 16 May 2011 21:00:27 +0000 (21:00 +0000)] 
Enhance WAL mode so that the WAL file honors the journal size limit set
by PRAGMA journal_size_limit.

FossilOrigin-Name: db7e500f69faf1906a84991ba67d26a195f02ae5

14 years agoMake arrangements so that virtual table inserts into shadow tables do
drh [Fri, 13 May 2011 18:51:42 +0000 (18:51 +0000)] 
Make arrangements so that virtual table inserts into shadow tables do
not modify the sqlite3_last_insert_rowid() return.  Document that this
is how sqlite3_last_insert_rowid() works.

FossilOrigin-Name: e569f18b989aef853c9d71eaf73d6967f0a8c583

14 years agoAlso add fts3_term.c to main.mk.
drh [Fri, 13 May 2011 17:11:20 +0000 (17:11 +0000)] 
Also add fts3_term.c to main.mk.

FossilOrigin-Name: 966f2d2c1f01b6345eab5df87a40d337ced1c087

14 years agoAdd fts3_term.c to amalg gen script and configure input files.
shaneh [Thu, 12 May 2011 21:01:12 +0000 (21:01 +0000)] 
Add fts3_term.c to amalg gen script and configure input files.

FossilOrigin-Name: 6ee0773290a4c4aac2b2b5e1741e65170e08a8bb

14 years agoImprovements to documentation hyperlinks. Change the value of
drh [Wed, 11 May 2011 20:54:32 +0000 (20:54 +0000)] 
Improvements to documentation hyperlinks.  Change the value of
SQLITE_OPEN_URI to an unreserved value.

FossilOrigin-Name: 851ab75d5f5d64d95d6237c28658bbc32145b78b

14 years agoURI filename documentation updates.
drh [Wed, 11 May 2011 19:00:10 +0000 (19:00 +0000)] 
URI filename documentation updates.

FossilOrigin-Name: 8885c8677b239d4cbef24b9409a1736e1ae97a3f

14 years agoAdd missing comments associated with readonly shm changes.
dan [Wed, 11 May 2011 17:36:17 +0000 (17:36 +0000)] 
Add missing comments associated with readonly shm changes.

FossilOrigin-Name: 6a2ea52e6c09a570428161090c2f087c66f714ec

14 years agoMerge latest trunk changes. Add a couple of readonly shm tests.
dan [Wed, 11 May 2011 15:53:16 +0000 (15:53 +0000)] 
Merge latest trunk changes. Add a couple of readonly shm tests.

FossilOrigin-Name: cde45a033ee6834900f5f5c272c383408883a74c

14 years agoOnly open a read-only connection to shared-memory if the "readonly_shm=1" option...
dan [Wed, 11 May 2011 14:57:33 +0000 (14:57 +0000)] 
Only open a read-only connection to shared-memory if the "readonly_shm=1" option is specified as part of the database file URI (and if a read-write connection fails).

FossilOrigin-Name: 671ba5fc59f7a958e5a4138d2425b1173a442ad7

14 years agoHave flags passed to sqlite3_open_v2() apply to the main and any attached databases...
dan [Tue, 10 May 2011 18:39:10 +0000 (18:39 +0000)] 
Have flags passed to sqlite3_open_v2() apply to the main and any attached databases. And change things so that any "mode=xxx" or "cache=xxx" options specified as part of a URI for the main database do not also apply to attached databases.

FossilOrigin-Name: 3e490915301216e242a5cdeb0febaff12ed53cb9

14 years agoUpdate URI test cases to account for the new error message format.
dan [Tue, 10 May 2011 17:43:28 +0000 (17:43 +0000)] 
Update URI test cases to account for the new error message format.

FossilOrigin-Name: 5bde568028216f5bbf76fa0b61bf5b736699f4b1

14 years agoAdd experimental support for read-only connections to WAL databases.
dan [Tue, 10 May 2011 17:31:29 +0000 (17:31 +0000)] 
Add experimental support for read-only connections to WAL databases.

FossilOrigin-Name: bb59f9862da45d25fb51d7821130854828c91c98

14 years agoAdd new documentation keywords to the sqlite3_vfs description.
drh [Tue, 10 May 2011 10:17:02 +0000 (10:17 +0000)] 
Add new documentation keywords to the sqlite3_vfs description.

FossilOrigin-Name: ad3389a9ab07f6b811841ffa76a5292719c4487d

14 years agoReturn a suitable error message if the mode= argument to a URI specifies
drh [Mon, 9 May 2011 19:20:17 +0000 (19:20 +0000)] 
Return a suitable error message if the mode= argument to a URI specifies
a higher mode than what is allowed by context.  Other minor cleanups for
the URI parsing logic.

FossilOrigin-Name: d9bc1c7fe0ca5f6973a85827330958f4d09f8171

14 years agoSet the sqlite3.mallocFailed flag if sqlite3ParseUri fails with SQLITE_NOMEM.
drh [Sat, 7 May 2011 18:40:36 +0000 (18:40 +0000)] 
Set the sqlite3.mallocFailed flag if sqlite3ParseUri fails with SQLITE_NOMEM.

FossilOrigin-Name: ca3797d4967361e31a8a5ce1ce8190b095f3ed4c

14 years agoReturn SQLITE_MISUSE from the sqlite3_open_v2() function if the 3rd parameter
drh [Sat, 7 May 2011 18:18:33 +0000 (18:18 +0000)] 
Return SQLITE_MISUSE from the sqlite3_open_v2() function if the 3rd parameter
is not a valid set of bit-values.

FossilOrigin-Name: 3c926ce0976e765b4c51fcd81d251268ff21a741

14 years agoFix minor compiler warnings.
drh [Sat, 7 May 2011 14:40:29 +0000 (14:40 +0000)] 
Fix minor compiler warnings.

FossilOrigin-Name: 139eecbe1b072711a36128f1eeb24fc3e3bacc1c

14 years agoMerge the uri branch with the trunk.
dan [Fri, 6 May 2011 18:55:31 +0000 (18:55 +0000)] 
Merge the uri branch with the trunk.

FossilOrigin-Name: 88df33c45fd5875ea82bc757b239fe3e61663c12

14 years agoRemove some unnecessary modifications from the uri branch. Add a test to show that... uri
dan [Fri, 6 May 2011 18:53:27 +0000 (18:53 +0000)] 
Remove some unnecessary modifications from the uri branch. Add a test to show that ATTACH only interprets its argument as a URI if the connection was opened with SQLITE_OPEN_URI (or URI interpretation is globally enabled).

FossilOrigin-Name: aa90b943254cf348aa2d23ac05e1895b188e2101

14 years agoUpdate comments and documentation associated with new URI parsing code. Add test...
dan [Fri, 6 May 2011 18:34:54 +0000 (18:34 +0000)] 
Update comments and documentation associated with new URI parsing code. Add test file e_uri.test, containing tests mapped to documentation regarding URI filenames.

FossilOrigin-Name: 92751788eae082e3104838cb6dd8b9793cb325d1