drh
7bd6b49a3e
Test script changes to support testing the SQLite Encryption Extension.
...
FossilOrigin-Name: 1c70aa5c014fc48ab06215992a61c6f92490abe4
2016-03-14 16:16:43 +00:00
drh
0d71eaa368
Run TCL tests in the "testdir" subdirectory.
...
FossilOrigin-Name: 90e0cc7b0be31ee2f155c2c053b0cbac584f6154
2016-03-14 15:03:54 +00:00
drh
e500f65a2c
More file pathname normalization.
...
FossilOrigin-Name: fa8c12921f8361f1889724bb7c5f7eca9c48b075
2016-03-14 14:59:35 +00:00
drh
bea14132cf
Normalize the $testdir and $argv0 paths so that they continue to work
...
in the testing subdirectory.
FossilOrigin-Name: 19225b8130f1640772fc54250583b571a89063b6
2016-03-14 14:28:43 +00:00
drh
d5704a8961
Run TCL tests in a subdirectory "testdir".
...
FossilOrigin-Name: f632bba0d6ad3edc60f4127380ce8320378dac42
2016-03-14 13:42:29 +00:00
dan
7d85774da8
Fix a memory leak in fts5 that could occur following a syntax error in a query expression.
...
FossilOrigin-Name: 54b8968e335760105206b894672213c1d56771a4
2016-03-14 12:16:23 +00:00
dan
5cf98f101e
Fix a problem handling 'NEAR("" token)' in fts5 found by fuzzing.
...
FossilOrigin-Name: 10a827ae5f3f322af836c15e581fdc958a433a5a
2016-03-12 19:33:47 +00:00
dan
e8c20120ce
Fix handling of strings that contain zero tokens in fts5. And other problems found by fuzzing.
...
FossilOrigin-Name: 72b3ff0f0df83e62adda6584b4281cf086d45e45
2016-03-12 16:32:16 +00:00
drh
ffbb02a361
Do not allow the use of WAL mode with nolock=1 because it does not work.
...
FossilOrigin-Name: 74f5d3b07f6e5e977858c73957c6f9337ae3ca3e
2016-03-11 23:07:30 +00:00
dan
e1f1ffa55a
Tweak the amalgamation autoconf files so that the --disable-static-shell option works again.
...
FossilOrigin-Name: 83efcdebfa255cd0663ecc6b74eb99183e2f3a10
2016-03-11 15:25:13 +00:00
drh
811f17bac0
Update spellfix1_scriptcode() to output 215 (latin) for pure numeric text.
...
FossilOrigin-Name: df44308b862e932ff0ad25b6328d13be22047b96
2016-03-11 14:30:18 +00:00
mistachkin
a0ca3bc854
Check for PDB files prior to attempting to copy them in the MSVC batch build tool.
...
FossilOrigin-Name: d7c20f04e69fb1848b2e2f3b04fbd56e06c7c854
2016-03-10 19:08:44 +00:00
dan
1bb85f3ed3
Add tests to cover untested branches in recent fts5 changes.
...
FossilOrigin-Name: fa0033edf6ddf3c6631fa95b343225dbc8ac9429
2016-03-10 15:12:47 +00:00
drh
ecdf20d3a4
Use #ifdefs to remove code that is unreachable in some configurations, replacing
...
it with an assert().
FossilOrigin-Name: f96ec84d605fd73c323344a753acf35b76307af9
2016-03-10 14:28:24 +00:00
drh
6459ca0b8c
Remove an unused local variable.
...
FossilOrigin-Name: 3c343c3d012367942037e64a9855b825cb459844
2016-03-10 14:22:42 +00:00
dan
4dbc65b29a
Add an incremental optimize capability to fts5. Make the 'merge' command independent of the 'automerge' settings.
...
FossilOrigin-Name: 556671444c03e3afca072d0f5e9bea2657de6fd3
2016-03-09 20:54:14 +00:00
dan
57ebc84a6e
Fix a problem in fts3/4 that was causing it to discard data cached in-memory if an 'optimize' command is run when there is no data on disk. The usual way this would happen is if the very first transaction that writes to the fts3/4 table also includes an 'optimize' command.
...
FossilOrigin-Name: 79338b991bf01e81d336790ca87a0fa747da4ff3
2016-03-09 18:17:42 +00:00
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