]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
12 years agoApply the same restrictions on constant refactoring to statements within a trigger... constant-refactoring-in-triggers
dan [Thu, 6 Dec 2012 19:37:22 +0000 (19:37 +0000)] 
Apply the same restrictions on constant refactoring to statements within a trigger program as top-level statements. Candidate fix for [ae3c5670b6].

FossilOrigin-Name: 0c31a46801746191d1a53332d75beda880fe1fd7

12 years agoAdd the SQLITE_FCNTL_TEMPFILENAME file control that asks the underlying VFS
drh [Thu, 6 Dec 2012 19:01:42 +0000 (19:01 +0000)] 
Add the SQLITE_FCNTL_TEMPFILENAME file control that asks the underlying VFS
to return a new temporary filename.  Per request from NSS team at Mozilla.

FossilOrigin-Name: 1a63b1d5fa5d79f96eddbda6d94bc10248863710

12 years agoFor the sqlite3-all.c target, use backslashes when calling the splitter script via...
mistachkin [Thu, 6 Dec 2012 04:33:13 +0000 (04:33 +0000)] 
For the sqlite3-all.c target, use backslashes when calling the splitter script via the MSVC makefile.

FossilOrigin-Name: d507648d820cfea70e17f3d21c35c932a2d20367

12 years agoBring the ancient malloc3.test file closer into relevance with the latest core code.
mistachkin [Thu, 6 Dec 2012 04:19:24 +0000 (04:19 +0000)] 
Bring the ancient malloc3.test file closer into relevance with the latest core code.

FossilOrigin-Name: 9793a21c13a1188383b4be64df86629f196ca330

12 years agoStop using the TCL_LIBS configuration variable when linking with Tcl.
drh [Thu, 6 Dec 2012 02:56:05 +0000 (02:56 +0000)] 
Stop using the TCL_LIBS configuration variable when linking with Tcl.
Remove superfluous 'rm' command from the "clean" target.

FossilOrigin-Name: 1551277208048cb24887928f2f971e47a942c849

12 years agoRemove obsolete comments from the definition of the CollSeq object.
drh [Thu, 6 Dec 2012 01:03:15 +0000 (01:03 +0000)] 
Remove obsolete comments from the definition of the CollSeq object.

FossilOrigin-Name: 7b6951016f5bf4c21f843f09769ba176c709e785

12 years agoStop using the TCL_LIBS configuration variable when linking with Tcl. Remove superfl... noTclLibs
mistachkin [Thu, 6 Dec 2012 00:16:51 +0000 (00:16 +0000)] 
Stop using the TCL_LIBS configuration variable when linking with Tcl.  Remove superfluous 'rm' command.

FossilOrigin-Name: e1feab9834fe829d43ae895cc575ad269a36668c

12 years agoDisable a couple of tests in where.test when running the "no_optimization" permutation.
dan [Wed, 5 Dec 2012 19:04:32 +0000 (19:04 +0000)] 
Disable a couple of tests in where.test when running the "no_optimization" permutation.

FossilOrigin-Name: 5e961e37c5357776bcb44c473cb5ee4b59561f07

12 years agoModify a query in test/thread001.test to ensure that results are returned in the...
dan [Wed, 5 Dec 2012 16:44:13 +0000 (16:44 +0000)] 
Modify a query in test/thread001.test to ensure that results are returned in the order expected by the test.

FossilOrigin-Name: 51cbddd51d02bcd954be411ecc83556c049a2680

12 years agoFixes to a test case in shared_err.test. The fix is to prevent sqlite3_prepare()...
dan [Wed, 5 Dec 2012 14:37:55 +0000 (14:37 +0000)] 
Fixes to a test case in shared_err.test. The fix is to prevent sqlite3_prepare() from being called when the test intends to test the response of sqlite3_step() to an OOM condition.

FossilOrigin-Name: 40c143955ebe75f8e73119f9103f36a3c8ac4514

12 years agoMake sure memory is freed using a routine that is compatible with the
drh [Wed, 5 Dec 2012 14:31:13 +0000 (14:31 +0000)] 
Make sure memory is freed using a routine that is compatible with the
routine used to allocate the memory.  The SQLITE_MEMDEBUG compile-time
option enforces this.

FossilOrigin-Name: 9f6c68856b694373b7ffb124abd996e519ba5921

12 years agoSince errors are ignored anyway, use sqlite3OsFileControlHint() instead of OsFileCont...
dan [Wed, 5 Dec 2012 11:30:28 +0000 (11:30 +0000)] 
Since errors are ignored anyway, use sqlite3OsFileControlHint() instead of OsFileControl() to invoke the SQLITE_FCNTL_BUSY_HANDLER file-control.

