]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 years agoFix the sharedA.test module so that it does not attempt to run TCL callbacks shared-cache-fixes
drh [Wed, 15 May 2013 16:08:33 +0000 (16:08 +0000)] 
Fix the sharedA.test module so that it does not attempt to run TCL callbacks
on a different thread from where the interpreter was originally created.

FossilOrigin-Name: 65ff754e3521aa8ee9135d235166cac2a8f57ebd

12 years agoDo not run sharedA.test if the system is not threadsafe.
dan [Wed, 15 May 2013 15:53:52 +0000 (15:53 +0000)] 
Do not run sharedA.test if the system is not threadsafe.

FossilOrigin-Name: d484eaf8d6dfaf2c1065b93b2a52a6db91c09fa4

12 years agoMerge latest trunk changes with this branch.
dan [Wed, 15 May 2013 15:42:14 +0000 (15:42 +0000)] 
Merge latest trunk changes with this branch.

FossilOrigin-Name: 47dd65a890955f333d431e275f3f4d95d34a5ba5

12 years agoWhen loading a database schema that contains an index definition that includes a...
dan [Wed, 15 May 2013 15:16:50 +0000 (15:16 +0000)] 
When loading a database schema that contains an index definition that includes a COLLATE clause for which the collation sequence is unavailable, do not assume that that index uses BINARY instead. Fix for [0fc59f908b].

FossilOrigin-Name: 6dae62c4e505a9a1a22c2771ef3e1921407c4748

12 years agoAdd the rot13.c loadable extension.
drh [Wed, 15 May 2013 13:05:03 +0000 (13:05 +0000)] 
Add the rot13.c loadable extension.

FossilOrigin-Name: 8f9bd8e7a88eb11fb17d29954fa4b8c2840a5019

12 years agoWhen closing a connection, avoid tripping active cursors belonging to a different...
dan [Wed, 15 May 2013 10:21:50 +0000 (10:21 +0000)] 
When closing a connection, avoid tripping active cursors belonging to a different shared-cache client. Also, if sqlite3_close() is called while there are still active statements belonging to the connection, return SQLITE_BUSY and do not roll back any active transaction.

FossilOrigin-Name: 6071b7cce067c807e040283fc4b7449dc6eca498

12 years agoMerge together the fork in this branch.
drh [Tue, 14 May 2013 23:13:41 +0000 (23:13 +0000)] 
Merge together the fork in this branch.

FossilOrigin-Name: 164e3d4da20cc16d2a04d602b5a8229e0db99d9d

12 years agoFix an assert() in unlockBtreeIfUnused() so that it checks for the existance
drh [Tue, 14 May 2013 23:12:06 +0000 (23:12 +0000)] 
Fix an assert() in unlockBtreeIfUnused() so that it checks for the existance
of an untripped cursor, not for the existance of any cursor at all.

FossilOrigin-Name: a6f851d0fe01d8c8d44a2fe0b716ff7a5194c63b

12 years agoAvoid deleting a b-tree "has-content" vector belonging to another shared-cache connec...
dan [Tue, 14 May 2013 20:36:31 +0000 (20:36 +0000)] 
Avoid deleting a b-tree "has-content" vector belonging to another shared-cache connection from within sqlite3_close().

FossilOrigin-Name: 93462df78247f5634b9f53752cf80056bbfe9aac

12 years agoCandidate fixes for problems revealed by notify2.test. Notify2.test is still failing...
dan [Mon, 13 May 2013 18:23:15 +0000 (18:23 +0000)] 
Candidate fixes for problems revealed by notify2.test. Notify2.test is still failing at this point.

FossilOrigin-Name: ea0428f9b6e63066e7444a2ba2f8c12a2e3ab7e4

12 years agoAdd assert()s to the implementation of xRead() in the built-in VFSes to
drh [Thu, 9 May 2013 18:12:40 +0000 (18:12 +0000)] 
Add assert()s to the implementation of xRead() in the built-in VFSes to
verify that the offset parameter is always non-negative.

FossilOrigin-Name: cf5c3642247fdd34d87f0368594cd7b8f081636a

12 years agoDo not move WHERE clause terms inside OR expressions that are contained
drh [Thu, 9 May 2013 14:20:11 +0000 (14:20 +0000)] 
Do not move WHERE clause terms inside OR expressions that are contained
within an ON clause of a LEFT JOIN.  Fix for ticket [f2369304e47167e3e].

FossilOrigin-Name: 1128575d0ab24f7023a0f6e6ce4828b9a09a7c6c

12 years agoRefine and reform all Windows OSTRACE macro usage. Replace all usage of sqlite3TestE...
mistachkin [Thu, 9 May 2013 00:40:13 +0000 (00:40 +0000)] 
Refine and reform all Windows OSTRACE macro usage.  Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes.

