drh
34d0b1ac56
Get writes working on the sqlite_dbpage virtual table. Add a few test cases.
...
FossilOrigin-Name: a8b264d811e5bcb7e3ae8a12bf5b6830a9d1adff1f59436dda9e886f97da242f
2017-10-11 15:02:53 +00:00
drh
a43c8c8a60
Initial implementation of the "sqlite_dbpage" virtual table. Currently
...
it is read-only and has a place-holder xBestIndex.
FossilOrigin-Name: c2c1d656e3f52465192c2a697a976cd1837ccc4e10708a2377cff8bf6eaa7d49
2017-10-11 13:48:11 +00:00
drh
ff0a67a1a7
In the speed-check.sh test script, allow an additional test-name argument
...
which becomes the comparison baseline, in place of "trunk".
FossilOrigin-Name: 0245adffc6f9b580217e0d2feb396d6895e54cdc25f5dfc9c8f4090b919e9e49
2017-10-11 12:20:36 +00:00
drh
a2c41c2f2b
DROP TABLE now works for WITHOUT ROWID tables and the SQLITE_OMIT_AUTOVACUUM
...
compile-time option. Fix for ticket [e651b1341861d6]
FossilOrigin-Name: b8c1b5a584aeb6ab63cff875ca16135efeadac16b4b32afa589845477feebf32
2017-10-10 13:37:22 +00:00
mistachkin
94ea27f808
Fix harmless compiler warnings in FTS5 seen with MSVC.
...
FossilOrigin-Name: 5594a121bf132a98d0ecb4cf86d9f2681925c9416206096bf11c9370a5dae22f
2017-10-08 02:22:06 +00:00
mistachkin
cc24f81576
Fix harmless compiler warning seen with MSVC.
...
FossilOrigin-Name: 39d920d1ef0cce40195b21e148f78f544710348fa180c0e76f743a73e5236d45
2017-10-07 23:58:55 +00:00
mistachkin
4537f77a53
Revise variable declaration moved in the previous check-in so sqlite3VdbeReset() is consistent with sqlite3VdbeRewind().
...
FossilOrigin-Name: 63d1b425ee6a7d2ae782b738d81d98e39342ae7fe7c4fd217a28a0bdafe4f222
2017-10-07 23:35:40 +00:00
mistachkin
b60424e495
Fix C99-style variable declaration issue seen with older versions of MSVC.
...
FossilOrigin-Name: 14b181e862bd742555c51b87fab59d6f8f6602fe2c18dde3ef3b020779912419
2017-10-07 23:31:33 +00:00
dan
a0ac086f15
Add tests for the example fts3 "rank" function that appears in the
...
documentation.
FossilOrigin-Name: 702b137aa4f76543647e177beeb1ca2b3cd18c61021c78880e9aa8656f341d65
2017-10-06 18:00:36 +00:00
drh
2ed5737aca
Fix compiler warnings that come up with SQLITE_OMIT_WAL.
...
FossilOrigin-Name: 8ca0fa8dfe6a66aea7fc63f15e6f704cb190aa0760a3fec2db5f6bad3861a135
2017-10-05 20:57:38 +00:00
dan
5f54e2b5d3
Fix a problem building with SQLITE_OMIT_WAL defined.
...
FossilOrigin-Name: 373b0ace480aa303bbf512ea8806a17f6186b16d6316a7b724499bf94b3974d4
2017-10-05 20:02:49 +00:00
drh
c3cbd678a1
Fix the command-line shell so that the ".schema --indent" command does a better
...
job of dealing with \r\n in the middle of a CREATE statement in the schema.
FossilOrigin-Name: 4258fb578a6e75590c7314fe511ca8dc6659e5f2d3a54d8f60ff705fe51ccc92
2017-10-05 19:12:10 +00:00
drh
5aa1e7cd30
Disable the delta checksum verification in RBU by default. Reenable it using
...
-DRBU_ENABLE_DELTA_CKSUM, if desired.
FossilOrigin-Name: d22c99b6ba997179ef3ccd341d9c36d5213d699305d15942d82587a0bfd16f9d
2017-10-05 11:29:37 +00:00
drh
c6aa38159b
Updates to requirements marks.
...
FossilOrigin-Name: 40964a4ef7565ea0ddf452f48cb22373d068528e07d40eefc008f2231c969422
2017-10-04 18:26:44 +00:00
dan
7b7c956f09
Update the speedtest1 program so that it prints the output of "PRAGMA
...
compile_options" if the -stats option is specified.
FossilOrigin-Name: 7c69f8f1089c3e3843fbf7ec37a897c849a3df822a4ce3b4fcde586adf991a3f
2017-10-04 17:05:04 +00:00
mistachkin
3dfbe9b3fc
Fix typos in session extension header comments. No changes to code.
...
FossilOrigin-Name: 182ec9d6f6c44938de0a2cd542e259d082deeeabc12a1815fff35e3ed1e524ef
2017-10-04 16:35:01 +00:00
drh
f3b2c7aa81
New test cases for ticket [b899b6042f97f5] derived from a bug report on
...
the mailing list from Wout Mertens.
FossilOrigin-Name: ef94ea061d2ec8ee0243e97dfcfc7a7c75dd22006e61a7195b780722bbc925db
2017-10-04 14:13:29 +00:00
dan
4c16760c37
Amend recent changes to busy.test to avoid failing with SQLITE_ENABLE_STAT4
...
builds.
FossilOrigin-Name: 9ff4944194c56b38843bc626dc51604db8e1ca8a0fd221e2d6f78c840d57c341
2017-10-04 12:08:35 +00:00
drh
7c58fea39f
Turn restriction 20 on the query flattener into an assert since the situation
...
restricted can no longer occur because of the more aggressive use of
co-routines.
FossilOrigin-Name: 4464f40ccd7c5553f4d44120ca6dac4e9445f08f083f7dcb3bd66b4413d818e0
2017-10-04 12:06:31 +00:00
dan
61b513e9e3
Add tests to verify that the busy-handler is invoked correctly when processing "PRAGMA optimize" and ANALYZE commands.
...
FossilOrigin-Name: fb83c3d8df250cb701fbe775b48ab93f5674496f68c57e04f50668c43c2de328
2017-10-04 10:39:28 +00:00
drh
cdb2f60743
Remove a redundant restriction from the query flattener.
...
FossilOrigin-Name: 66629b2a0997ceedcfb38553f2200466b6c4e352ea00f8a0a7cb67a660c19523
2017-10-04 05:59:54 +00:00
drh
e76acc654f
Fix a minor typo in the query flattener header comment. No code changes.
...
FossilOrigin-Name: d050dc605c24bcf60c0c47d13612ad53b871d3d4eff681c0c1b933acf53fb5ee
2017-10-04 02:30:45 +00:00
drh
0c4db03481
Simplify the computation of types on columns of a view.
...
FossilOrigin-Name: 772b0db1469c9e1c2728cf65dd070e29c624e75c3a5da72ee1297f15d758dd13
2017-10-03 19:53:12 +00:00
drh
997a4deb4e
Do not enable SELECT tracing with -DSQLITE_DEBUG. Require the
...
-DSQLITE_ENABLE_SELECTTRACE compile-time option to enable SELECT tracing.
FossilOrigin-Name: f5c395834c2a776beba6fe172cc4a5e428ce30b9cb4259ef8e440f10455a41e9
2017-10-03 18:35:57 +00:00
drh
8906a4b802
Add some OK_IF_ALWAYS_TRUE() marks on optimization branches in select.c.
...
FossilOrigin-Name: 1dd828088d6981dfebf9f4d650dad8431bece4405650c61f90eb8d8f43289b52
2017-10-03 17:29:40 +00:00
drh
ce2c482e5a
Remove an unused variable from sqlite3Insert() and fix harmless
...
compiler warnings associated with -DSQLITE_MUTATION_TEST.
FossilOrigin-Name: 7be760e907274131bcd4acfaff9e72c9c59a05e7d411db3d9afe690fe0d64b4b
2017-10-03 17:17:34 +00:00
drh
a78d757c36
Fix the sqlite3_column_decltype() interface to return the correct datatype
...
when the value comes through a CTE.
FossilOrigin-Name: 966438bd259ade3a2d4a6ec9587ce79c81a21b942248bffb389995b9132b53e3
2017-10-03 16:57:33 +00:00
drh
e2463398fd
The simplification to sqlite3SelectExpand() in last night's
...
[3a4ffb21] check-in was not completely correct. This adjustment is needed
for correct OOM handling in some configurations.
FossilOrigin-Name: c5ad5e1675f6cb5a54df21606dfec2198a7cf88acc529460ebe27bdab128a6e5
2017-10-03 14:24:24 +00:00
drh
cafc2f7b3e
Do not compute column and row size estimates for the transient Table objects
...
associated with the result set of a SELECT statement, since those estimates
are never used for anything constructive.
FossilOrigin-Name: e4342fd401d4025eecc53ebfcd59f3150166a5f0bd6adb1b5820703bd4a1ec58
2017-10-03 03:01:09 +00:00
drh
878fcf9d4e
Mark a single branch within sqlite3SelectExpand() as an optimization.
...
FossilOrigin-Name: 3a4ffb21d0ee2326c31b9ddc512d79d4ebf3a249a2840e88e99165978eec31fd
2017-10-02 23:50:08 +00:00
drh
b7651e6b60
Simplification to sqlite3SelectPrep() for improved testability.
...
FossilOrigin-Name: 5bf2ccb908dc6ebf7e063014b0a4bed7e3e9e0a555f78c6b4f6647adfb7209e4
2017-10-02 23:30:45 +00:00
drh
2f65b2f512
Add the OK_IF_ALWAYS_TRUE() and OK_IF_ALWAYS_FALSE() macros for marking
...
conditionals that improve performance but do not change the outcome.
FossilOrigin-Name: 6035c9b2728f47d338696978eb6fe5a7d6cb84bbea0792ef985c0986ac8f39dd
2017-10-02 21:29:51 +00:00
drh
3ee1416b68
Avoid using lookaside memory for persistent virtual table structures.
...
FossilOrigin-Name: d815f255dfbcd6d64326f7bc0ad3fe3c4ff08270ca75f8836ef2a919d5e57401
2017-10-02 13:20:43 +00:00
drh
3fc5394258
The query planner now always prefers to implement a FROM-clause subquery using
...
a co-routine rather than flattening the subquery into the outer query.
FossilOrigin-Name: c9104b59c7ed360291f7f6fc8caae938e9840c77620d598e4096f78183bf807a
2017-10-02 02:52:54 +00:00
drh
de6422a609
Improvements to a comment in lempar.c. No code changes.
...
FossilOrigin-Name: 8000d230171fe53599fc6a916666f60f88f789e6c9c6c2869514c02d837d6fc8
2017-10-02 02:32:12 +00:00
drh
67cc51a491
More details in the header comment of pushDownWhereTerms(). No changes to
...
code.
FossilOrigin-Name: 928486231ff7cc0df17a5aa23a080a1b8720e168db5227a7dbd34861283ba689
2017-09-30 11:47:06 +00:00
drh
24ae373ab1
Make sure the SQLITE_Stat34 optimization switch is always 0x800, a value
...
which is hard-coded in the TH3 test suite.
FossilOrigin-Name: 6aed4ea34c4163c682ad5bb2956fdf4f3a3ad048fefd3edab0fef6761c3783cc
2017-09-30 10:50:34 +00:00
drh
508e2d00f3
Fix unreachable conditionals and revise a testcase that was made obsolete by
...
the changes on this branch.
FossilOrigin-Name: 71f0adf7ca6824c3aba69104b9976dbb71b377474529e1a36220b4804293501e
2017-09-30 01:25:04 +00:00
drh
25c221eb1d
Always render a subquery that is not part of a join as a co-routine.
...
FossilOrigin-Name: 6b1651d711eae6e7c65a191f02ca2439160bcd677099712289e76a0f8422fd37
2017-09-29 22:13:24 +00:00
drh
fd06385f21
Merge the query flattener comment improvements from trunk.
...
FossilOrigin-Name: f62cd4d940506c39db82e83ff3df8ab1856f1fb91ffda835ae2d727263ee9b0b
2017-09-29 16:08:46 +00:00
drh
d981e8289a
Clean up the comments on the query flattener to more clearly and accurately
...
express the conditions under which the flattener is able to run.
FossilOrigin-Name: 0840f9f824c16212ce3fd6c859e501176eb0a58924ea1728a54d5bdfd0c25c86
2017-09-29 16:07:56 +00:00
drh
129c398d4b
Merge changes from trunk.
...
FossilOrigin-Name: 06f432fb7c979f1bb7f01f5c90716ce5c0248f73f70b78a9870b9de5c9bf7ef4
2017-09-29 14:31:16 +00:00
drh
824d21aff3
Make sure the 6th parameter to the authorizer callback for view subqueries
...
has the correct view name.
FossilOrigin-Name: 2a45bbc9fd1c64f1c4c4dac38f063cd67480fcb6da24bf93fdefbfca66fd81ab
2017-09-29 12:44:52 +00:00
drh
23768298d2
Better names for subqueries in EXPLAIN comments.
...
FossilOrigin-Name: 04ef40a8fea88776e0d8b73d942922d45d0c038fbfac1a9a82b9322181b4ad92
2017-09-29 12:12:52 +00:00
drh
648fe49f96
Do not flatten subqueries that contain an ORDER BY or GROUP BY clause and
...
can be implemented using a co-routine.
FossilOrigin-Name: 042d655dd9002e8b89a798ad955b0285891aecf79f6978c5312e70ffe0609a46
2017-09-28 20:06:53 +00:00
drh
2e9d706252
Remove the (undocumented) query-planner control that prevents
...
a "SELECT ALL" subquery in FROM clause from being implemented as a co-routine.
FossilOrigin-Name: ff2f5a31a2ac67a2fdbb25793e8013cb0e062ab90bdcba2d52a62d6d4d8b6d18
2017-09-28 17:29:24 +00:00
drh
3d240d2119
Fix over-length source code lines in select.c. No logic changes.
...
FossilOrigin-Name: fd3267ef92384fcefaee7460a5ffbaf8ddcb6049eec36f72a7046a43e2871fbf
2017-09-28 16:56:55 +00:00
drh
4e6cec1ca0
Fix an issue introduced by check-in [4cd2a9672c59] (2017-03-03) that could
...
allow a negative value in the 3rd parameter to memmove() when
defragmentPage() is called on a btree page with a corrupted
freeblock list. The corruption is now detected early and results in
an SQLITE_CORRUPT return before the memmove() is reached.
FossilOrigin-Name: 5b9ae693120fe4f7bc3b6270f35d773876f6cc8f5990e05cce0d255c54b36ae7
2017-09-28 13:47:35 +00:00
drh
70efa84da7
Add new routines to simplify dealing with collating sequences in expressions:
...
sqlite3ExprNNCollSeq() and sqlite3ExprCollSeqMatch().
FossilOrigin-Name: 490e488ea963fe725b16212822c8608f2b6abce688931b611446bc2cbfe6b87c
2017-09-28 01:58:23 +00:00
drh
db8e68b4cd
Indexes on expressions with a COLLATE clause are able to satisfy an ORDER BY
...
with the same COLLATE clause.
FossilOrigin-Name: 0413001843dce7c63659d39b329ca14cdcd54f4407922f51b2fb7659572a733e
2017-09-28 01:09:42 +00:00