]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Thu, 20 Dec 2012 00:32:49 +0000 (00:32 +0000)]
Remove an unreachable branch operation from the foreign_key_check pragma.
FossilOrigin-Name:
b5a8f3160b5dc1397312add3c5410e7e0a12b75e
drh [Mon, 17 Dec 2012 22:32:14 +0000 (22:32 +0000)]
Added test cases for PRAGMA foreign_key_check. Fixed a bug that appears
when the column order of the child and parent differ.
FossilOrigin-Name:
25411f83f99803e39feee368703fd20b4ade8eeb
drh [Mon, 17 Dec 2012 20:57:15 +0000 (20:57 +0000)]
Add to the foreign_key_check pragma an extra output column "parent" that
contains the name of the parent table for the constraint that failed.
FossilOrigin-Name:
97f7f7377259ecf562019f62ebed0897cfae236e
drh [Mon, 17 Dec 2012 20:40:39 +0000 (20:40 +0000)]
Enhance the error message for "foreign key mismatch" to include the names of
the child and parent tables. Begin adding test cases for
PRAGMA foreign_key_check. Make sure PRAGMA foreign_key_check gets all
necessary table locks.
FossilOrigin-Name:
0f9963526c299757ff95c153fb05a67cddb6af28
drh [Mon, 17 Dec 2012 18:43:02 +0000 (18:43 +0000)]
"PRAGMA foreign_key_check" with no argument checks the foreign keys on all
tables.
FossilOrigin-Name:
57d47423a65d183cb1efcb95b28cb143e788b953
drh [Mon, 17 Dec 2012 18:05:54 +0000 (18:05 +0000)]
Fix an issue with child keys that are not INTEGER PRIMARY KEY
referencing INTEGER PRIMARY KEY in the parent.
FossilOrigin-Name:
603b695bf094b9da905f877a13dcb134463db92a
drh [Mon, 17 Dec 2012 16:46:37 +0000 (16:46 +0000)]
Prototype for PRAGMA that checks all foreign key constraints on a table.
FossilOrigin-Name:
01c980e9bbdf82e0b37667b6403c19ed8c73ee62
drh [Fri, 14 Dec 2012 17:54:38 +0000 (17:54 +0000)]
Optimize IN operators in the WHERE clause of queries using virtual tables.
FossilOrigin-Name:
3d65c70343196b8f69c5293e7703839846fade85
drh [Fri, 14 Dec 2012 17:48:08 +0000 (17:48 +0000)]
Remove an unreachable branch. Improvements to comments.
FossilOrigin-Name:
d2fb7619b063b329b6d7ba9a16a7290e5d868f23
drh [Fri, 14 Dec 2012 15:54:05 +0000 (15:54 +0000)]
Merge in all the trunk changes that have occurred since this branch was
opened.
FossilOrigin-Name:
6d507e4de924e2f4556ea4a03ee0fa7d647bf8bb
drh [Fri, 14 Dec 2012 15:36:17 +0000 (15:36 +0000)]
Fix the virtual table IN optimizer so that it work even if the virtual table
implementation leaves the sqlite3_index_info.aConstraintUsage[].omit flag
clear for an equality constraint that it intends to use.
FossilOrigin-Name:
d6e045f89c5a4b500b1da7ea1224b132909bafc6
drh [Thu, 13 Dec 2012 18:57:31 +0000 (18:57 +0000)]
Generalize the min/max optimization so that if an appropriate index exists,
the index it can be used by any aggregate query that contains only a single
max() or min() and does not contain a GROUP BY clause.
FossilOrigin-Name:
52e755943f87354febe214e5dc3b423a1e38ba80
drh [Thu, 13 Dec 2012 18:51:53 +0000 (18:51 +0000)]
Increase the version number to 3.7.16 in advance of adding new features
for the next release.
FossilOrigin-Name:
8bcf5f51d8a6ea47ba4eb8de001d7a30e0a5f2c3
dan [Thu, 13 Dec 2012 16:37:10 +0000 (16:37 +0000)]
Attempt to further generalize the min/max optimization so that, if an appropriate index exists, it can be used by any aggregate query that contains only a single aggregate of the form max(colname) or min(colname) and does not contain a GROUP BY clause.
FossilOrigin-Name:
7280e14cd8f55896451847b432171e8750a07c81
drh [Wed, 12 Dec 2012 14:30:03 +0000 (14:30 +0000)]
Allow the error message from "PRAGMA integrity_check" to be longer than
20,000 bytes.
FossilOrigin-Name:
120c82d56ecb574f46db01679317b8062d8779ed
dan [Wed, 12 Dec 2012 13:36:53 +0000 (13:36 +0000)]
drh [Tue, 11 Dec 2012 19:40:03 +0000 (19:40 +0000)]
Update requirements marks and test cases for multi-VALUE INSERT and to fix
typos in requirements text.
FossilOrigin-Name:
81d9ee0f0df7f283e69ba1c2845339ea3318cd66
drh [Tue, 11 Dec 2012 19:10:37 +0000 (19:10 +0000)]
Fix a typo in a comment that is used to generate
documentation. No changes to code.
FossilOrigin-Name:
e38adb60a7952ca9e28e496b4e4658c724a368d2
drh [Mon, 10 Dec 2012 22:19:14 +0000 (22:19 +0000)]
When an arithmetic operation with two integer operands must give a
floating-point answer due to overflow, make sure the answer is not
rounded back to integer by affinity.
FossilOrigin-Name:
bd7aeeb691fee69dd6a562138a7aba8e8e192272
dan [Mon, 10 Dec 2012 10:22:48 +0000 (10:22 +0000)]
Modify releasetest.tcl so that it runs the "checksymbols" test on a build without SQLITE_DEBUG defined. If SQLITE_DEBUG is defined, the sqlite3WhereTrace variable causes the test to fail.
FossilOrigin-Name:
75e545a9e2614fae7db86ecfb84e41ecbe4097ba
dan [Mon, 10 Dec 2012 09:08:17 +0000 (09:08 +0000)]
Remove a reference to JumpOnce from a comment in vdbe.c. No code changes.
FossilOrigin-Name:
ee662c039d67f118008485d95603c5a43fcac75f
drh [Sat, 8 Dec 2012 22:14:29 +0000 (22:14 +0000)]
Factor some work out of the index loop of the bestBtreeIndex() routine for
a small performance increase.
FossilOrigin-Name:
92c9ab56b1c67b9468bec57ab1d2c483a69a2810
drh [Sat, 8 Dec 2012 21:51:24 +0000 (21:51 +0000)]
Refactor collating-sequence handling as a fix for ticket [
71e333e7d2e642 ].
The Expr.pColl field is removed from the Expr object. The COLLATE operator
now becomes a separate instance of Expr in the expression tree. The code
generator looks up the correct collating function as needed, rather than
referring to Expr.pColl.
FossilOrigin-Name:
8542e6180d4321d45b34f33e481658908ce1430d
drh [Sat, 8 Dec 2012 21:36:26 +0000 (21:36 +0000)]
Adjustments to the collating-sequence refactoring to facilitate full-coverage
testing and to fix some minor issues found by TH3.
FossilOrigin-Name:
cdbfa664839a409589ec7cebfc9111235d2f3b38
drh [Sat, 8 Dec 2012 14:16:47 +0000 (14:16 +0000)]
Make sure WHERE clause constraints A=B and B=A work the same even with
COLLATE clauses.
FossilOrigin-Name:
b3f53668115f0a12a01167c2a75eecc735416024
drh [Sat, 8 Dec 2012 13:26:23 +0000 (13:26 +0000)]
Fix the header comment on the OP_Compare operator.
FossilOrigin-Name:
2722f4074fd8d189b7bd2b9107484b66500e5e9b
drh [Sat, 8 Dec 2012 04:10:44 +0000 (04:10 +0000)]
Duplicating check constraint expressions prior to code generation is no
longer required, and so it is removed.
FossilOrigin-Name:
1a9db8dc2f3c5cb089801d56122cdf5c3a618163
drh [Sat, 8 Dec 2012 03:34:04 +0000 (03:34 +0000)]
Veryquick passes all tests now.
FossilOrigin-Name:
7b96115e81deab0aa0472839cf787ba3f2fc64a7
drh [Sat, 8 Dec 2012 00:52:14 +0000 (00:52 +0000)]
Recognize TK_COLLATE operators that have been transformed into TK_REGISTER.
Skip both TK_COLLATE and TK_AS operators when looking for the top of an
expression.
FossilOrigin-Name:
f66c1db2965054f38125218202b6a6ec62d57666
drh [Fri, 7 Dec 2012 23:23:53 +0000 (23:23 +0000)]
Improved error messages when column integers in an ORDER BY clause are
out of range.
FossilOrigin-Name:
bd960d937f8d6521c8ec4b7bd8a77a498dd432d4
drh [Fri, 7 Dec 2012 23:10:40 +0000 (23:10 +0000)]
For an ORDER BY on a compound SELECT, take the collating sequence from the
left-most term of the compound.
FossilOrigin-Name:
8e724b383da1314909c9a05e9d941a26a9f50b95
drh [Fri, 7 Dec 2012 22:54:41 +0000 (22:54 +0000)]
Do not report missing collating functions while parsing the schema.
Also remove a stray comment.
FossilOrigin-Name:
e313edca0472f07e9b872b92120d80b4bc177328
drh [Fri, 7 Dec 2012 22:18:54 +0000 (22:18 +0000)]
Fix a long-standing issue with the distinct-as-aggregate optimization that
only expressed when the new collating-sequence logic is turned on.
FossilOrigin-Name:
0aaf52a339808386984c30cca0c0c35ac2e70e7e
drh [Fri, 7 Dec 2012 21:02:47 +0000 (21:02 +0000)]
Fix the processing of ORDER BY clauses with COLLATE terms on compound
queries. 52 veryquick test failures remain.
FossilOrigin-Name:
49654453ad157693414c1f86fa3afa0918acffd4
drh [Fri, 7 Dec 2012 20:31:11 +0000 (20:31 +0000)]
Many more tests are passing. Only about 100 failures remain in veryquick.
FossilOrigin-Name:
f9fa7581c0371fe0feb4e97487741ade18595810
dan [Fri, 7 Dec 2012 19:28:26 +0000 (19:28 +0000)]
Ensure the VerifyCookie sub-routine has been run before the database is accessed in an obscure case. Fix for ticket [
d6b36be38 ].
FossilOrigin-Name:
2d5f37c99a9e5377409697f5392a1ca55970964e
drh [Fri, 7 Dec 2012 18:38:16 +0000 (18:38 +0000)]
Some errors in veryquick resolved. Many more to go.
FossilOrigin-Name:
972443b4eb282d45507da06c75e2cd46dd72326b
drh [Fri, 7 Dec 2012 14:02:14 +0000 (14:02 +0000)]
Veryquick now row to completion without segfaulting or asserting. But there
are still lots of errors.
FossilOrigin-Name:
7fafab12e4c0c832c421975f8329c3214403d281
dan [Fri, 7 Dec 2012 10:55:19 +0000 (10:55 +0000)]
Do not run test file malloc3.test as part of the inmemory_journal permutation. Explanation is in a comment at the top of malloc3.test.
FossilOrigin-Name:
df1827b19e47724b62fdf6fbedfd4e61add343d3
mistachkin [Fri, 7 Dec 2012 09:08:42 +0000 (09:08 +0000)]
Spelling and header fixes for the async extension.
FossilOrigin-Name:
930ba85262b76e8b1555bcfe4637135c27e04d58
mistachkin [Thu, 6 Dec 2012 23:16:58 +0000 (23:16 +0000)]
In the async VFS, treat the new error code SQLITE_IOERR_DELETE_NOENT as success for xDelete.
FossilOrigin-Name:
c507ca4a8eb255923ff32001a1903dc85960f485
drh [Thu, 6 Dec 2012 21:16:43 +0000 (21:16 +0000)]
Remove the Expr.pColl field and compute the collating sequence as it is needed.
This fixes the test script "shared9.test", though there is still a memory leak.
And there are other problems. Consider this a work-in-progress.
FossilOrigin-Name:
fd011cb22f2d899d94ec7ce22641d7a8f5e19972
dan [Thu, 6 Dec 2012 19:41:44 +0000 (19:41 +0000)]
Merge the constant-refactoring-in-triggers branch with the trunk.
FossilOrigin-Name:
79ef8e3c7798dfdf37359ac816e886a43ba9d98d
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
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
drh [Thu, 6 Dec 2012 15:15:15 +0000 (15:15 +0000)]
Add a test case that demonstrates ticket [
71e333e7d2e642 ].
FossilOrigin-Name:
cc6e0785df3c2342376351e19ba7dba7b8d2f6a3
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
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
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
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
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
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
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
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
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
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
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
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
drh [Tue, 4 Dec 2012 11:03:11 +0000 (11:03 +0000)]
Fix a harmless compiler warning.
FossilOrigin-Name:
12693deba9b8a47ad02ca4e32d5fba6006b0401c
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
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
drh [Tue, 4 Dec 2012 00:53:08 +0000 (00:53 +0000)]
Fix an uninitialized variable detected by valgrind.
FossilOrigin-Name:
ffd1e51490286abfaea68fd4b4b4cb967d87b04b
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
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
drh [Mon, 3 Dec 2012 19:42:39 +0000 (19:42 +0000)]
Remove an unreachable condition. Replace it with an assert().
FossilOrigin-Name:
7d5fc1a339cf4f3597ab6a5f3e7101884d2d7673
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
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
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
drh [Tue, 27 Nov 2012 21:22:54 +0000 (21:22 +0000)]
Add the SQLLOG capability to trunk.
FossilOrigin-Name:
f0843f885ab3337f83fe3b304aab80bb7b5dd0a3
drh [Tue, 27 Nov 2012 21:12:39 +0000 (21:12 +0000)]
Improved detection of file-does-not-exist in winDelete.
FossilOrigin-Name:
92e9b5bc05887c47bc964828447a76ce29aa255c
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
drh [Mon, 5 Nov 2012 13:51:58 +0000 (13:51 +0000)]
Add the INSTR() SQL function.
FossilOrigin-Name:
a4c181cbcf9b8baa6e07501a93ef81603d91ba7d
drh [Fri, 2 Nov 2012 23:42:50 +0000 (23:42 +0000)]
Merge the fix for ticket [
bfbf38e5e9956ac6 ] into trunk.
FossilOrigin-Name:
4f7dfc32aad1c552d09dc8fefb40cc3656d74883
drh [Fri, 2 Nov 2012 19:08:31 +0000 (19:08 +0000)]
drh [Fri, 2 Nov 2012 18:48:49 +0000 (18:48 +0000)]
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
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
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
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
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
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
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
mistachkin [Sun, 28 Oct 2012 19:35:55 +0000 (19:35 +0000)]
Merge VSIX tooling and packaging enhancements to trunk.
FossilOrigin-Name:
99f27d642fbaba02264a470977cde38c3a526d13
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
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