FossilOrigin-Name: 610425f19008b8b5d4bf027c8b14d97ec3115a54

12 years agoFix a couple of harmless compiler warnings in the fts3_tokenize virtual
drh [Wed, 8 May 2013 17:06:28 +0000 (17:06 +0000)] 
Fix a couple of harmless compiler warnings in the fts3_tokenize virtual
table.

FossilOrigin-Name: 1fa8c457394c94864f7584e4c893ec09e685fba4

12 years agoMake sure the ORDER BY collating sequences are compatible with the
drh [Wed, 8 May 2013 16:57:48 +0000 (16:57 +0000)] 
Make sure the ORDER BY collating sequences are compatible with the
comparison collations before using the merge algorithm for compound
SELECT statements.  Fix for ticket [6709574d2a8d8].

FossilOrigin-Name: ce853a75068073d6acc8bec0819505a22c4c7e69

12 years agoFix the wholenumber virtual table so that it returns higher costs for
drh [Wed, 8 May 2013 14:20:28 +0000 (14:20 +0000)] 
Fix the wholenumber virtual table so that it returns higher costs for
unconstrained usage.  Cherrypick from [ceff8955020cd13].

FossilOrigin-Name: 7227b61512a534645c73883c2e37b4e647592e5d

12 years agoMake sure the ORDER BY collating sequences are compatible with the tkt-6709574
drh [Tue, 7 May 2013 17:49:08 +0000 (17:49 +0000)] 
Make sure the ORDER BY collating sequences are compatible with the
comparison collations before using the merge algorithm for compound
SELECT statements.  Candidate fix for ticket [6709574d2a8d8].

FossilOrigin-Name: fc3630cdef6e2cdbfb4e7b373d1a094753e55016

12 years agoModify the fts3tokenize table implementation so that it does not use the SQL function...
dan [Tue, 7 May 2013 12:16:48 +0000 (12:16 +0000)] 
Modify the fts3tokenize table implementation so that it does not use the SQL function fts3_tokenizer. The user may have installed an authorizer callback that prohibits this.

FossilOrigin-Name: 0ba67b64de258883e4c43db09e131bb67083855e

12 years agoIn the command-line shell, output the elements of the schema in the order
drh [Mon, 6 May 2013 21:01:06 +0000 (21:01 +0000)] 
In the command-line shell, output the elements of the schema in the order
that they appear in the sqlite_master table.  This is necessary in some
cases to make the schema parsable.

FossilOrigin-Name: e5b3cd747bb0b484e38b8611a81925e2cc144435

12 years agoIn the command-line shell, make sure the output of dot-commands goes to
drh [Mon, 6 May 2013 20:28:54 +0000 (20:28 +0000)] 
In the command-line shell, make sure the output of dot-commands goes to
the same redirected output stream as the result of queries.
Ticket [2f96536e7ff7dba]

FossilOrigin-Name: b72d365920dbe45e61d8b1cff708a8858c2b3e33

12 years agoAdd an assert() to fts3_expr.c in order to silence a clang warning.
drh [Mon, 6 May 2013 14:57:48 +0000 (14:57 +0000)] 
Add an assert() to fts3_expr.c in order to silence a clang warning.

FossilOrigin-Name: d8dc2c5fb554eb5898ddc8d703c6a360af7fe023

12 years agoMake sure the authorizer callback gets a valid pointer to "ROWID" for the
drh [Mon, 6 May 2013 13:22:50 +0000 (13:22 +0000)] 
Make sure the authorizer callback gets a valid pointer to "ROWID" for the
column-name parameter when doing an UPDATE that changes the rowid.
Fix for ticket [0eb70d77cb05bb2272].

FossilOrigin-Name: 26a59bb88d4082758eb281b365b57f9a0c059d89

12 years agoAdd magic numbers for Bentley Systems application files.
drh [Fri, 3 May 2013 20:08:16 +0000 (20:08 +0000)] 
Add magic numbers for Bentley Systems application files.

FossilOrigin-Name: 9314b08099e7ac99a507a4799f2c6cdd6d597abb

12 years agoAllocate meta(8) in the header as the "application ID" and add the
drh [Fri, 3 May 2013 15:23:24 +0000 (15:23 +0000)] 
Allocate meta(8) in the header as the "application ID" and add the
"PRAGMA application_id" command to query and set it.

FossilOrigin-Name: b2efe4f225adc5f4c2e3080bf459cc52fff82e18

12 years agoMinor fixes for compilation with SQLITE_OMIT_WAL defined.
dan [Thu, 2 May 2013 17:37:31 +0000 (17:37 +0000)] 
Minor fixes for compilation with SQLITE_OMIT_WAL defined.