FossilOrigin-Name: bdceca2738eb3e8acc44d0384cf2a3a969ee8170

12 years agoIf the atomic-write property is enabled, a transaction may be committed in journal_mo...
dan [Wed, 5 Dec 2012 10:01:35 +0000 (10:01 +0000)] 
If the atomic-write property is enabled, a transaction may be committed in journal_mode=DELETE mode without ever actually creating a journal file on disk. In this case, do not attempt to unlink() the journal file when committing the transaction.

FossilOrigin-Name: 11aa47b0a837858b644c304638e1cbbf482de2f0

12 years agoUpdate a couple of test scripts so that they work in auto-vacuum mode.
dan [Wed, 5 Dec 2012 09:12:58 +0000 (09:12 +0000)] 
Update a couple of test scripts so that they work in auto-vacuum mode.

FossilOrigin-Name: 04ab2dc6914e4d6fe2682eba08fc1cd1148a44a1

12 years agoFix a harmless compiler warning.
drh [Tue, 4 Dec 2012 11:03:11 +0000 (11:03 +0000)] 
Fix a harmless compiler warning.

FossilOrigin-Name: 12693deba9b8a47ad02ca4e32d5fba6006b0401c

12 years agoAdd a test to ensure that the fix in [b0c1ba655d] has worked.
dan [Tue, 4 Dec 2012 05:24:21 +0000 (05:24 +0000)] 
Add a test to ensure that the fix in [b0c1ba655d] has worked.

FossilOrigin-Name: 41806de5c88e924e306ca737192755c011517426

12 years agoImprovements to the 'tcl' shell output mode. Escape doublequotes,
drh [Tue, 4 Dec 2012 00:59:05 +0000 (00:59 +0000)] 
Improvements to the 'tcl' shell output mode. Escape doublequotes,
set separator to space when mode is set, and skip separator after final
column.

FossilOrigin-Name: 487ba753139c256b911f16aee9586144faea846f

12 years agoFix an uninitialized variable detected by valgrind.
drh [Tue, 4 Dec 2012 00:53:08 +0000 (00:53 +0000)] 
Fix an uninitialized variable detected by valgrind.

FossilOrigin-Name: ffd1e51490286abfaea68fd4b4b4cb967d87b04b

12 years agoFix an out-of-order function declaration when compiled with MEMDEBUG.
mistachkin [Tue, 4 Dec 2012 00:37:58 +0000 (00:37 +0000)] 
Fix an out-of-order function declaration when compiled with MEMDEBUG.

FossilOrigin-Name: 6d31557837fef2c8fad6f009ac6dd97dd4af0a54

12 years agoImprovements to the 'tcl' shell output mode. Escape double quotes, set separator... tclMode
mistachkin [Tue, 4 Dec 2012 00:23:43 +0000 (00:23 +0000)] 
Improvements to the 'tcl' shell output mode.  Escape double quotes, set separator to space when mode is set, and skip separator after final column.

FossilOrigin-Name: 41fd9dd29034b2269e4b7f2626350124d37b5303

12 years agoRemove an unreachable condition. Replace it with an assert().
drh [Mon, 3 Dec 2012 19:42:39 +0000 (19:42 +0000)] 
Remove an unreachable condition.  Replace it with an assert().

FossilOrigin-Name: 7d5fc1a339cf4f3597ab6a5f3e7101884d2d7673

12 years agoMake sure that the optimization that set the maximum column that will be used
drh [Mon, 3 Dec 2012 17:04:40 +0000 (17:04 +0000)] 
Make sure that the optimization that set the maximum column that will be used
on a particular query does not mistakenly change an opcode other than
OP_OpenRead or OP_OpenWrite.  In particular, make sure it does not overwrite
the P4 field of an OP_SorterOpen.

FossilOrigin-Name: b0c1ba655d69c0c46c16ea2aef4e6c9a3e6ce3fb

12 years agoDo not exist the command-line shell if a ".read" command invokes a script that
drh [Sat, 1 Dec 2012 20:21:22 +0000 (20:21 +0000)] 
Do not exist the command-line shell if a ".read" command invokes a script that
contains two errors.  But reported on the mailing list.

FossilOrigin-Name: 2e5e65152758bc37439584ccba4c1b1c5ceb24f8

12 years agoMark the "async" module as deprecated as its functionality has been
drh [Thu, 29 Nov 2012 14:26:11 +0000 (14:26 +0000)] 
Mark the "async" module as deprecated as its functionality has been
superceded by WAL mode.  This closes ticket [f46ca03b55ae0e]

FossilOrigin-Name: 3d548db7eb14a4133afa6a94530f61fb3ef4a052

12 years agoAdd the SQLLOG capability to trunk.
drh [Tue, 27 Nov 2012 21:22:54 +0000 (21:22 +0000)] 
Add the SQLLOG capability to trunk.

