drh
f1a08ad88d
Change the names of the stream interface APIs to be of the form
...
"_strm" instead of "_str". In other words, added an "m" to the end, to
try to make it clear that we are talking about a "stream" and not a "string.
FossilOrigin-Name: 1f44bfdc237ee6304f4aa56e5c5d1c0d74fcc944
2014-09-27 20:45:48 +00:00
drh
6382b6dc71
Merge recent trunk changes (performance enhancements) into the sessions
...
branch.
FossilOrigin-Name: 497367cb57345dd37793e5f369b34d12be56172e
2014-09-27 19:51:50 +00:00
drh
3b130beb15
If an SQL function makes a recursive call to do an INSERT into the same
...
database, make sure that the last_insert_rowid() for that INSERT is recorded.
FossilOrigin-Name: e93aecc090c2a1d3c231bb2bde044886eff0bdf7
2014-09-26 01:10:02 +00:00
drh
2c4dc635a1
Simplification to the random rowid picking logic that begins running when
...
the maximum possible rowid has already been used.
FossilOrigin-Name: 1330c72e172324c68ab49e5bb2ceba985935ae01
2014-09-25 12:31:28 +00:00
dan
4757c65866
Add streaming version of sqlite3changeset_apply(). Tests and fixes for the same and sqlite3changeset_start_str().
...
FossilOrigin-Name: b917fc146876f764442de08d5ec36e5b4cf5ab52
2014-09-24 17:13:20 +00:00
drh
feada2df39
Do not allow parameters in a DEFAULT clause of a CREATE TABLE statement.
...
Ticket [78c0c8c3c9f7c1].
FossilOrigin-Name: 1ad2bc1ed4c4ac81ac67a9660761f0eeb47c7fef
2014-09-24 13:20:22 +00:00
dan
ef7a630496
Begin adding 'streaming' APIs to sessions module. This is a work in progress.
...
FossilOrigin-Name: 3c7d3d950bbf5f5ed3696ebc61c77ca48bafe2b5
2014-09-23 20:39:55 +00:00
drh
3b8fea9ec6
Add the "multiplex_truncate" PRAGMA to the multiplexor extension, for
...
querying and setting the truncate flag on a database connection.
FossilOrigin-Name: d2962a5f388f30a02429e0c8b87399f482b5604c
2014-09-23 18:30:00 +00:00
drh
14f0e2128a
Adjust skip-scan cost estimates slightly so that a full table scan is
...
preferred over a skip-scan to a column with only two distinct values.
FossilOrigin-Name: ae9a42b268ad3f7d21a5813bb931e795c6917014
2014-09-23 01:40:59 +00:00
drh
7e07433fe7
Tune the query planner to be more aggressive about using automatic indexes
...
on views and subqueries for which there is not opportunity to declare a
persistent schema index.
FossilOrigin-Name: 41de1643bfc9ae25e20790d707e2789b665baa2b
2014-09-22 14:30:51 +00:00
drh
6b011d83b4
Merge all recent trunk changes into the sessions branch.
...
FossilOrigin-Name: 6406b77f2c447751a2fbb16f01c61cdcfd6af59e
2014-09-21 22:49:20 +00:00
drh
d7643037e6
Add test cases for ticket [89398880bcfff9].
...
FossilOrigin-Name: 9683e001ed38b41979220eef0bdfcb54df5f3191
2014-09-21 20:31:26 +00:00
drh
137fd4fda2
Make sure that the sorting-index pre-filter recognizes that a rowid reference
...
might be sortable. This fixes a performance regression.
FossilOrigin-Name: 72727b68cd07969165f1f0943cc7e1a265436653
2014-09-19 02:01:37 +00:00
dan
ed7bcba798
Avoid attempting to call the xFetch() method of an sqlite3_io_methods object with a version number less than 3.
...
FossilOrigin-Name: dedaa6fb3d2e6e697d4a48649af5f42d9a11c333
2014-09-15 16:50:34 +00:00
drh
9588ad95c1
Do not flatten aggregate subqueries that contain min() or max() functions
...
so that if the min()/max() are discarded by the outer query, they still
function and cause non-aggregate expression to be evaluated on the minimal
or maximal row.
FossilOrigin-Name: 0bdf1a086b3946722f4d4b328e25917f61c14713
2014-09-15 14:46:02 +00:00
drh
7883ecfcd4
Enhance the sqlite3_user_add() interface to initialize the user
...
authentication logic. Add test cases for the extra argument on the
end of the authorizer callback.
FossilOrigin-Name: 842c6da8f1a62bd13a1b4089a98b0835a46a2285
2014-09-11 16:19:31 +00:00
drh
a000ca681a
All interfaces working and tested.
...
FossilOrigin-Name: 96ea5c0b3cd1dec81d490f2f958ebd2e47a24921
2014-09-11 15:25:02 +00:00
drh
9d5b0df132
Get the sqlite3_user_delete() interface working.
...
FossilOrigin-Name: 974a9c65583f7ab438d5673dc00c347ab8322855
2014-09-11 14:56:45 +00:00
drh
570f187f78
Fix the sqlite3_user_change() interface so that it does allow a
...
non-admin user to change their own password.
FossilOrigin-Name: 52d440c7e1b07fc03f14ed5fa4cc4c89a75cd430
2014-09-11 14:40:27 +00:00
drh
32c6a48b5e
Add support for the extra parameter on the sqlite3_set_authorizer() callback
...
and support for failing an ATTACH with an authentication-required database
using bad credentials. The extension is now feature complete, but much
testing and bug-fixing remains.
FossilOrigin-Name: 596e728b0eb19a34c888e33d4d37978ca2bf1e00
2014-09-11 13:44:52 +00:00
drh
d39c40ff5e
Reorder parameters on the sqlite3_user_*() interfaces for consistency.
...
Add the first TCL test cases.
FossilOrigin-Name: 2f6d8f32eef526b5912f42ab467e3c7812480d8b
2014-09-11 00:27:53 +00:00
drh
a4a8a3c22e
Merge support for large files on Android from trunk.
...
FossilOrigin-Name: c2885c6bb24cc55178467e57e77bf71df58b3b13
2014-09-08 15:04:24 +00:00
mistachkin
6b9da12856
Fix a couple of typos in comments. No changes to code.
...
FossilOrigin-Name: a758465e3cfa7e0cb8749d097cd6fb5f86b60955
2014-09-06 02:00:41 +00:00
drh
d8b77e20fc
Query planner heuristic update:
...
When doing a full table scan on a table that has an equality constraint on
an unindexed column, do not allow the estimated number of output rows to
be greater than half the total number of rows in the table.
FossilOrigin-Name: 73954f93c4c6f880c6e01d0d130e3fed40fd4106
2014-09-06 01:35:57 +00:00
drh
bf9ed6f9af
Merge the latest trunk changes, including the multi-threaded sorter, into
...
the sessions branch.
FossilOrigin-Name: d4cce2c71e64ab7b6a65a81b88b69445ed859351
2014-09-02 15:49:47 +00:00
drh
43cbe14378
Fix the speedtest1.c test program to set the worker thread count using
...
the threads pragma.
FossilOrigin-Name: 2ab4b5adc60b52bf2d2b79968d226b8dd7d2ab3b
2014-08-29 18:06:33 +00:00
drh
503ae86508
Merge recent performance enhancements from trunk onto the threads branch.
...
FossilOrigin-Name: 35c44a3c73e2e8b14ff194c41986f4bdb9dfe737
2014-08-29 14:40:07 +00:00
dan
7fa0631ece
Fix a problem causing an inaccurate stat4-based estimate for the number of rows visited by a range scan.
...
FossilOrigin-Name: 052d89b554a947b7e420b7feb6650f5069b7cefa
2014-08-28 16:01:31 +00:00
dan
54ae4e3179
Add a missing ticket number to a comment in index7.test.
...
FossilOrigin-Name: d8b1c4336145d436241863c3525530e24a24799b
2014-08-27 17:48:15 +00:00
dan
0829169f1e
When determining whether or not a partial index is usable, do not assume that the cursor number assigned to each table in the query is the same as its index in the FROM clause. Fix for ticket [98d973b8f5].
...
FossilOrigin-Name: fcebca166f15431764b82a8b267f11d28386e975
2014-08-27 17:37:20 +00:00
drh
e1ed0b0e17
Merge recent performance enhancements and the CAST operator enhancements
...
into the sessions branch.
FossilOrigin-Name: 08ae974ac80fabe53f515bbbd93ccf55de8ee671
2014-08-26 02:15:07 +00:00
drh
028696c4cc
Remove the SQLITE_CONFIG_WORKER_THREADS configuration parameter. The number
...
of worker threads in the sorter is now determined only by the
PRAGMA threads=N setting.
FossilOrigin-Name: e3305d4b4efcbe06945ce7f6ec0f2e864244aaf9
2014-08-25 23:44:44 +00:00
drh
6c4ec84256
Merge the CAST operator enhancements from trunk.
...
FossilOrigin-Name: 6c8f86e4e08d5d57e21496277613e0f9dcc06514
2014-08-25 22:43:17 +00:00
drh
21b0e73354
Test cases added for using unary "+" and CAST operators on the RHS of range
...
constraints and verifying that STAT3/4 can use those constraints.
FossilOrigin-Name: 42505e5a810832442699ca54a46637c50e7f9e71
2014-08-25 20:21:07 +00:00
drh
4169e430a2
Allow CAST expressions and unary "+" operators to be used in the DEFAULT
...
argument of an ALTER TABLE ADD COLUMN and to be understand on the RHS of
range constraints interpreted by STAT3/4. This involves a rewrite of the
implementation of the CAST operator.
FossilOrigin-Name: 91d8a8d0b792ea5c4fe68fd9caaf3345eddea486
2014-08-25 20:11:52 +00:00
dan
f741e0491e
In cases where stat4 data is available but cannot be used because the rhs of a range constraint is too complex a expression, fall back to using the default estimates for number of rows scanned.
...
FossilOrigin-Name: e06dc6f0c35f87c44292c71677111b74f073a5c4
2014-08-25 18:29:38 +00:00
drh
4d015c6902
Merge the recent performance enhancements implemented on trunk into the
...
threads branch.
FossilOrigin-Name: dfdc900f5d1a31ee5c5f35a630c4a8253e69093b
2014-08-25 13:27:02 +00:00
drh
5ab567078a
Enhance the spellfix extension with the ability to specify a rowid when
...
inserting new rows.
FossilOrigin-Name: 369c480cda6fa66394b995346bbf51f3298446e1
2014-08-22 11:11:30 +00:00
drh
2571e4eddd
Merge all recent trunk changes, especially the fix for
...
ticket [369d57fb8e5ccdff06f1], but also the skip-scan improvement and
performance improvements in the b-tree code.
FossilOrigin-Name: 0b9e2c3269695713b538561d999c68097db70f0c
2014-08-21 16:09:36 +00:00
drh
f3f69ac942
Enhancements to skip-scan such that it is operable when a middle column of
...
an index is skipped while the left-most column is constrained in the WHERE
clause.
FossilOrigin-Name: bc985caa7816f1f873ad8e4467c5278399f315ce
2014-08-20 23:38:07 +00:00
drh
dfd1547b48
Modify the memsubsys1-3.1.4 test so that it does not fail arbitrarily due
...
to variations in the behavior of system malloc().
FossilOrigin-Name: d280157da0b5275f3e3c875d2dcfb9998d374ac0
2014-08-19 23:04:49 +00:00
drh
2c7946a485
Make sure the sqlite3_trace() callback is invoked, even if the prepared
...
statement was marked "expired" before it ever entered sqlite3_step().
Ticket [11d5aa455e0d98f3c1e6a08].
FossilOrigin-Name: 0d4d3df4bc5e75ce1543b5539a1e9e279d2a062f
2014-08-19 20:27:40 +00:00
drh
3a432b0b47
Disable the hook-7.5.2 tests when using sessions, since that are not correct
...
in that case.
FossilOrigin-Name: 6d5b9332e8d8bb572ac98b0f4e47e59ad12aac26
2014-08-19 00:33:22 +00:00
drh
8d09dfe8f3
Merge the 3.8.6 release into the threads branch.
...
FossilOrigin-Name: 05807c4122505567ec64fb2d142077f48a0a10b1
2014-08-15 15:46:21 +00:00
drh
f3a3dfe9f1
Update the sessions branch for version 3.8.6.
...
FossilOrigin-Name: 2acbeac1fd9b9feb26e1c24d4ae50ce79f17a3f8
2014-08-15 15:10:46 +00:00
dan
f216e324f9
Fix an assert that can fail if the database file is corrupted.
...
FossilOrigin-Name: 3f45b8192dad7fb1f027cbaa694046e3c1b3e278
2014-08-14 19:53:37 +00:00
drh
83b25d32d7
Merge the pre-3.8.6 changes into the threads branch.
...
FossilOrigin-Name: a608fd1d52606a009c3acc7f1d184b86a7df3c82
2014-08-14 14:02:48 +00:00
drh
d0738004ca
Merge the trunk changes for 3.8.6 beta3 into the sessions branch.
...
FossilOrigin-Name: d49455d9a972fc2224d9beb97165a998ca56e838
2014-08-13 14:43:32 +00:00
dan
299b24688a
Fix where9.test so that it works with the "no_optimization" permutation.
...
FossilOrigin-Name: d46adf9d8f741838b9c30f915231d6a3986c3591
2014-08-12 20:13:22 +00:00
dan
d79d27aeda
Run a test with TEST_REALLOC_STRESS and OMIT_LOOKASIDE defined as part of releasetest.tcl on Linux/x86-64.
...
FossilOrigin-Name: a1baf3a7b177728cdfcd6d9345a0d6bf0a8887c0
2014-08-12 14:06:13 +00:00