FossilOrigin-Name: b81e87e72b976e7157a53a50abc5422e2a6c4c39

12 years agoFix comments in the magic number file. application-id
drh [Wed, 1 May 2013 20:40:46 +0000 (20:40 +0000)] 
Fix comments in the magic number file.

FossilOrigin-Name: 5a500848d2fa96fc7397e2acb64d5ae6551b5b1e

12 years agoPreserve the application-ID across VACUUM. Updates to the magic number
drh [Wed, 1 May 2013 20:36:23 +0000 (20:36 +0000)] 
Preserve the application-ID across VACUUM.  Updates to the magic number
file.

FossilOrigin-Name: 4a190bea18e156b6fa4dc9f21c3ad32409049603

12 years agoAllocate 4 bytes of unused header space for an "Application ID". Add
drh [Wed, 1 May 2013 19:49:27 +0000 (19:49 +0000)] 
Allocate 4 bytes of unused header space for an "Application ID".  Add
the "PRAGMA application_id" command to set and query this identifier.
Add the "magic.txt" file to show how the posix file command might use
this application id.

FossilOrigin-Name: 28c9e7fdee2471a3026ee05ff591194d5f398131

12 years agoDo not use a transitive constraint to an IN operator where the RHS is a
drh [Wed, 1 May 2013 17:58:35 +0000 (17:58 +0000)] 
Do not use a transitive constraint to an IN operator where the RHS is a
constant if there exists a direct == operator to another table in an outer
loop.

FossilOrigin-Name: faedaeace9c7ed9a8aaf96700caee09db0c0c061

12 years agoAvoid redundant constraint checking due to transitive constraints.
drh [Wed, 1 May 2013 17:22:38 +0000 (17:22 +0000)] 
Avoid redundant constraint checking due to transitive constraints.

FossilOrigin-Name: 329478cbed06f93652de50abdb31a6b41af02b9e

12 years agoUpdate the documentation to explain that when the 3rd parameter to
drh [Tue, 30 Apr 2013 14:25:32 +0000 (14:25 +0000)] 
Update the documentation to explain that when the 3rd parameter to
sqlite3_bind_text() and friends is NULL the result is to bind a NULL
SQL value.  Ticket [19b44e35753ba]

FossilOrigin-Name: bd92de0e8d922b96513c5d431493800dda7e7562

12 years agoMake sure extra parentheses around subqueries in the FROM clause are harmless.
drh [Tue, 30 Apr 2013 14:06:57 +0000 (14:06 +0000)] 
Make sure extra parentheses around subqueries in the FROM clause are harmless.
Ticket [28c6e830f239ea5].

FossilOrigin-Name: 1c79569226db3d5a73e65a35877635ea8b478866

12 years agoAdd the #ifdefs for sqlite3ErrName() to sqliteInt.h as well. winOsTrace
mistachkin [Tue, 30 Apr 2013 07:58:15 +0000 (07:58 +0000)] 
Add the #ifdefs for sqlite3ErrName() to sqliteInt.h as well.

FossilOrigin-Name: 400fc4c37ff34e84f5a129a083a567bda840278e

12 years agoDefine the sqlite3ErrName() function only when necessary. More robust handling of...
mistachkin [Tue, 30 Apr 2013 07:54:42 +0000 (07:54 +0000)] 
Define the sqlite3ErrName() function only when necessary. More robust handling of unknown return codes.

FossilOrigin-Name: e47cd314371c2be6e00d96392b3892a7f3015f98

12 years agoImprove the error message issued when an FTS query exceeds the maximum allowable...
dan [Mon, 29 Apr 2013 18:07:37 +0000 (18:07 +0000)] 
Improve the error message issued when an FTS query exceeds the maximum allowable tree depth.

FossilOrigin-Name: f480b1fe6012f36c59cd0525efdc6df74143ccd0

12 years agoFix an off-by-one in the code for limiting the depth of FTS expression trees.
dan [Mon, 29 Apr 2013 17:12:06 +0000 (17:12 +0000)] 
Fix an off-by-one in the code for limiting the depth of FTS expression trees.

FossilOrigin-Name: 72ac73189c3577740a77d2ea2fc7118391c0703f

12 years agoMerge mmap test fix from trunk.
mistachkin [Mon, 29 Apr 2013 09:20:06 +0000 (09:20 +0000)] 
Merge mmap test fix from trunk.

FossilOrigin-Name: 95811877fdcbede4f61269ff1c7a6d9554f669cd

12 years agoFix mmap1.test so that it passes on windows as well as unix.
dan [Mon, 29 Apr 2013 09:17:42 +0000 (09:17 +0000)] 
Fix mmap1.test so that it passes on windows as well as unix.

FossilOrigin-Name: 52417eac3ecaec2dbbde170334358f5ddbd32501