FossilOrigin-Name: f0843f885ab3337f83fe3b304aab80bb7b5dd0a3

12 years agoImproved detection of file-does-not-exist in winDelete.
drh [Tue, 27 Nov 2012 21:12:39 +0000 (21:12 +0000)] 
Improved detection of file-does-not-exist in winDelete.

FossilOrigin-Name: 92e9b5bc05887c47bc964828447a76ce29aa255c

12 years agoGet SQLLOG working on windows. Fix a couple of compiler warnings. sqllog
drh [Tue, 27 Nov 2012 16:39:31 +0000 (16:39 +0000)] 
Get SQLLOG working on windows.  Fix a couple of compiler warnings.

FossilOrigin-Name: b3809c937b230b34e5bc6ce4909c04ceef72fb85

12 years agoFix a problem causing the "number-of-documents" field maintained by FTS4 to be set...
dan [Tue, 27 Nov 2012 15:56:38 +0000 (15:56 +0000)] 
Fix a problem causing the "number-of-documents" field maintained by FTS4 to be set incorrectly.

FossilOrigin-Name: e38fb02d5ea5daa6992df4dfbbeec92bf7b525f6

12 years agoFix problems in test_sqllog.c. Clarify the experimental SQLITE_CONFIG_SQLLOG interfac...
dan [Tue, 27 Nov 2012 10:56:39 +0000 (10:56 +0000)] 
Fix problems in test_sqllog.c. Clarify the experimental SQLITE_CONFIG_SQLLOG interface. Handle at least the more likely error conditions in test_sqllog.c.

FossilOrigin-Name: 429c5b2056d7b7c644ca53bc97b8e0b9cb89ab04

12 years agoAdd an option to register global hooks used for logging all SQL executed by an applic...
dan [Mon, 26 Nov 2012 19:50:41 +0000 (19:50 +0000)] 
Add an option to register global hooks used for logging all SQL executed by an application.

FossilOrigin-Name: cd501bbccf3e62b002317592cc331770b32c129a

12 years agoIn winDelete, determine that a file does not exist by checking for a last error of... winNotFound
mistachkin [Wed, 21 Nov 2012 02:10:20 +0000 (02:10 +0000)] 
In winDelete, determine that a file does not exist by checking for a last error of ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND.

FossilOrigin-Name: 692ad3c02b1af83f0419283fab9b800e361cdf31

12 years agoHave the windows implementation of xDelete return SQLITE_IOERR_DELETE_NOENT
drh [Tue, 20 Nov 2012 15:06:57 +0000 (15:06 +0000)] 
Have the windows implementation of xDelete return SQLITE_IOERR_DELETE_NOENT
if the file to be deleted does not exist.  The unix implementation was
previously modified to behave this way.  The current changes simply brings
the two implementations into alignment.

FossilOrigin-Name: d4c36d4991b048133efb21b251ab57fa66764d9d

12 years agoStrive to use posix_fallocate() rather than ftruncate() when
drh [Tue, 13 Nov 2012 11:16:04 +0000 (11:16 +0000)] 
Strive to use posix_fallocate() rather than ftruncate() when
posix_fallocate() is available.  Ticket [5eaa61ea18].

FossilOrigin-Name: 29980b08ec591f695386b715df72d4afb6ffc3fb

12 years agoUse preprocessor macros to automatically detect whether or not tkt-5eaa61ea18
drh [Tue, 13 Nov 2012 11:08:49 +0000 (11:08 +0000)] 
Use preprocessor macros to automatically detect whether or not
posix_allocate() is available.  (It is generally available on Linux
but not on Mac.)  Ticket [5eaa61ea1881040b17449ca043b6f8fd9ca55dc3]

FossilOrigin-Name: 597333f1024092b94bcd8772541e19a0f707bd40

12 years agoWhen available, use posix_fallocate() rather than ftruncate() to allocate
drh [Tue, 13 Nov 2012 10:54:12 +0000 (10:54 +0000)] 
When available, use posix_fallocate() rather than ftruncate() to allocate
space for mmap()ed -shm files, since posix_fallocate() gives an error if
no disk space is available whereas ftruncate() is silent and leaves the system
vulnerable to a SIGBUS upon first write to the mmap()ed region.
Ticket [5eaa61ea1881040b17449ca043b6f8fd9ca55dc3]

FossilOrigin-Name: 356259617cfad04492a02912fdf781f54a2b4494

12 years agoOnly log unlink() errors if the error is something other than
drh [Fri, 9 Nov 2012 21:40:02 +0000 (21:40 +0000)] 
Only log unlink() errors if the error is something other than
SQLITE_IOERR_DELETE_NOENT.  The error is still reported up the stack, it
is simply not added to the sqlite3_log().

