drh
bc88711d08
Enclose the sqlite3WalSnapshotRecover() routine within
...
FossilOrigin-Name: e7be3183eb25e0f9f04b9e251ff37fa5e50cc1a7
2016-11-22 21:11:59 +00:00
drh
e74cc5c9bc
Add a new requirement mark for CAST expressions.
...
FossilOrigin-Name: bee2859b953c935c413de2917588159d03c672d9
2016-11-22 20:29:05 +00:00
drh
50da663516
Update requirement marks to reflect changes in wording in the documentation.
...
No changes to code.
FossilOrigin-Name: f5ac98efb5d5f7751c5c560bed9c7885e60ac4bc
2016-11-22 19:15:05 +00:00
drh
65f38d960d
Remove unnecessary OP_Close opcodes for a size reduction and performance
...
increase.
FossilOrigin-Name: 32be7aae92ee48bf2cd260ea41e79c2bc62738f9
2016-11-22 01:26:42 +00:00
drh
60ffc80756
Remove unnecessary OP_Close opcodes at the end of INSERT operations, resulting
...
in smaller and faster code.
FossilOrigin-Name: abeddb6d5a4040e1d0a87a4f32ad79794ba0842b
2016-11-21 21:33:46 +00:00
drh
89500dcd0b
Enhance speedtest1.c so that is works on older versions of SQLite, before
...
the introduction of the group_concat() aggregate function.
FossilOrigin-Name: 9979ba80a649ee61d9d174dc9d9fcab7e9fc1332
2016-11-21 18:15:35 +00:00
drh
c10b9dac84
Fix harmless compiler warnings.
...
FossilOrigin-Name: b3b7b42d9a4a0e7e2be8b2933328a7bec2f49a81
2016-11-20 17:59:59 +00:00
drh
0f85b2ff09
Prevent a possible use-after-free bug in the query optimizer.
...
FossilOrigin-Name: 0a98c8d76ac86412d5eb68de994658c250989349
2016-11-20 12:00:27 +00:00
dan
93f5113290
Remove the requirement to open the wal file before sqlite3_snapshot_recover()
...
is called. Also add some comments to new functions.
FossilOrigin-Name: 28393c413cc4505b94411730e728583c5d4baaae
2016-11-19 18:31:37 +00:00
dan
4d4757fcc8
Test some extra error conditions in sqlite3_recover_snapshot().
...
FossilOrigin-Name: db314213c08f27dd0ff5ede3c6a8eda36560809a
2016-11-19 17:30:57 +00:00
dan
20ba3d7fcb
Add another fault-injection test for sqlite3_snapshot_recover().
...
FossilOrigin-Name: 7e040406138669bd67dd6ecae016b3e50dbfaaf8
2016-11-19 17:20:28 +00:00
dan
6a9e7f16eb
Fix a problem causing sqlite3_snapshot_recover() to return
...
SQLITE_IOERR_SHORT_READ.
FossilOrigin-Name: 525f75fa9fd4a95acc3fb3b0a01dabe2be39b383
2016-11-19 16:35:53 +00:00
dan
5b4009f637
Fix a bug in sqlite3_snapshot_recover() that could cause subsequent read
...
transactions to use out-of-data cache entries.
FossilOrigin-Name: 9abeb7980a34cec11a3420e14ad98a4ec0d9c599
2016-11-19 14:53:22 +00:00
dan
1158498dce
Add experimental sqlite3_snapshot_recover() API.
...
FossilOrigin-Name: 174a6076a8d7bebe5efebf55f3fdc5d87c589cc7
2016-11-18 20:49:43 +00:00
dan
edace5d4f1
Require that the database handle be in autocommit mode for
...
sqlite3_snapshot_get() to succeed. This is because it may open a read
transaction on the database file.
FossilOrigin-Name: 83b658dad091211ade3594d1e8d00ce525882506
2016-11-18 18:43:39 +00:00
dan
93006cdd85
Add tests for snapshot interfaces.
...
FossilOrigin-Name: 1f7ee7af7b620262ae663d65889b6a87415d4a34
2016-11-18 18:22:05 +00:00
dan
25accbca72
Enhance existing snapshot tests to serialize/deserialize snapshots. No new
...
tests.
FossilOrigin-Name: 16b9bf92741e4c62874cffd7c6a61763c5054c7a
2016-11-18 14:38:41 +00:00
drh
65e1ba3fe7
Experimental changes for faster in-memory DB operation for large databases.
...
FossilOrigin-Name: 4fe94b0f1841180dfd8cac33838e335dc6a428bf
2016-11-17 21:52:08 +00:00
dan
9c8753c0a8
Fix a problem in rtreeD.test causing it to fail in OMIT_BUILTIN_TEST builds.
...
FossilOrigin-Name: d6b3779e6dad038d8bc35139cf314bf1e6e91977
2016-11-17 20:05:00 +00:00
drh
223b4bb3f7
Change the --enable-debug option on configure so that it enables the
...
".selecttrace" and ".wheretrace" commands in the command-line shell.
FossilOrigin-Name: 2331192b4ca6a169b6ac0daafb21ceb7c390de65
2016-11-17 13:54:21 +00:00
drh
54cda4edbe
Disable the query flattener optimization for SELECT statements that are on
...
the RHS of vector IN operators. This is a hack that fixes the bug
described in ticket [da7841375186386c]. A better solution that does not
disable the query flattener is needed, but this will server for the time
being.
FossilOrigin-Name: 005d5b870625d175fdf3c0e87d974006c569d9e1
2016-11-17 13:13:25 +00:00
drh
d2d69cc1fa
Add a needed #include to speedtest1.c.
...
FossilOrigin-Name: 77aeb705c37b1bf61a05b5e4a09f5b5cd67d07bc
2016-11-15 21:17:13 +00:00
drh
ba6eb8769f
Experimental changes toward making snapshots serializable.
...
FossilOrigin-Name: b6a81fa1fc1fb78a65894129851a4ec3986640de
2016-11-15 17:37:56 +00:00
drh
d6ef5afe3f
Change the OP_Last opcode so that it is a no-op if the cursor is already
...
pointing at the end of the b-tree.
FossilOrigin-Name: 663473850c4274270445b3771911fa773a8c405f
2016-11-15 04:00:24 +00:00
drh
c9b9deaee2
Make the VACUUM command about 9% faster by avoiding unnecessary calls
...
to sqlite3BtreeMovetoUnpacked() while copying rowid tables.
FossilOrigin-Name: 5ed0bd387699a0f3b477d4f3cfcb460a6a44cb84
2016-11-15 02:46:39 +00:00
drh
5413ba4b17
Add 8794 new test cases received from the OSS-FUZZ project.
...
FossilOrigin-Name: 03f75a67c320f21192d721a8c34d49dea48ffdbb
2016-11-14 20:47:18 +00:00
drh
588429a87d
Fix a potential use-after-free error during parsing of malformed
...
CREATE TABLE statement.
FossilOrigin-Name: c5dbc599b910c02a961675b12b273b8df6d29450
2016-11-14 20:08:00 +00:00
drh
362b66f051
Enhance fuzzcheck.c to accept database-specific configuration parameters in
...
the option CONFIG table. Add the fuzzdata5.db fuzz database containing
test cases from OSS-FUZZ.
FossilOrigin-Name: a71fad4538311ede111815d221d9eb8d9018092b
2016-11-14 18:27:41 +00:00
drh
55377b4717
Fix the ossfuzz.c test module so that it does not segfault after a
...
"PRAGMA empty_result_callbacks=1;". Add the ossshell.c program for
simple command-line testing of ossfuzz.c.
FossilOrigin-Name: 6f2d43eca68175ed28abae3afa792095af906af2
2016-11-14 17:25:57 +00:00
drh
2adb878b1f
Avoid unnecessary calls to sqlite3ExprCacheAffinityChange() when generating
...
OP_MakeRecord opcodes that do not change any register affinities.
FossilOrigin-Name: e211c579b2f092e3283edd5fb9add7c5183bac35
2016-11-14 15:28:56 +00:00
dan
b3e845ba33
Fix an fts5 problem causing a crash in phrase queries where the first token of
...
the phrase matches one or more rows but some other token within the phrase
matches zero.
FossilOrigin-Name: e78f6f3bbf4781850960fe6741f7cba480f2c27d
2016-11-14 08:19:37 +00:00
drh
48c286fc61
Fix harmless compiler warnings in test code for MSVC.
...
FossilOrigin-Name: 7b76be4117f4e57091b03fafcf42d17bce81160d
2016-11-11 20:37:27 +00:00
drh
66adb0a848
Avoid storing redundant fields in sorter records when the sort-key
...
and data have fields in common.
FossilOrigin-Name: b835cf3e507b910b6a3e0f802ce2c40a72d0c227
2016-11-11 19:08:00 +00:00
drh
4b727f17d6
Enhance the OP_IdxInsert opcode so that it can used unpacked key values if
...
they are available. Update the code generator to take advantage of this
new capability. The speedtest1.c test is about 2.6% faster as a result.
FossilOrigin-Name: 925840cfdb969a76640a1247cc4a7b2c0de5cb74
2016-11-11 19:01:11 +00:00
dan
04cd7aa373
Merge trunk with this branch.
...
FossilOrigin-Name: dd62d2de6eb12dc1902d6df050c395b1dcac01b4
2016-11-11 18:45:55 +00:00
drh
d95ef5cb5a
Remove obselete and unused logic in the update code generator.
...
Fix the sqlite3BtreeMovetoUnpacked() routine so that it remembers the
rowid of the row that it landed on.
FossilOrigin-Name: 1a587d72f981cb7064cfd8916a52a83ad9ba6074
2016-11-11 18:19:05 +00:00
dan
9af90b7231
Reenable the SQLITE_EXPR_REF optimization for "SELECT DISTINCT ... ORDER BY"
...
queries.
FossilOrigin-Name: 6e2e9d383f5fc4a0cbf05fe83ec7425812c0f556
2016-11-11 18:08:59 +00:00
drh
79297d1d59
Merge enhancements and bug-fixes from trunk.
...
FossilOrigin-Name: 5515b827dc1805a3010018cd6abf222b03525d24
2016-11-11 17:52:57 +00:00
dan
4a5bad572a
Fix a problem with switching from wal to rollback mode when
...
SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE is configured.
FossilOrigin-Name: 46e0016207b8e7df2ae6c7491fd0f3c2926eed21
2016-11-11 17:08:51 +00:00
drh
ea432ba2df
Add the test/ossfuzz.c interface adaptor for OSS-FUZZ. Make previsions for
...
testing the adaptor using fuzzcheck.c.
FossilOrigin-Name: 119d6ef8478ea6ab07dfd0e974d2f5a8dcfce87e
2016-11-11 16:33:47 +00:00
dan
3bafdede8a
Handle some obscure "row value misused" cases that could cause segfaults or
...
assertion failures.
FossilOrigin-Name: fba5fddb1c40af75634b01c1f06d2610df697e01
2016-11-11 15:49:01 +00:00
drh
4e8142c726
Back out the "--raw" option on ".read" in the command-line shell. Instead,
...
fix the command-line shell so that if EOF is reached without seeing a
final semicolon, it goes ahead and passes the accumulated SQL text to
SQLite.
FossilOrigin-Name: f98c8ac8c485098f163400d3a92d6afb4008adbe
2016-11-11 14:54:22 +00:00
dan
b47ebe6128
Add extra tests for the xBestIndex() virtual table method.
...
FossilOrigin-Name: 642a8fba91d2bf61b494b845cb499714363209b1
2016-11-11 09:51:46 +00:00
mistachkin
2f9a613ced
In the command line shell, avoid using utf8_printf() in a couple places where it is superfluous.
...
FossilOrigin-Name: 6311a8bdb1f2e1813516a32d171aae030bd73fd3
2016-11-11 05:19:45 +00:00
drh
c5b86be7db
Add the --raw option to the ".read" dot-command of the command-line shell,
...
to cause the named file to be read and sent directly into sqlite3_exec()
without any interpretation.
FossilOrigin-Name: 09233770b24d69a305556241a6beeb5e4d77c0d7
2016-11-11 04:37:00 +00:00
drh
4360fcea6d
Take care not to try to generate code for the ATTACH and DETACH commands
...
if there were syntax errors during parsing.
Fix for ticket [2f1b168ab4d4844]
FossilOrigin-Name: b0ff183b8ffdbebece06cfea1c6781fc0e8e8547
2016-11-11 03:37:24 +00:00
drh
7a1c28defe
Avoid a few unnecessary calls to sqlite3BtreeMovetoUnpacked().
...
FossilOrigin-Name: eac0e827a61cfec4dd9b6d407ff398e9fda3510b
2016-11-10 20:42:08 +00:00
dan
257c13fa00
Avoid storing redundant fields in sorter records when the sort-key and data have
...
fields in common (as in "SELECT a FROM t1 ORDER BY 1").
FossilOrigin-Name: 0af62fdbd8e2aab14718ff8bcb5934f05463c176
2016-11-10 20:14:06 +00:00
drh
c6c9e158c5
When doing a REPLACE on a WITHOUT ROWID table with no secondary indexes,
...
bypass the OP_NoConflict/OP_Delete sequence and directly overwrite any
preexisting row, for a performance increase.
FossilOrigin-Name: f7041cbb63b912f9ecad538804b6f2383efbec4e
2016-11-10 17:01:36 +00:00
drh
bf2f5739c9
Remove C++ style comments. No code changes.
...
FossilOrigin-Name: 42f8aa6231bf4ed74bebdc85aa79d23dc20b3c14
2016-11-10 16:07:43 +00:00