12 years agoAdjust a WAL test result due to changes in the corresponding return code name.
mistachkin [Mon, 29 Apr 2013 08:58:00 +0000 (08:58 +0000)] 
Adjust a WAL test result due to changes in the corresponding return code name.

FossilOrigin-Name: 9272009f7932b3f18006f73776e36b8ef8770d3e

12 years agoMerge updates from trunk.
mistachkin [Mon, 29 Apr 2013 08:56:49 +0000 (08:56 +0000)] 
Merge updates from trunk.

FossilOrigin-Name: 3a245a832d4843802c3c57f8cda3e4e1d0d52622

12 years agoUpdate 'fuzzerfault' test for its new module loading command. Fix several test names...
mistachkin [Mon, 29 Apr 2013 07:01:23 +0000 (07:01 +0000)] 
Update 'fuzzerfault' test for its new module loading command.  Fix several test names in 'io.test' and make sure the database gets closed between tests.

FossilOrigin-Name: e81e9ca11db09424dd310bbc91686a5daa618cb1

12 years agoMore refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName...
mistachkin [Mon, 29 Apr 2013 03:09:10 +0000 (03:09 +0000)] 
More refinements to Windows OSTRACE usage.  Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes.

FossilOrigin-Name: 05ba5e23fcc5da416d47a8ad5e667ed6a0c7a34a

12 years agoInitial work on reforming usage of OSTRACE by the Windows VFS.
mistachkin [Sun, 28 Apr 2013 01:44:43 +0000 (01:44 +0000)] 
Initial work on reforming usage of OSTRACE by the Windows VFS.

FossilOrigin-Name: b347b5d1a01301f44e6fd20ee03a9529ffd25788

12 years agoRemove spellfix virtual table documentation from the source tree.
drh [Sat, 27 Apr 2013 18:06:40 +0000 (18:06 +0000)] 
Remove spellfix virtual table documentation from the source tree.
Reference the separate documentation on the website instead.

FossilOrigin-Name: adcf78909ff9064b6e3c4dd15ccd3245c8cf270b

12 years agoUntested fix for building on VxWorks.
drh [Sat, 27 Apr 2013 12:13:29 +0000 (12:13 +0000)] 
Untested fix for building on VxWorks.

FossilOrigin-Name: f14d55cf358b0392d3b8cd61dc85f43a610a8edf

12 years agoFix a formatting typo in a comment. No changes to code.
drh [Fri, 26 Apr 2013 19:33:34 +0000 (19:33 +0000)] 
Fix a formatting typo in a comment.  No changes to code.

FossilOrigin-Name: 7a97226ffe174349e7113340f5354c4e44bd9738

12 years agoAvoid unnecessarily reseting the pager cache after committing a transaction that...
dan [Fri, 26 Apr 2013 18:36:58 +0000 (18:36 +0000)] 
Avoid unnecessarily reseting the pager cache after committing a transaction that takes advantage of the SQLITE_IOCAP_ATOMIC related optimization.

FossilOrigin-Name: c47144e98c0a0f9e09780c945de10c57b6a495ea

12 years agoAvoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems.
dan [Fri, 26 Apr 2013 17:00:52 +0000 (17:00 +0000)] 
Avoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems.

FossilOrigin-Name: 1bbb4be1a25947f75b2b0c6f368199016b6f7de3

12 years agoAvoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems. avoid-fallocate
dan [Fri, 26 Apr 2013 16:09:29 +0000 (16:09 +0000)] 
Avoid using posix_fallocate() in WAL mode, as it is not supported by all file-systems.

FossilOrigin-Name: 9c7523dabf4aee609287732ce787c9b9a9087e7f

12 years agoUpdate documentation with new hyperlinks. No changes to code.
drh [Fri, 26 Apr 2013 15:55:57 +0000 (15:55 +0000)] 
Update documentation with new hyperlinks.  No changes to code.

FossilOrigin-Name: 640eb54ad6aac9bc7109cba167389a9bcec3f21e

12 years agoRebalance FTS expressions after parsing to limit recursion during evaluation. Avoid...
dan [Fri, 26 Apr 2013 14:13:15 +0000 (14:13 +0000)] 
Rebalance FTS expressions after parsing to limit recursion during evaluation. Avoid recursion when deleting FTS expression trees. Enforce a limit (currently 12) on the depth of an expression tree.

FossilOrigin-Name: 49d23ef61f9ce2ffe13237b51a0e01b0b46ba96b

12 years agoMerge another trunk change. fts3-expr-rebalance
dan [Fri, 26 Apr 2013 14:04:28 +0000 (14:04 +0000)] 
Merge another trunk change.

FossilOrigin-Name: 2648966f17bc1b783ef6d3b2368c613f6e02945e