FossilOrigin-Name: 5a3b07f0f5dfae7eea870303f52f37d6a17f1da2

12 years agoChange os_unix.c to propagate ENOENT errors back to sqlite as SQLITE_IOERR_DELETE_NOE...
dan [Fri, 9 Nov 2012 20:17:26 +0000 (20:17 +0000)] 
Change os_unix.c to propagate ENOENT errors back to sqlite as SQLITE_IOERR_DELETE_NOENT. Have SQLite ignore these where they are benign and propagate them back to the caller where they may indicate a file-system malfunction of some description.

FossilOrigin-Name: bed9c172ce624ab7b5b9de9ad42444891717ad9a

12 years agoTake into account the cost of inner loops when selecting which table of a join
drh [Fri, 9 Nov 2012 18:32:05 +0000 (18:32 +0000)] 
Take into account the cost of inner loops when selecting which table of a join
to use for the next outer loop.

FossilOrigin-Name: 3f87f4593b631819609248c8f1370c1e19465eb0

12 years agoDisable the table selection rule that tried to prevent full table scans from inner-loop-cost
drh [Fri, 9 Nov 2012 18:22:26 +0000 (18:22 +0000)] 
Disable the table selection rule that tried to prevent full table scans from
migrating to the outer loop unless they were optimal.  The new scaling of
outer-loop costs by cost of inner loops obviates the need for that step.  And,
in fact, that step causes problems with the new inner-loop cost accounting.

FossilOrigin-Name: 51bfd63b7f9fe53831570ad124c932cb3582b104

12 years agoTry to take into account the cost of inner loops when selecting which table
drh [Fri, 9 Nov 2012 17:59:26 +0000 (17:59 +0000)] 
Try to take into account the cost of inner loops when selecting which table
of a join to use for the outer loop.

FossilOrigin-Name: 942556342a332b04a11169bb04f387d741ef9488

12 years agoAdjust the SQLITE_DBSTATUS_STMT_USED calculation to take the modified usage of sqlite...
mistachkin [Tue, 6 Nov 2012 20:39:11 +0000 (20:39 +0000)] 
Adjust the SQLITE_DBSTATUS_STMT_USED calculation to take the modified usage of sqlite3VdbeClearObject() into account.

FossilOrigin-Name: 82eb7eadb8c76b3af8c811d791f87a634c35935f

12 years agoIn test_quota.c, provide a work-around for the missing _chsize_s() function
drh [Tue, 6 Nov 2012 18:41:41 +0000 (18:41 +0000)] 
In test_quota.c, provide a work-around for the missing _chsize_s() function
in mingw.

FossilOrigin-Name: 6b4979e86c05f2da2c5fff67ea7feec5fa56756a

12 years agoAdd the INSTR() SQL function.
drh [Mon, 5 Nov 2012 13:51:58 +0000 (13:51 +0000)] 
Add the INSTR() SQL function.

FossilOrigin-Name: a4c181cbcf9b8baa6e07501a93ef81603d91ba7d

12 years agoMerge the fix for ticket [bfbf38e5e9956ac6] into trunk.
drh [Fri, 2 Nov 2012 23:42:50 +0000 (23:42 +0000)] 
Merge the fix for ticket [bfbf38e5e9956ac6] into trunk.

FossilOrigin-Name: 4f7dfc32aad1c552d09dc8fefb40cc3656d74883

12 years agoAdding test cases for ticket [bfbf38e5e9956a] ticket-bfbf38e5e9
drh [Fri, 2 Nov 2012 19:08:31 +0000 (19:08 +0000)] 
Adding test cases for ticket [bfbf38e5e9956a]

FossilOrigin-Name: 62ebfa747635a5593759ea2a28166d054c8eee8a

12 years agoProposed fix for ticket [bfbf38e5e9].
drh [Fri, 2 Nov 2012 18:48:49 +0000 (18:48 +0000)] 
Proposed fix for ticket [bfbf38e5e9].

FossilOrigin-Name: 18ae030dad30303129186738c27cdc4ba06362b9

12 years agoFix an out-of-date comment. No changes to code.
drh [Fri, 2 Nov 2012 18:24:57 +0000 (18:24 +0000)] 
Fix an out-of-date comment.  No changes to code.

FossilOrigin-Name: 10cc12b16b2f1ae4e6b3a84cef5a44564d282e9c

12 years agoEnable the use of coroutines as an alternative to manifesting views used
drh [Tue, 30 Oct 2012 18:09:46 +0000 (18:09 +0000)] 
Enable the use of coroutines as an alternative to manifesting views used
in a FROM clause.

FossilOrigin-Name: 9dca18f5fea84afbecb314ee1cdfb98430656af3

