drh
69c355bd9a
Slight simplification to the query optimizer logic associated with IN (SELECT).
...
FossilOrigin-Name: 2c55c3c2950cafdc256ab540f60dc4609b9c354b
2016-03-09 15:34:51 +00:00
dan
ab8aa11b96
Add another test case for bug [5e3c8867].
...
FossilOrigin-Name: d91e57e49f23414ec9211b775eb11cd6230a4f96
2016-03-09 15:14:54 +00:00
drh
90730c9e68
When optimizing expressions of the form "x IN (SELECT ...)" make sure that
...
the subquery is not correlated. Fix for ticket [5e3c886796e5512].
FossilOrigin-Name: 1ed6b06ea3c432f920fb2b66b6042be906c5d21c
2016-03-09 15:09:22 +00:00
drh
7c621fb967
Automatically disable SQLITE_ENABLE_EXPLAIN_COMMENTS if SQLITE_OMIT_EXPLAIN
...
is defined.
FossilOrigin-Name: 8d4b6b2b519a80f831d64345ac26db825b0e2ebe
2016-03-09 13:39:43 +00:00
drh
bacbbccd16
In the query planner, make sure OOM errors are reported up into
...
whereLoopAddVirtual() so that it shuts down appropriately.
FossilOrigin-Name: a13c59d08bcbc6f26ce6ac761a892eff8f035201
2016-03-09 12:35:18 +00:00
drh
c5644346b6
Disable the bestindex*.test modules when building without virtual table support.
...
FossilOrigin-Name: e0bac2f3eed900d3a26de339fb7d5963f9b47724
2016-03-09 11:59:16 +00:00
drh
d93b2b840d
Simplifications to the memjournal.c logic to facilitate testing.
...
FossilOrigin-Name: 8baa2c2c7698e03418531482a8314a5d7ae2c7d3
2016-03-09 04:17:17 +00:00
drh
769b4c95ca
Move the write failure test in memjrnlCreateFile() to just after the
...
actual write, thus reducing the number of instances of the test by one.
FossilOrigin-Name: 7f00d80c63b15376391f661d872f2b29a970702d
2016-03-09 03:44:32 +00:00
drh
c1fb2b87bd
Update a comment in btree.c to account for WITHOUT ROWID tables. No code
...
changes.
FossilOrigin-Name: fa20dcb03b92be3bb32f8e3d6f88681ace3f6c84
2016-03-09 03:29:27 +00:00
drh
2f1e02e8a7
Change a branch made obsolete by recent parser enhancements into an assert().
...
FossilOrigin-Name: ee486ef742557244f532e8d3b3604ff04e024b8a
2016-03-09 02:12:44 +00:00
drh
273021d71a
Add an #ifdef and an ALWAYS() for coverage.
...
FossilOrigin-Name: 069337a922867ad0d023f5bf36e13ea46e047000
2016-03-09 02:03:03 +00:00
drh
d1cca3b721
Change an unreachable branch in the virtual table query planner into
...
an assert().
FossilOrigin-Name: 73b97b9ec3c39ab2828ae6353b5d7e04a27996c9
2016-03-08 23:44:48 +00:00
drh
3349d9bea9
Improved comments on virtual table query planning. Added many new
...
WHERETRACE() macros.
FossilOrigin-Name: 4c89c2534abcf67bc486d5a900a84a6c4f59537e
2016-03-08 23:18:51 +00:00
drh
c629e63a55
In memjournal.c, reuse the same sqlite3_file object for both the in-memory
...
phase and the on-disk phase.
FossilOrigin-Name: e7fbbdc25c0991d4e58d78a5fcb7386e1aa7f3af
2016-03-08 17:59:19 +00:00
dan
7ed4020890
Modify the memjournal.c code to make it a bit smaller.
...
FossilOrigin-Name: d99ac4154812065eef26c298de52954d7ee0bd75
2016-03-08 17:44:08 +00:00
drh
33b104af08
Drop support for SQLITE_EXTRA_DURABLE. The new SQLITE_DEFAULT_SYNCHRONOUS
...
compile-time option is a more general replacement.
FossilOrigin-Name: f6d3156ba9af1da517dd77c1df03fa7869888463
2016-03-08 16:07:59 +00:00
drh
15d36c603d
Remove an unused goto label in the RBU extension.
...
FossilOrigin-Name: 2179a106e8dd7943d4f37093e65ce7826720904e
2016-03-08 16:02:37 +00:00
dan
d0b8b664bd
Add a new row type to RBU (a peer of insert, update and delete) - "delete then insert".
...
FossilOrigin-Name: 1d9468d2427d2c9b7240b364554ac85a0b62fa44
2016-03-08 15:52:43 +00:00
drh
9219bf9839
Add the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS
...
compile-time options. Automatically switch to the WAL_SYNCHRONOUS setting
when first opening a WAL-mode database if the synchronous setting has not
been previously set by the application.
FossilOrigin-Name: 5a847a676e756bbe33436596d4279f339bfb247c
2016-03-08 15:47:47 +00:00
dan
c7dbce0f2a
Update fts3/4 so that the 'merge=X,Y' command merges at least, instead of exactly, Y segments from a single level. This matches the documentation. 'merge=X,0' is, as it was in 3.11, an error.
...
FossilOrigin-Name: 64b3cb29159491cbfab7e01844b54408541ece5e
2016-03-08 15:37:48 +00:00
drh
c2ae2073d9
Make the SQLITE_DEFAULT_SYNCHRONOUS and SQLITE_DEFAULT_WAL_SYNCHRONOUS
...
values zero-based to agree with PRAGMA synchronous.
FossilOrigin-Name: 592d2104361500e5002783ba329a2609389c57b9
2016-03-08 15:30:01 +00:00
drh
e243de5cf5
If SQLITE_DEFAULT_WAL_SYNCHRONOUS is not the same value as
...
SQLITE_DEFAULT_SYNCHRONOUS and the application has not run
"PRAGMA synchronous", then set synchronous to the
SQLITE_DEFAULT_WAL_SYNCHRONOUS setting when entering WAL mode for
the first time.
FossilOrigin-Name: 5791407b523abd24e832fc2361b3e9f01ee2f36a
2016-03-08 15:14:26 +00:00
drh
50a1a5aaca
Add compile-time options SQLITE_DEFAULT_SYNCHRONOUS and
...
SQLITE_DEFAULT_WAL_SYNCHRONOUS used to specify the default synchronous
settings for all database connections.
FossilOrigin-Name: 1fefa967aa93372d232b96b1e0232b7b855d6d00
2016-03-08 14:40:11 +00:00
drh
6702f761ea
Fix ATTACH to use the symbolic name PAGER_SYNCHRONOUS_FULL rather than
...
an integer literal.
FossilOrigin-Name: c4e192a0e5a408e198dbacb2752859a00d2b572f
2016-03-08 14:16:23 +00:00
drh
0dba3304f6
Fix comments on pager flag settings to include synchronous=EXTRA.
...
FossilOrigin-Name: 3a65a1fc0fd2408c6984153801ec5dcd5211c897
2016-03-08 13:56:02 +00:00
drh
6de32e7cdb
Simplified error detection in the xBestIndex processing.
...
FossilOrigin-Name: 82ca2131b670505578628687746135ac413d156b
2016-03-08 02:59:33 +00:00
drh
8426e36c8f
Add the ALLBITS macro as a shorthand for "(Bitmask)(-1)".
...
FossilOrigin-Name: 91bd619d27e4d91510a187bbb88de961a31c8a2e
2016-03-08 01:32:30 +00:00
drh
599d576456
Add a NEVER() to the code generator. Change the parameter name "mExtra"
...
to "mPrereq" in the query planner, to more closely reflect its meaning.
FossilOrigin-Name: 721ae51e443647291f3a8f7f2128aa410fee2682
2016-03-08 01:11:51 +00:00
drh
fb826b8c13
Changes so that some assert()s in the virtual table query planner are
...
correct even following an OOM error.
FossilOrigin-Name: 9805f6f85211dcb5a0ab3ceca204e6f2e48530ea
2016-03-08 00:39:58 +00:00
dan
108b7953ed
Update fts3/4 so that the 'merge=X,0' command merges X pages from all segments of the first level in the fts index that contains 2 or more segments.
...
FossilOrigin-Name: cddf69dbc46f10ee7e87538dd850e086386b544c
2016-03-07 20:14:27 +00:00
drh
237b2b7111
Avoid a NULL pointer dereference following an OOM while generating code
...
for IN operators on virtual tables.
FossilOrigin-Name: c924008692e35f1f5144830af08d6de051dd21dd
2016-03-07 19:08:27 +00:00
dan
e45216fd9d
Add a new row type to RBU (a peer of insert, update and delete) - "delete then insert".
...
FossilOrigin-Name: 169311c85b30f625bdb6986c9cd11db70942d73b
2016-03-07 17:39:30 +00:00
drh
8c71a98ce1
Add the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config().
...
FossilOrigin-Name: b6c4202432dc96f8f1740f52d0bf872116357fcc
2016-03-07 17:37:37 +00:00
dan
104ead923e
Fix a problem in the previous commit affecting queries with three or more tables joined together to the right of a LEFT or CROSS JOIN operator.
...
FossilOrigin-Name: d8d89d69a490a708b83147945f74134ae0e4b387
2016-03-05 21:32:14 +00:00
dan
6a1e076939
Change the way SQLite invokes the xBestIndex method of virtual tables so that N-way joins involving virtual tables work as expected.
...
FossilOrigin-Name: 195444380bafd3d95d37ad83047c75ca20978de4
2016-03-05 21:07:49 +00:00
drh
2ea74dc805
Adjust the cost estimates for RTREE such that the expected number of rows and
...
expected cost is halved for each additional constraint.
FossilOrigin-Name: fd7cd0609381a85673d1f737ebeb19dde3de180f
2016-03-05 20:28:24 +00:00
dan
115305ff00
Change the way SQLite invokes the xBestIndex method of virtual tables so that N-way joins involving virtual tables work as expected.
...
FossilOrigin-Name: ffc65968ede2c402e616147e6e3d737e6f9de21d
2016-03-05 17:29:08 +00:00
drh
c2f18adde5
Remove the unused journal.c source file (its function have been subsumed into
...
memjournal.c). Refactor some of the names in memjournal.c. No functional
changes.
FossilOrigin-Name: 5f2a262d3f6b1531001326faf1d3b3d92c20a30a
2016-03-05 15:35:09 +00:00
drh
65a7e769e7
Work around (incorrect) ASAN warnings in memjournal.c.
...
FossilOrigin-Name: 4de09777dad6188b7e897473700af3c9655e8547
2016-03-05 15:03:31 +00:00
drh
07eab3b87f
Fix an integer size mismatch problem in test_bestindex.c
...
FossilOrigin-Name: 2e35eb6b7464455467c868adfbcaad4da16d3207
2016-03-05 14:19:32 +00:00
drh
14bfd99143
Fix an incorrect #ifdef on sqlite3LogEstToInt().
...
FossilOrigin-Name: dca7b23354a6b08c926b6ed3f7345d942a409862
2016-03-05 14:00:09 +00:00
drh
6f17c09fcf
Fix an assert() in sqlite3VarintLen(), even though it is impossible to hit
...
in SQLite due to the way sqlite3VarintLen() is used.
FossilOrigin-Name: 251424c5869f43012fc1e1a545de362036b883db
2016-03-04 21:18:09 +00:00
drh
3298a641a2
Defer opening and writing statement journals until the size reaches a
...
threshold (currently 64KiB).
FossilOrigin-Name: cb9302cca423de41305719a49208daa392ec09da
2016-03-04 14:43:44 +00:00
drh
3ac9a86415
Update test cases to taken deferred statement-journal opening into account.
...
FossilOrigin-Name: 5b2fe5219ab9ad15969e3374894a75979b65cb3c
2016-03-04 14:23:10 +00:00
drh
14520bfd23
Merge changes from trunk.
...
FossilOrigin-Name: a87305dfd49ee17632d0bce66ce7c2e9407b7b3e
2016-03-04 13:08:35 +00:00
drh
94580868f5
Change the default cache_size to -2000 (which means 2000*1024 bytes
...
independent of page_size).
FossilOrigin-Name: 2682e8e413fadbca0673f242769af17bfd291559
2016-03-04 04:01:43 +00:00
drh
9878fefd6f
Change the default page size for new database files to 4096 (from 1024).
...
Except, when building the testfixture, preserve the legacy page size.
Also fix a comment on SQLITE_MAX_ATTACHED.
FossilOrigin-Name: 2e8a9ca9d3d6efddc31f01074d14acae56568c37
2016-03-04 03:43:10 +00:00
drh
e808d7c1fe
Detect the presence of pread()/pwrite() system calls on unix systems and
...
use them if available.
FossilOrigin-Name: 82cbf5ad2ed988a006106e188e98096a52e6779d
2016-03-04 03:20:05 +00:00
drh
79a2ca3944
Further fixes to the pread()/pwrite() enabling logic.
...
FossilOrigin-Name: 38fb54e7854ac0500a88585ff9dd7487b4b2e586
2016-03-04 03:14:39 +00:00
drh
a46cadc42e
Fix the build for cases when pread()/pwrite() are not available.
...
FossilOrigin-Name: 7d67d876b70c7a4199697c5b112d809c600e140e
2016-03-04 03:02:06 +00:00