12 years agoFix harmless compiler warnings in the FTS expression parser.
drh [Fri, 26 Apr 2013 13:14:19 +0000 (13:14 +0000)] 
Fix harmless compiler warnings in the FTS expression parser.

FossilOrigin-Name: 3c78af8c535e16518f18733325f4cd1df7ec8282

12 years agoReduce the default SQLITE_MAX_MMAP_SIZE slightly so that it fits in a
drh [Fri, 26 Apr 2013 12:08:29 +0000 (12:08 +0000)] 
Reduce the default SQLITE_MAX_MMAP_SIZE slightly so that it fits in a
signed 32-bit integer.

FossilOrigin-Name: 460752b8575320163d2659bb7ff24aff41e2bb66

12 years agoMerge latest trunk changes.
dan [Fri, 26 Apr 2013 06:58:06 +0000 (06:58 +0000)] 
Merge latest trunk changes.

FossilOrigin-Name: 4d08e74d34e82f3be588049c9576a5c1008435e7

12 years agoRebalance FTS expressions after parsing to limit recursion during evaluation. Avoid...
dan [Thu, 25 Apr 2013 20:34:02 +0000 (20:34 +0000)] 
Rebalance FTS expressions after parsing to limit recursion during evaluation. Avoid recursion when deleting FTS expression trees. Enforce a limit on the depth of an expression tree.

FossilOrigin-Name: f968d43f80cc2f236e7d09ba1e8278343e2b6976

12 years agoAdded the nextchar.c extension. Minor changes to the spellfix.c extension
drh [Thu, 25 Apr 2013 19:31:33 +0000 (19:31 +0000)] 
Added the nextchar.c extension.  Minor changes to the spellfix.c extension
so that it can be appended to an amalgamation and compiled without duplicating
symbols.

FossilOrigin-Name: 56b9a417f5451631f11c5206d625f11472ee65f9

12 years agoFix the tool/build-shell.sh script to remove references to files that are
drh [Thu, 25 Apr 2013 17:27:08 +0000 (17:27 +0000)] 
Fix the tool/build-shell.sh script to remove references to files that are
now loadable extensions.

FossilOrigin-Name: aabeea98f53edde68f484f1794ae70789dac3889

12 years agoAdd wiki documentation files for the spellfix1 virtual table.
drh [Thu, 25 Apr 2013 17:07:26 +0000 (17:07 +0000)] 
Add wiki documentation files for the spellfix1 virtual table.

FossilOrigin-Name: 381564e91bbf619f99a48b0b7a94ac586cb9ee79

12 years agoMerge the std-ext branch into trunk. This merge adds several new extensions
drh [Thu, 25 Apr 2013 16:52:19 +0000 (16:52 +0000)] 
Merge the std-ext branch into trunk.  This merge adds several new extensions
to the ext/misc folder, including transitive_closure, ieee754, and amatch,
and it convers some older src/test_*.c file into extensions in the ext/misc
folder.

FossilOrigin-Name: bbe607c7d17c50b667990360e2ccfab8dd22f161

12 years agoAdded the transitive_closure, ieee754, and amatch extensions. std-ext
drh [Thu, 25 Apr 2013 16:42:55 +0000 (16:42 +0000)] 
Added the transitive_closure, ieee754, and amatch extensions.

FossilOrigin-Name: 84018099c8715b982cd24ce9221f93c7379e8c08

12 years agoMove the test_spellfix.c module to ext/misc/spellfix.c.
drh [Thu, 25 Apr 2013 14:59:01 +0000 (14:59 +0000)] 
Move the test_spellfix.c module to ext/misc/spellfix.c.

FossilOrigin-Name: de556add10150140981a2e34b3712e96a7c262e3