12 years agoMake sure that the optimizer never tries to create an automatic subquery-as-coroutine
drh [Tue, 30 Oct 2012 15:31:31 +0000 (15:31 +0000)] 
Make sure that the optimizer never tries to create an automatic
index on a coroutine subquery.

FossilOrigin-Name: f83aa0de8470748b3cd0bff232aeea3baf8dae53

12 years agoFix a typo in the header comment for the OpenPseudo opcode.
drh [Tue, 30 Oct 2012 14:44:14 +0000 (14:44 +0000)] 
Fix a typo in the header comment for the OpenPseudo opcode.

FossilOrigin-Name: 4f1061230e0e5a66038a4db99f1ee6203e4d2b9f

12 years agoMake it possible to disable the subquery-by-coroutine optimization using
drh [Tue, 30 Oct 2012 14:39:12 +0000 (14:39 +0000)] 
Make it possible to disable the subquery-by-coroutine optimization using
sqlite3_test_control().  Remove an always-false conditional.

FossilOrigin-Name: 564631f3e45f8f8a8db69f1e0df0d1dadbad8a2c

12 years agoAdd an optimization that attempts to run a subquery as a coroutine rather
drh [Tue, 30 Oct 2012 00:29:07 +0000 (00:29 +0000)] 
Add an optimization that attempts to run a subquery as a coroutine rather
than manifesting it into a temporary table.

FossilOrigin-Name: 7af3acbbd49a2114fcdada9ec907c68ba9b053bd

12 years agoMake the multiplexor and the IntArray extensions callable from C++.
drh [Mon, 29 Oct 2012 14:27:26 +0000 (14:27 +0000)] 
Make the multiplexor and the IntArray extensions callable from C++.

FossilOrigin-Name: cbd8fddf3b4cde840279502e1e9b151bb4bd42f0

12 years agoMerge VSIX tooling and packaging enhancements to trunk.
mistachkin [Sun, 28 Oct 2012 19:35:55 +0000 (19:35 +0000)] 
Merge VSIX tooling and packaging enhancements to trunk.

FossilOrigin-Name: 99f27d642fbaba02264a470977cde38c3a526d13

12 years agoFix a 32-bit integer overflow problem that could cause an error in a CREATE INDEX...
dan [Fri, 26 Oct 2012 19:22:45 +0000 (19:22 +0000)] 
Fix a 32-bit integer overflow problem that could cause an error in a CREATE INDEX statement that writes more than 16GB of data.

FossilOrigin-Name: e24ba5bee4424e99d0859ef652164ae1397a2378

12 years agoMake sure the automatic index optimization is checked even if the
drh [Fri, 26 Oct 2012 18:40:01 +0000 (18:40 +0000)] 
Make sure the automatic index optimization is checked even if the
covering index scan optimization was previously selected.

FossilOrigin-Name: ac1d5d8a553d8ba76a332eed9d563ce7f04a7a37