12 years agoFix the MSVC makefile so that it works with the ext/misc/*.c extensions.
drh [Thu, 25 Apr 2013 14:36:28 +0000 (14:36 +0000)] 
Fix the MSVC makefile so that it works with the ext/misc/*.c extensions.

FossilOrigin-Name: 680822e892f3efdb702eea3b321bc5785239dd56

12 years agoConvert the fuzzer virtual table into a loadable extension and move it
drh [Thu, 25 Apr 2013 14:31:46 +0000 (14:31 +0000)] 
Convert the fuzzer virtual table into a loadable extension and move it
to the ext/misc/fuzzer.c file.

FossilOrigin-Name: c8c69307f60c1d07ac666ae3797b7e3f286fd491

12 years agoMake test_wholenumber.c into a loadable extension and move it to
drh [Thu, 25 Apr 2013 11:58:36 +0000 (11:58 +0000)] 
Make test_wholenumber.c into a loadable extension and move it to
ext/misc/wholenumber.c.

FossilOrigin-Name: efcc9dd012b5f193324dfc2ee9c2410c16fc1b3b

12 years agoMake sure the affinity and datatype of sub-subqueries are initialized
drh [Thu, 25 Apr 2013 00:57:10 +0000 (00:57 +0000)] 
Make sure the affinity and datatype of sub-subqueries are initialized
prior to subqueries as the latter relies on the former.

FossilOrigin-Name: 39b4e6ff9316cc78ea88349091e195b8104d1e9e

12 years agoFix a simple comment typo. No changes to code.
drh [Wed, 24 Apr 2013 13:50:09 +0000 (13:50 +0000)] 
Fix a simple comment typo.  No changes to code.

FossilOrigin-Name: f136bd95824dc95b9e6acdc4d55db263ba13fbaa

12 years agoMake "test_regexp.c" into a loadable extension and move it over to
drh [Tue, 23 Apr 2013 20:10:13 +0000 (20:10 +0000)] 
Make "test_regexp.c" into a loadable extension and move it over to
ext/misc/regexp.c.  Add the "load_static_extension" command for testing
purposes.

FossilOrigin-Name: 860fc393bff27045e0593c3c51bf5577accd0b79

12 years agoFix harmless compiler warnings.
drh [Mon, 22 Apr 2013 23:38:50 +0000 (23:38 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 1a1cf5aa86734c832d845e07780262a178188d56

12 years agoDo not allow a virtual table to cancel the ORDER BY clause unless all
drh [Mon, 22 Apr 2013 19:56:12 +0000 (19:56 +0000)] 
Do not allow a virtual table to cancel the ORDER BY clause unless all
outer loops are guaranteed to return no more than one row result.
Candidate fix for ticket [ba82a4a41eac1].

FossilOrigin-Name: 49cfa14fceeef2d55b449eb927c283ce6f650c07

12 years agoUpdate MSCV makefile for the fts3tokenize virtual table. Clear some
drh [Mon, 22 Apr 2013 17:07:56 +0000 (17:07 +0000)] 
Update MSCV makefile for the fts3tokenize virtual table.  Clear some
harmless compiler warnings in the fts3tokenize code.

FossilOrigin-Name: 2b3fed09eb89f1e9d6a5f7487ef526b46eb51490

12 years agoAdd virtual table module 'fts3tokenize' to fts3. fts3tokenize provides SQL access...
dan [Mon, 22 Apr 2013 15:30:37 +0000 (15:30 +0000)] 
Add virtual table module 'fts3tokenize' to fts3. fts3tokenize provides SQL access to FTS tokenizer implementations.

FossilOrigin-Name: c5a4b21a15bd8a184380817ff41657acbccb866d

12 years agoEnhanced documentation for the SQLITE_CONFIG_SQLLOG mechanism and the
drh [Mon, 22 Apr 2013 13:51:09 +0000 (13:51 +0000)] 
Enhanced documentation for the SQLITE_CONFIG_SQLLOG mechanism and the
test_sqllog.c demonstration file.  No changes to code.

FossilOrigin-Name: 206caf21f6f6963aa38a9aa0f6ea11c7230bb726

12 years agoUse transitivity to move constraints into the outer loops of a join whenever
drh [Mon, 22 Apr 2013 02:39:10 +0000 (02:39 +0000)] 
Use transitivity to move constraints into the outer loops of a join whenever
possible, thereby reducing the amount of work that needs to occur in
inner loops.

FossilOrigin-Name: 5f4907e1c6230e3dd904bd99e1c48c576c669f63

12 years agoAdd the "warning" command to the TCL test infrastructure. Fix problems
drh [Fri, 19 Apr 2013 12:32:52 +0000 (12:32 +0000)] 
Add the "warning" command to the TCL test infrastructure.  Fix problems
with the loadext.test module.

FossilOrigin-Name: 514adbbd8cf3e296f55e8f803bddaac8ad8b2c96

12 years agoEnhance the extension loading mechanism so that the same source code
drh [Fri, 19 Apr 2013 02:47:05 +0000 (02:47 +0000)] 
Enhance the extension loading mechanism so that the same source code
can be used for run-time loadable extensions and statically linked
extensions, and to mask architectural differences in shared libraries.

FossilOrigin-Name: a85b6ecefa14fcfe6ebfceabf910f00c3721be7d

12 years agoMake the SQLITE_EXTENSION_INIT1 and SQLITE_EXTENSION_INIT2 macros into loadext
drh [Fri, 19 Apr 2013 01:23:06 +0000 (01:23 +0000)] 
Make the SQLITE_EXTENSION_INIT1 and SQLITE_EXTENSION_INIT2 macros into
no-ops if the extension is statically linked.

FossilOrigin-Name: 86eb3eed4c70730dba0e319f243f8cb4fa8de06c

12 years agoExperiments in making loadable extensions easier to program. The
drh [Thu, 18 Apr 2013 22:56:42 +0000 (22:56 +0000)] 
Experiments in making loadable extensions easier to program.  The
shared library filename tries various operating-system specific extensions
if the bare library name does not work.  And the entry point is derived
from the filename is the legacy entry point name "sqlite3_extension_init"
is not found.

FossilOrigin-Name: 6cfa1d73d79b9f0be8157f0a37c264dd95b031c8

12 years agoFix an incorrect comment (a copy/paste error) in the mptester. No code
drh [Thu, 18 Apr 2013 20:33:41 +0000 (20:33 +0000)] 
Fix an incorrect comment (a copy/paste error) in the mptester.  No code
changes.

FossilOrigin-Name: e94783f36ade43ef9d5b94db278622bcbce4179b

12 years agoAdd the --breakpoint and --show-sql-errors commands to mptester.
drh [Thu, 18 Apr 2013 15:11:03 +0000 (15:11 +0000)] 
Add the --breakpoint and --show-sql-errors commands to mptester.

FossilOrigin-Name: d0898fd76a54512894418e53ba28703e250c9ed3

12 years agoFix a compiler warning in sqlite3_compileoption_used().
drh [Thu, 18 Apr 2013 03:10:43 +0000 (03:10 +0000)] 
Fix a compiler warning in sqlite3_compileoption_used().

FossilOrigin-Name: e9f9d84b223b69d36688cd7a4c7c696bfda8a1ad

12 years agoDo not suppress the ORDER BY clause on a virtual table query if an IN
drh [Thu, 18 Apr 2013 02:55:54 +0000 (02:55 +0000)] 
Do not suppress the ORDER BY clause on a virtual table query if an IN
constraint is used.  Fix for ticket [f69b96e3076e].  Testing done on
TH3 using cov1/where37.test.

FossilOrigin-Name: 61b2a7be3b9c04bf45bffa93a7d3a480fc5c947a

12 years agoFix the --match command in mptester so that it checks the entire result,
drh [Wed, 17 Apr 2013 19:42:17 +0000 (19:42 +0000)] 
Fix the --match command in mptester so that it checks the entire result,
not just a prefix of the result.

FossilOrigin-Name: 3e3ecad2b5d6c97032f2a9fb920c1b8a16ab8ef5

12 years agoIn the mptester, add --glob and --notglob and --testcase. Make --exit work
drh [Wed, 17 Apr 2013 18:56:16 +0000 (18:56 +0000)] 
In the mptester, add --glob and --notglob and --testcase.  Make --exit work
on the main thread.  Enable the load_extension() SQL function.

FossilOrigin-Name: c273c171f511475045ef0aa68ecf8e22b8351996

12 years agoIn the command-line shell, allow a dot-command to occur after a
drh [Wed, 17 Apr 2013 17:33:17 +0000 (17:33 +0000)] 
In the command-line shell, allow a dot-command to occur after a
multi-line c-style comment.

FossilOrigin-Name: e2c94ab930f0e5a6dbe8cdd34ebb8cfeeedca56c

12 years agoImprovements to some of the comments that are used to render documentation
drh [Wed, 17 Apr 2013 14:04:52 +0000 (14:04 +0000)] 
Improvements to some of the comments that are used to render documentation
concerning loadable extensions.  No changes to code.

FossilOrigin-Name: 76f4e31245fd1676a4520a2f7488bca6eb981e4a

12 years agoUpdate the command-line shell to give an exit code of 0 when the ".quit"
drh [Wed, 17 Apr 2013 12:19:48 +0000 (12:19 +0000)] 
Update the command-line shell to give an exit code of 0 when the ".quit"
command is run from the command-line.

FossilOrigin-Name: 467e218120d63d0f34c447f7324bac1364ac0eac

12 years agoOmit sqlite3_compileoption_used() entries that are not explicitly stated
drh [Tue, 16 Apr 2013 18:24:34 +0000 (18:24 +0000)] 
Omit sqlite3_compileoption_used() entries that are not explicitly stated
on the compiler command-line, except keep SQLITE_THREADSAFE around so that
there is always at least one compilation option.

FossilOrigin-Name: 109d6767d2626741db1d15ed55e699ac3184a536

12 years agoRemove the unused SQLITE_CURDIR macro.
drh [Tue, 16 Apr 2013 14:58:52 +0000 (14:58 +0000)] 
Remove the unused SQLITE_CURDIR macro.

FossilOrigin-Name: 16f7ba4afaa69f6150b4defd4ddf5800f5d23084

12 years agoDisable memory-mapped I/O when the codec is enabled.
drh [Tue, 16 Apr 2013 14:52:47 +0000 (14:52 +0000)] 
Disable memory-mapped I/O when the codec is enabled.

FossilOrigin-Name: 340cca3079cd7aac2f51071435666e9e00ed8bd5

12 years agoExpand scope of the SQLITE_MAX_MMAP_SIZE define for the Win32 VFS.
mistachkin [Mon, 15 Apr 2013 20:08:27 +0000 (20:08 +0000)] 
Expand scope of the SQLITE_MAX_MMAP_SIZE define for the Win32 VFS.

FossilOrigin-Name: f4b8faab45e217f227bd7ce65d4741754731b8cd

12 years agoRefactoring the mmap interface. The controlling pragma is now "mmap_size"
drh [Mon, 15 Apr 2013 17:03:42 +0000 (17:03 +0000)] 
Refactoring the mmap interface.  The controlling pragma is now "mmap_size"
instead of "mmap_limit".  Also change SQLITE_CONFIG_MMAP_LIMIT and
SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and
SQLITE_FCNTL_MMAP_SIZE, respecctively.
The default mmap_size is now always 0, meaning that
memory mapped I/O is off by default.  There is a new compile-time option
SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size.
Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic
and causes it to be omitted from the build.  An extra argument is added
to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE
at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we
know that it does not work, meaning that it cannot be turned on by mistake
on those platforms.

FossilOrigin-Name: ea1404a10abd7f68e1f8e0708c8a3199d1f79665

12 years agoFix a formatting typo in a comment. No changes to code.
drh [Mon, 15 Apr 2013 13:10:30 +0000 (13:10 +0000)] 
Fix a formatting typo in a comment.  No changes to code.

FossilOrigin-Name: 3412424990c93d2978e819e6099811f1cdde316d

12 years agoOnly consider AS names from the result set as candidates for resolving
drh [Sun, 14 Apr 2013 23:51:27 +0000 (23:51 +0000)] 
Only consider AS names from the result set as candidates for resolving
identifiers in the WHERE clause if there are no other matches.
In the ORDER BY clause, AS names take priority over any column names.
Fix for ticket [2500cdb9be].

FossilOrigin-Name: d0d5af79a005de30194863c57c5018ee75e03581

12 years agoOnly consider AS names from the result set as candidates for resolving tkt-2500cdb9be
drh [Sat, 13 Apr 2013 19:59:58 +0000 (19:59 +0000)] 
Only consider AS names from the result set as candidates for resolving
identifiers in the WHERE clause if there are no other matches.  In the
ORDER BY clause, AS names take priority over any column names.
Candidate fix for ticket [2500cdb9be].

FossilOrigin-Name: ad53924dcadffb95c6497c46c228c67e8f5370e4

12 years agoAdd a test case for detaching a database referenced by an fts4aux table created in...
dan [Fri, 12 Apr 2013 16:53:19 +0000 (16:53 +0000)] 
Add a test case for detaching a database referenced by an fts4aux table created in the temp schema.

FossilOrigin-Name: 6d6f0592abe237256dbdf30ab0ba0bb0c365dd95

12 years agoChange the fts4aux virtual table module so that fts4aux tables created in the temp...
dan [Fri, 12 Apr 2013 16:47:27 +0000 (16:47 +0000)] 
Change the fts4aux virtual table module so that fts4aux tables created in the temp database may report on fts3/fts4 tables in any attached database.

FossilOrigin-Name: 546a187f1361dad340ed8f6c28dd89e6c19f9c33

12 years agoIn mptester: improve the way that child processes are dispatched. Pass
drh [Fri, 12 Apr 2013 01:04:36 +0000 (01:04 +0000)] 
In mptester: improve the way that child processes are dispatched.  Pass
the --vfs option through to children.  Log the command used to start
child processes when the tracing level is high enough.

FossilOrigin-Name: 55718ae3462b2b6e0774d49e1c4c74143bc9e3a5

12 years agoFor the multi-process tester on Win32, make use of the GetCurrentProcessId API.
mistachkin [Thu, 11 Apr 2013 21:13:10 +0000 (21:13 +0000)] 
For the multi-process tester on Win32, make use of the GetCurrentProcessId API.

FossilOrigin-Name: f1b524b9d9ea3db96d54ac55c39f15e6879085bd

12 years agoFix the xCheckReservedLock() method on the windows VFS so that it cannot
drh [Thu, 11 Apr 2013 18:28:55 +0000 (18:28 +0000)] 
Fix the xCheckReservedLock() method on the windows VFS so that it cannot
return a false positive when two or more processes use it at the same time
on the same file.  Ticket [7ff3120e4fa54abb55]

FossilOrigin-Name: dd3510bb20ade173c81c9874c05466011c8a249d