12 years agoAdd QNX-specific performance tweaks to the unix VFS. (Cherry-pick merge of
drh [Fri, 26 Oct 2012 13:46:24 +0000 (13:46 +0000)] 
Add QNX-specific performance tweaks to the unix VFS. (Cherry-pick merge of
[b02849e7bde458].)

FossilOrigin-Name: 63a7dd75e61afb3d05a1434f66ad6a5f08352aad

12 years agoMake sure all virtual table cursors have been closed on a prepared statement
drh [Fri, 26 Oct 2012 00:55:07 +0000 (00:55 +0000)] 
Make sure all virtual table cursors have been closed on a prepared statement
prior to unlinking the perpared statement from its database connection.
The test case for this is in TH3, in the main39.test module.

FossilOrigin-Name: 6d42d806adb833572a324d4141ab3b2c315617b2

12 years agoMake sure all virtual table cursors have been closed on a prepared statement deferred-close-order
drh [Fri, 26 Oct 2012 00:11:23 +0000 (00:11 +0000)] 
Make sure all virtual table cursors have been closed on a prepared statement
prior to unlinking the perpared statement from its database connection.

FossilOrigin-Name: f7c5abe8739090db0738d2c7002a0d71f76c927e

12 years agoFix a bug in fts3 causing it to return SQLITE_NOMEM when NEAR, OR and some auxiliary...
dan [Thu, 25 Oct 2012 19:25:39 +0000 (19:25 +0000)] 
Fix a bug in fts3 causing it to return SQLITE_NOMEM when NEAR, OR and some auxiliary functions were used together. Also a segfault in vtab.c that could follow an OOM condition.

FossilOrigin-Name: 33f4f9817e8b3cb97ce02a4c49bd586332da37b2

12 years agoFix typo in usage text for the command-line shell. Also, in the same usage text...
mistachkin [Thu, 25 Oct 2012 15:43:28 +0000 (15:43 +0000)] 
Fix typo in usage text for the command-line shell.  Also, in the same usage text, make the file name argument to -init uppercase for consistency.

FossilOrigin-Name: a6d906cfeb9b181fd5b88df3650bab7ee1a24c0b

12 years agoImprovements to the command-line argument parsing in the
drh [Thu, 25 Oct 2012 15:23:14 +0000 (15:23 +0000)] 
Improvements to the command-line argument parsing in the
command-line shell.  Command-line options can now occur either before
or after the database name and first command and are still accepted and
processed.  Command-line options are processed even if no database name
is given (and :memory: is assumed).

FossilOrigin-Name: 317c80cba3688a97ade9cde622cc3bd94cf3436a

12 years agoImplementation of the INSTR() SQL function, as found in SQL Server, MySQL, instr
drh [Thu, 25 Oct 2012 03:07:29 +0000 (03:07 +0000)] 
Implementation of the INSTR() SQL function, as found in SQL Server, MySQL,
and Oracle.

FossilOrigin-Name: 49ccae964f3a8ae5aab87f56503121e09424545f

12 years agoTranslate the Debug/Release project configurations to the Debug/Retail VSIX package... vsixFlavor
mistachkin [Wed, 24 Oct 2012 00:47:59 +0000 (00:47 +0000)] 
Translate the Debug/Release project configurations to the Debug/Retail VSIX package configurations.

FossilOrigin-Name: 5023a7adcac2022a4a2009183d9d9e0f6b46952b

12 years agoModify clean target to handle all VSIX package flavors.
mistachkin [Sat, 20 Oct 2012 09:35:57 +0000 (09:35 +0000)] 
Modify clean target to handle all VSIX package flavors.

FossilOrigin-Name: 023217ea9eea4fea5d3be7707599c6980d4b76f7

12 years agoModify VSIX build tools in support of an additional package flavor.
mistachkin [Sat, 20 Oct 2012 08:40:05 +0000 (08:40 +0000)] 
Modify VSIX build tools in support of an additional package flavor.

FossilOrigin-Name: 702ebc646b43468e6a89322e4e2f4b1ef7858589

12 years agoMake sure substructure elements have proper alignment in the ICU tokenizers
drh [Fri, 19 Oct 2012 02:10:53 +0000 (02:10 +0000)] 
Make sure substructure elements have proper alignment in the ICU tokenizers
of FTS2 and FTS3.

FossilOrigin-Name: aaa2d9b0db74d8452d9294de17cff786ab4ec7c8

12 years agoAdd detailed comments to the build tools used to generate the VSIX package. Also...
mistachkin [Fri, 19 Oct 2012 00:23:31 +0000 (00:23 +0000)] 
Add detailed comments to the build tools used to generate the VSIX package.  Also, allow the build configurations and native library directories to be overridden for the multi-platform build tool for MSVC.

FossilOrigin-Name: 0482c73bfdf80b0c0ce9abea706554d7ddf36f69

12 years agoPut auxiliary libraries after libsqlite3.a in the testfixture target of the
drh [Thu, 18 Oct 2012 20:49:26 +0000 (20:49 +0000)] 
Put auxiliary libraries after libsqlite3.a in the testfixture target of the
"main.mk" makefile.

FossilOrigin-Name: 8fc8548f52ab8fcfb53f88db68422e09c9b98da1

12 years agoMerge Watcom compiler warning fixes into trunk.
drh [Thu, 18 Oct 2012 15:01:27 +0000 (15:01 +0000)] 
Merge Watcom compiler warning fixes into trunk.

FossilOrigin-Name: 5be96788a142362fa1f218191d2a93fdea46d93d

12 years agoMore warning fixes.
mistachkin [Thu, 18 Oct 2012 10:35:19 +0000 (10:35 +0000)] 
More warning fixes.

FossilOrigin-Name: 51a6a797e1d61c4361b87cdf3467bfd3ce161cc3

12 years agoFix harmless compiler warnings.
mistachkin [Thu, 18 Oct 2012 09:39:16 +0000 (09:39 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: 018e09c70347b9e0c76246ae65d57ef5d29a965a

12 years agoAdd a comment to fts3_snippet.c.
dan [Wed, 17 Oct 2012 20:28:52 +0000 (20:28 +0000)] 
Add a comment to fts3_snippet.c.

FossilOrigin-Name: b5f5ba3103e6fcf117fb69d5379fa70f691a652d

12 years agoInitialize variables used as outputs of custom tokenizer method calls in fts4.
dan [Wed, 17 Oct 2012 20:15:10 +0000 (20:15 +0000)] 
Initialize variables used as outputs of custom tokenizer method calls in fts4.

FossilOrigin-Name: 514505a84bcc677518d60a42896598f85ed78265

12 years agoAdd a test for the problem fixed by [bf44d73d3e].
dan [Wed, 17 Oct 2012 16:20:36 +0000 (16:20 +0000)] 
Add a test for the problem fixed by [bf44d73d3e].

FossilOrigin-Name: db9b1fa5973d79e29885817d5aedc3a886c2589a

12 years agoChange the way the tcl crash-test code works to avoid triggering an assert() in os_un...
dan [Wed, 17 Oct 2012 15:28:26 +0000 (15:28 +0000)] 
Change the way the tcl crash-test code works to avoid triggering an assert() in os_unix.c.

FossilOrigin-Name: b8b7b8f9e97a5c34f0f199b46347e0bf85005a4d

12 years agoRemove an incorrect "#ifndef SQLITE_OMIT_AUTOVACUUM" from pager.
drh [Wed, 17 Oct 2012 13:15:02 +0000 (13:15 +0000)] 
Remove an incorrect "#ifndef SQLITE_OMIT_AUTOVACUUM" from pager.

FossilOrigin-Name: bf44d73d3e4ec403947d361d2fa150cc240c4d45

12 years agoCorrect comments and enhance readability of the mkvsix tool.
mistachkin [Mon, 15 Oct 2012 20:28:22 +0000 (20:28 +0000)] 
Correct comments and enhance readability of the mkvsix tool.

FossilOrigin-Name: 2c3af657fee6153842d660a6ce29aa7d791ebd38

12 years agoHold the mutex on the shared-cache for the duration of a VACUUM operation.
dan [Mon, 15 Oct 2012 18:02:57 +0000 (18:02 +0000)] 
Hold the mutex on the shared-cache for the duration of a VACUUM operation.

FossilOrigin-Name: 629a42d47a0d8f73de900f469845ce800bdb8959

12 years agoDequote column names generated by the query flattener.
drh [Mon, 15 Oct 2012 16:24:07 +0000 (16:24 +0000)] 
Dequote column names generated by the query flattener.

FossilOrigin-Name: 5526e0aa3ccb24988a4f351ac994907b6e89018a

12 years agoFix a failing assert() in wal.c.
dan [Mon, 15 Oct 2012 11:28:24 +0000 (11:28 +0000)] 
Fix a failing assert() in wal.c.

FossilOrigin-Name: 8745530b9a877db77fe2ca3ea9c6bc99ce033055

12 years agoEnsure that when the source of a backup is a database that is zero bytes
drh [Sat, 13 Oct 2012 23:16:00 +0000 (23:16 +0000)] 
Ensure that when the source of a backup is a database that is zero bytes
in size, the final destination database consists of at least one page.
Truncating it to zero bytes is equivalent to zeroing the schema cookie
and change counter, which can cause problems for existing clients.

FossilOrigin-Name: ca86138bda26c5ac5a7e67351acbd19fbd39b0ae

12 years agoMark an always-true conditional as such. zero-byte-backup-fix
drh [Sat, 13 Oct 2012 20:55:12 +0000 (20:55 +0000)] 
Mark an always-true conditional as such.

FossilOrigin-Name: ae025cae2266a91d4226bbdb66f82b9d7714750a

12 years agoModify backup4 test name prefix to make the resulting test names unique.
mistachkin [Sat, 13 Oct 2012 20:20:09 +0000 (20:20 +0000)] 
Modify backup4 test name prefix to make the resulting test names unique.

FossilOrigin-Name: 637fb1c1b7642ba3a404dde32e40d4a4ad16fe14

12 years agoEnsure that when the source of a backup is a database that is zero bytes in size...
dan [Sat, 13 Oct 2012 19:58:11 +0000 (19:58 +0000)] 
Ensure that when the source of a backup is a database that is zero bytes in size, the final destination database consists of at least one page. Truncating it to zero bytes is equivalent to zeroing the schema cookie and change counter, which can cause problems for existing clients.

FossilOrigin-Name: af5c9ee4a453f71c03f24ad08824ced6c1b97afb

12 years agoAllow the showdb tool to be compiled with MSVC.
mistachkin [Sat, 13 Oct 2012 09:31:20 +0000 (09:31 +0000)] 
Allow the showdb tool to be compiled with MSVC.

FossilOrigin-Name: dce391fc6302301e9ac53a5e4fc69f3bd7ba13a7

12 years agoTooling support for including the debug build in the VSIX package.
mistachkin [Fri, 12 Oct 2012 18:06:07 +0000 (18:06 +0000)] 
Tooling support for including the debug build in the VSIX package.

FossilOrigin-Name: de784399ed1f0e27fc875e32719643d19819c8fb

12 years agoFix duplicate test name in whereD.test.
mistachkin [Wed, 10 Oct 2012 13:59:11 +0000 (13:59 +0000)] 
Fix duplicate test name in whereD.test.

FossilOrigin-Name: 1182b54af0fd43d5e6aa6399837e7915aa60a578

12 years agoDefine the sqlite3PagerWalFramesize() function even if SQLITE_OMIT_WAL is used.
drh [Wed, 10 Oct 2012 12:14:09 +0000 (12:14 +0000)] 
Define the sqlite3PagerWalFramesize() function even if SQLITE_OMIT_WAL is used.

FossilOrigin-Name: 96247853ef3d556a13b899b4c907b9fa2c78d513

12 years agoAdd support for URI filenames in sqlite3_analyzer.
drh [Wed, 10 Oct 2012 10:52:46 +0000 (10:52 +0000)] 
Add support for URI filenames in sqlite3_analyzer.

FossilOrigin-Name: 6dc987d32ba4d09b811ef281cdae09be17ac936c

12 years agoMove a couple of WAL-related function declarations in sqliteInt.h and pager.h into...
dan [Wed, 10 Oct 2012 09:46:29 +0000 (09:46 +0000)] 
Move a couple of WAL-related function declarations in sqliteInt.h and pager.h into "#ifndef SQLITE_OMIT_WAL" blocks. Otherwise, the amalgamation fails to build using some compilers with SQLITE_OMIT_WAL (static function declared but not defined).

FossilOrigin-Name: f7437153b90b25a1b77294a0f8d1b0bd4bd08c08

12 years agoMerge the fix for ticket [d02e1406a58ea02] into trunk.
drh [Tue, 9 Oct 2012 21:07:23 +0000 (21:07 +0000)] 
Merge the fix for ticket [d02e1406a58ea02] into trunk.

FossilOrigin-Name: dd34bec389359845b86f4cc4906ab440f92dcab9

12 years agoAttempt to suppress warnings generated by Coverity.
drh [Tue, 9 Oct 2012 18:51:44 +0000 (18:51 +0000)] 
Attempt to suppress warnings generated by Coverity.

FossilOrigin-Name: 7b1a6e6cb5099076bf19db142b17c99044a869cd

12 years agoAvoid an assertion fault and/or freeing memory while it is still in use when
drh [Tue, 9 Oct 2012 14:36:47 +0000 (14:36 +0000)] 
Avoid an assertion fault and/or freeing memory while it is still in use when
an error occurs during virtual table construction.

FossilOrigin-Name: a02599ad85d02470c9effa51c02dbda7796bfa16

12 years agoBring some comments up to date in the query planner, and especially the
drh [Tue, 9 Oct 2012 09:26:28 +0000 (09:26 +0000)] 
Bring some comments up to date in the query planner, and especially the
ORDER BY optimizer.  Also add testcase() macros.

FossilOrigin-Name: bb5c0f1c92b48631d4a12cd4f321b53cd07885c8

12 years agoRemove an unused variable. Fix code that occurs before a variable
drh [Tue, 9 Oct 2012 01:39:25 +0000 (01:39 +0000)] 
Remove an unused variable.  Fix code that occurs before a variable
declaration.

FossilOrigin-Name: 01dc032b5bbd9c9ebb1965f176ca5d732cda85ea

12 years agoReplace an always-false conditional with an assert().
drh [Tue, 9 Oct 2012 01:23:25 +0000 (01:23 +0000)] 
Replace an always-false conditional with an assert().

FossilOrigin-Name: 981b9943e4b2b660690ec1ac145abdd3c74f8dd2

12 years agoChanges to facilitate full test coverage.
drh [Mon, 8 Oct 2012 23:25:07 +0000 (23:25 +0000)] 
Changes to facilitate full test coverage.

FossilOrigin-Name: 28d1eb40bfc4c993010ce670ee10780ca2ae5c9c

12 years agoMerge ORDER BY optimization refactoring and repair into trunk.
drh [Mon, 8 Oct 2012 21:51:58 +0000 (21:51 +0000)] 
Merge ORDER BY optimization refactoring and repair into trunk.

FossilOrigin-Name: c027a9af9137f3346dbb5c5e100a087c2e89797b

12 years agoAll test cases (veryquick.tcl and min.rc) pass. A few branch operations in qp-enhancements
drh [Mon, 8 Oct 2012 21:01:15 +0000 (21:01 +0000)] 
All test cases (veryquick.tcl and min.rc) pass.  A few branch operations in
ORDER BY optimization logic are untested by min.rc.

FossilOrigin-Name: 8314fd6078a3a71aea9d6386ff277cfeb592b4ba