]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Mon, 28 Sep 2015 23:45:19 +0000 (23:45 +0000)]
Avoid unnecessary cursors and seeking when running a DELETE against a
WITHOUT ROWID table.
FossilOrigin-Name:
70ec88b29982f1a2437239ad4d3a9bf39bcc2a60
drh [Mon, 28 Sep 2015 17:05:22 +0000 (17:05 +0000)]
Extra information provided by .wheretrace on input flags to the query planner
and on the result of sqlite3WhereOkOnePass().
FossilOrigin-Name:
c5566bb39c8d9b58f77380b81a873429575c7d5c
drh [Mon, 28 Sep 2015 15:08:28 +0000 (15:08 +0000)]
Add test cases to the ONEPASS optimization corruption problem fixed by the
previous check-in.
FossilOrigin-Name:
5c14d447055bb337428eb1fe0a2934abee381829
drh [Mon, 28 Sep 2015 14:40:20 +0000 (14:40 +0000)]
Fix a database corruption bug caused by the ONEPASS optimization added
in check-in [
8b93cc5937000535 ]. Bug detected (prior to release) by
[https://www.sqlite.org/sqllogictest|sqllogictest]. Test cases to follow.
FossilOrigin-Name:
9d057f52217e7ef9c3f3eb84117abe3365503f44
drh [Sat, 26 Sep 2015 17:44:59 +0000 (17:44 +0000)]
Enable adding JSON1 by appending the json1.c source file to the amalgamation
and compiling with -DSQLITE_ENABLE_JSON1
FossilOrigin-Name:
33404b2029120d4aabe1e25d484871810777e934
drh [Sat, 26 Sep 2015 11:15:44 +0000 (11:15 +0000)]
Fix a memory leak that can occur following a syntax error in CREATE VIEW.
FossilOrigin-Name:
f4704035a6134f702c00110358e36f1579e2ea78
drh [Sat, 26 Sep 2015 03:31:47 +0000 (03:31 +0000)]
Fix the title of the documentation on sqlite3_value_subtype(). This is a
comment change only.
FossilOrigin-Name:
b79023542458f7e839469c5e313694f1e4cf223a
drh [Sat, 26 Sep 2015 03:23:29 +0000 (03:23 +0000)]
Expand the header comment to clarify the purpose for the
sqlite3MemoryBarrier() function.
FossilOrigin-Name:
b89495ae09aa0e9652475b2ba1943dfd87c73e07
drh [Sat, 26 Sep 2015 01:28:46 +0000 (01:28 +0000)]
Remove an assert in the windows worker-thread logic that can fail in a race
condition.
FossilOrigin-Name:
d7bfb96092a6b812af194f32b22283a0f6a7da96
drh [Fri, 25 Sep 2015 23:40:01 +0000 (23:40 +0000)]
Fix threads.c so that setting sqlite3FaultSim(200) using the
SQLITE_TESTCTRL_FAULT_INSTALL callback causes both unix and windows worker
threads to be sequential and deterministic, so that they can be tested
reliably.
FossilOrigin-Name:
2d867c054d6d3e1e841ba9ca524e986bc6993ac3
drh [Fri, 25 Sep 2015 20:49:16 +0000 (20:49 +0000)]
Fix PRAGMA integrity_check so that it works with a UNIQUE index over
expressions.
FossilOrigin-Name:
113181cec4db418b07640d6b1967923992efd71a
drh [Fri, 25 Sep 2015 13:42:55 +0000 (13:42 +0000)]
Report an error if the number of named columns in a VIEW is different
from the number of result columns in the SELECT statement that implements
the VIEW.
FossilOrigin-Name:
6e4ac0be2de1a16fcbb2a314504122ad95aa257e
drh [Fri, 25 Sep 2015 01:09:27 +0000 (01:09 +0000)]
Fix a problem computing affinities for indexes during skip-scan code
generation when SQLITE_ENABLE_STAT4 is on. Bug introduced by
check-in [
1ee089a72d789002 ].
FossilOrigin-Name:
1350dd42d056508337b1a07ad8b1c9c97593f8d3
drh [Thu, 24 Sep 2015 18:47:59 +0000 (18:47 +0000)]
Enhance the query planner so that it is able to use indexed expressions
to help fulfill an ORDER BY clause.
FossilOrigin-Name:
668fc1ebaf426f9eed3ed7865e41f1023dafebfb
drh [Thu, 24 Sep 2015 17:38:01 +0000 (17:38 +0000)]
Fix over-length source code lines in where.c. No logic changes.
FossilOrigin-Name:
1c8c5380a8b45c9e04d9663c3cb8182ef3a61b81
drh [Thu, 24 Sep 2015 12:40:43 +0000 (12:40 +0000)]
Strengthen the implementations of xShmMemoryBarrier on both the unix and
windows VFSes, so that they likely work even if SQLITE_THREADSAFE=0 is used.
FossilOrigin-Name:
c6ab807b72ddfc1462f61aa91442b6fac04ace8a
drh [Thu, 24 Sep 2015 12:19:17 +0000 (12:19 +0000)]
Make sure joins work correctly when both sides of the join are connected
using indexed expressions.
FossilOrigin-Name:
c2fcb03299f2872d7f97a540ea145519f8b2e5cc
drh [Thu, 24 Sep 2015 11:26:45 +0000 (11:26 +0000)]
Correctly handle the case of a WHERE-clause term with indexed expressions on
both sides of the == sign.
FossilOrigin-Name:
d9b716a6bd6145b2e7733c04d86227df777cd473
drh [Thu, 24 Sep 2015 11:06:26 +0000 (11:06 +0000)]
Fix a JSON1 test case so that it works on builds that omit virtual tables.
FossilOrigin-Name:
a4444c0f662058bdd5267e616c31cef828bc1fc5
drh [Thu, 24 Sep 2015 01:40:45 +0000 (01:40 +0000)]
Another (smaller) performance optimization for the JSON parser.
FossilOrigin-Name:
c43daa8c78df99f62dd4d3c83708a3a8eff92496
drh [Thu, 24 Sep 2015 01:06:37 +0000 (01:06 +0000)]
Performance optimizations on the JSON parser.
FossilOrigin-Name:
7dd4b07a42eb84589d34430b9d7bfa88fbd743eb
drh [Wed, 23 Sep 2015 19:17:23 +0000 (19:17 +0000)]
Take care that the number of reserved bits per page is consistent between
the source and destination databases when doing the back-copy on a VACUUM.
FossilOrigin-Name:
5b61b72f5424a2d9bb4e68eb95026cd63f003db9
drh [Wed, 23 Sep 2015 11:59:50 +0000 (11:59 +0000)]
Capture AFL-generated fuzz tests for json1.c into the test/fuzzdata4.db file.
FossilOrigin-Name:
10a214fdb3c13b25e0bdd15c975c21c8890c47ee
drh [Wed, 23 Sep 2015 01:10:29 +0000 (01:10 +0000)]
Do not allow a comma at the end of a JSON array or object.
FossilOrigin-Name:
7c7a3f3e9bc2f7a7334d8d6eae183d83f22097be
drh [Tue, 22 Sep 2015 18:51:17 +0000 (18:51 +0000)]
Add the --export-sql and --export-db options to the fuzzcheck utility program.
FossilOrigin-Name:
760af4455115669b934c3115d45cffe89c085faf
drh [Tue, 22 Sep 2015 17:46:11 +0000 (17:46 +0000)]
Fix a typo in the --help screen of the fuzzcheck utility.
FossilOrigin-Name:
b6ae61fe3b3de3aa296b3e56cd2ec425a5141c73
drh [Tue, 22 Sep 2015 01:15:49 +0000 (01:15 +0000)]
Futher simplifications to json1.c. Also an obscure bug-fix in the initial
output of json_tree() when using a path to an object contained within an array.
FossilOrigin-Name:
fcb1e327a64134e5ac539ec3d52733422d3061fd
drh [Tue, 22 Sep 2015 00:21:03 +0000 (00:21 +0000)]
Fix json_set() so that it can overwrite a value that was previously overwritten
during the same call.
FossilOrigin-Name:
0f16041647993975c316203c7e11f06e27640136
mistachkin [Mon, 21 Sep 2015 23:53:42 +0000 (23:53 +0000)]
For MSVC, have the 'sqlite3.c' target depend on 'sqlite3ext.h' as well as other targets may depend on this behavior (e.g. extensions).
FossilOrigin-Name:
737ac3faf4e5fcb5855f5f9a1c1ddfc5424e6292
mistachkin [Mon, 21 Sep 2015 23:49:35 +0000 (23:49 +0000)]
Fix compilation under older versions of MSVC.
FossilOrigin-Name:
17150ada1474e70d7c5ffe6ba5667f45671a434b
drh [Mon, 21 Sep 2015 22:53:16 +0000 (22:53 +0000)]
Simplifications to the json1.c logic.
FossilOrigin-Name:
1646a2bd85f87d03a14fcaec288107f5f6411c6f
drh [Sun, 20 Sep 2015 22:57:47 +0000 (22:57 +0000)]
Fix an overly-strict assert() in the btree logic.
FossilOrigin-Name:
825ce3201df21c6b9d5c57dcc6726c306df05220
drh [Sat, 19 Sep 2015 20:27:08 +0000 (20:27 +0000)]
Do not allow table-valued function syntax to be used on a view.
FossilOrigin-Name:
97cfe346e140e42a604375551f8168276bdbea11
drh [Sat, 19 Sep 2015 19:36:13 +0000 (19:36 +0000)]
Add the --disable-lookaside option to the fuzzershell utility program.
FossilOrigin-Name:
0b04374449c8279ad038def7c18cd74f180a0515
drh [Sat, 19 Sep 2015 18:54:39 +0000 (18:54 +0000)]
Fix a memory leak in json1.c that could occur after misuse of json_object().
FossilOrigin-Name:
394b81b11f261a9b179a034bc2a2d2dff0765e3b
dan [Sat, 19 Sep 2015 18:11:18 +0000 (18:11 +0000)]
Add an assert() statement to delete.c.
FossilOrigin-Name:
40fce67ecf0e71db3c8f3da3f72cc80a3d0f8fb2
drh [Sat, 19 Sep 2015 18:08:13 +0000 (18:08 +0000)]
Fix compiler warnings.
FossilOrigin-Name:
5c31ee62a196b914673384a611534fd778dc64b0
drh [Sat, 19 Sep 2015 16:51:58 +0000 (16:51 +0000)]
Add json1.c to the fuzzer test shells.
FossilOrigin-Name:
809d67b61164b83bbb6962f0edee1793a483ccab
drh [Sat, 19 Sep 2015 16:45:43 +0000 (16:45 +0000)]
Adjust Makefiles to use SQLITE_CORE when statically linking json1.c into
test shells.
FossilOrigin-Name:
91682ac39e7db6a5dc8b75695a757449f068184a
drh [Sat, 19 Sep 2015 14:57:00 +0000 (14:57 +0000)]
Adjust fuzzershell so that it adds the json1 extension separately for each
no connection.
FossilOrigin-Name:
ca2d1e9036387d1514fe596a0b82a3d8409797c3
drh [Sat, 19 Sep 2015 14:32:51 +0000 (14:32 +0000)]
Include json1.c in fuzzcheck and fuzzershell.
FossilOrigin-Name:
c4b68eff7f8f5402a9abf378157767b1c96a6101
drh [Sat, 19 Sep 2015 12:04:27 +0000 (12:04 +0000)]
Fix a documentation typo in sqlite3_bind_parameter_index(). No code changes.
FossilOrigin-Name:
650605a820f3860b1d6e955cdda23aaff01dfdb5
drh [Sat, 19 Sep 2015 11:57:26 +0000 (11:57 +0000)]
Fix an off-by-one error (really off-by-2 in this case) in the buffer
resize logic of json1.
FossilOrigin-Name:
d2a027372a5a6efc0f9b6f605093d865ae1c6788
drh [Sat, 19 Sep 2015 03:07:30 +0000 (03:07 +0000)]
Do not allow rowid in a UNIQUE or PRIMARY KEY constraint. (This restores the
same behavior exhibited by all prior releases.)
FossilOrigin-Name:
b1278301e37220a075c1bae88c0fcca2ef7a7d5c
drh [Fri, 18 Sep 2015 18:09:28 +0000 (18:09 +0000)]
Fix a crash that can occur with a skip-scan on an index with
expressions when SQLITE_ENABLE_EXPLAIN_COMMENTS is defined.
FossilOrigin-Name:
25f34cb9b576a2d4250a06a7dbf88010b1c11675
drh [Fri, 18 Sep 2015 15:38:07 +0000 (15:38 +0000)]
Adjustments to the spellfix2.test module so that it works reliably on
windows.
FossilOrigin-Name:
09a313fb7f2c16b0253a439edb901a7bb201d7d3
drh [Fri, 18 Sep 2015 15:35:16 +0000 (15:35 +0000)]
Adjust two test cases so that they conform to the current code.
FossilOrigin-Name:
228e3d7c8f37c722aee3b589bdd5cfaa4b1f6f03
drh [Fri, 18 Sep 2015 15:13:29 +0000 (15:13 +0000)]
Fix sqlilimits.test module so that it knows that the SELECT in a CREATE VIEW
is not checked until the view is actually used.
FossilOrigin-Name:
acf5d87f9456a1d0d69fe0ebc753211e1be07eaf
dan [Fri, 18 Sep 2015 14:45:01 +0000 (14:45 +0000)]
Ensure that "PRAGMA integrity_check" reports an error if the free-list count header field contains a value smaller than the actual number of pages on the database free-list.
FossilOrigin-Name:
26f64986d1ed59c554a7cb9e00e86a7f148f1fc6
drh [Fri, 18 Sep 2015 14:42:48 +0000 (14:42 +0000)]
Fix the orderby9.test case so that it works with 32-bit versions of TCL
FossilOrigin-Name:
4b6af7743034546a407a3e4722645945a4efc8a1
drh [Fri, 18 Sep 2015 14:22:34 +0000 (14:22 +0000)]
Remove a test made obsolete by the ONEPASS DELETE optimization.
FossilOrigin-Name:
c88b62c28cc7ac31b93f7df0c732e0bb6ca24f65
dan [Thu, 17 Sep 2015 17:21:09 +0000 (17:21 +0000)]
Avoid passing (signed char) values directly to isspace(), isalnum() or isdigit() in json1.c. Cast the value to (unsigned char) first.
FossilOrigin-Name:
6713e35b8a8c997aa2717e86ce6dcd63bb993477
dan [Thu, 17 Sep 2015 09:48:01 +0000 (09:48 +0000)]
Fix a crash in FTS5 caused by specifying NULL as the rhs of a MATCH operator.
FossilOrigin-Name:
e8ed62f82e8acc40b818bf86fafe3d480687514e
drh [Wed, 16 Sep 2015 17:46:11 +0000 (17:46 +0000)]
Add a "flush" to force incremental output to releasetest-out.txt while running
the test/releasetest.tcl. script.
FossilOrigin-Name:
0f3de2d337a3113dbd0765aa5545bb586b780121
dan [Wed, 16 Sep 2015 12:31:39 +0000 (12:31 +0000)]
dan [Tue, 15 Sep 2015 14:39:17 +0000 (14:39 +0000)]
Add test cases to cover fts5 integrity-check code.
FossilOrigin-Name:
1d018c35b9e81982df036f5e62a4a42219b54e02
drh [Tue, 15 Sep 2015 13:42:16 +0000 (13:42 +0000)]
Reformat some code to make it easier to merge with sessions. No logic changes.
FossilOrigin-Name:
eade355fafec558fc13dc4b08ca0b07713a2cd84
dan [Tue, 15 Sep 2015 11:58:33 +0000 (11:58 +0000)]
Fix a problem with fts5 "ORDER BY rowid DESC" queries and large terms.
FossilOrigin-Name:
b26d8f79c62cb71b4c3ea5df9d0e09558bbbd794
dan [Mon, 14 Sep 2015 19:51:05 +0000 (19:51 +0000)]
Improve test coverage of fts5_index.c.
FossilOrigin-Name:
c1f76686cee3918b1be785a4071d68cb3afda0ef
drh [Mon, 14 Sep 2015 19:26:37 +0000 (19:26 +0000)]
Testability improvements for the ONEPASS_MULTI enhancement.
FossilOrigin-Name:
d2df93f26fc0cf6fe01acfeaf2946972e9d8cca2
drh [Mon, 14 Sep 2015 14:49:23 +0000 (14:49 +0000)]
Fix a typo in an SQLITE_USER_AUTHENTICATION macro.
FossilOrigin-Name:
379455af9fdfb299a857d46f35f0a76ed6daa08a
drh [Mon, 14 Sep 2015 14:45:50 +0000 (14:45 +0000)]
Use symbolic names ONEPASS_OFF, ONEPASS_SINGLE, and ONEPASS_MULTI for the
various modes of the one-pass optimization.
FossilOrigin-Name:
16e56bdadef903c6439a487f2683388aeeb0c625
drh [Mon, 14 Sep 2015 14:08:25 +0000 (14:08 +0000)]
Fix a compiler warning and providing missing VdbeCoverage() calls.
FossilOrigin-Name:
2edd2e5edd60210e18db58bce1e096dd211b6ece
dan [Mon, 14 Sep 2015 11:09:58 +0000 (11:09 +0000)]
Use a single-pass approach for DELETE statements on non-virtual tables that do not require trigger or foreign key processing.
FossilOrigin-Name:
8b93cc5937000535c35c763c9326507a19892a6e
dan [Mon, 14 Sep 2015 09:23:47 +0000 (09:23 +0000)]
Avoid calling sqlite3VdbeCursorMoveto() from more than one point in vdbe.c. Doing so prevents it from being inlined as part of OP_Column.
FossilOrigin-Name:
166d5af8914c6954fb24a06e9686f194c0d0acde
mistachkin [Sun, 13 Sep 2015 20:15:01 +0000 (20:15 +0000)]
Add static VFS mutexes to the primary header file comments.
FossilOrigin-Name:
9a867d9fbe74fe2b33d55e32737a66e9a77b7466
dan [Sat, 12 Sep 2015 19:50:58 +0000 (19:50 +0000)]
Fix compiler warnings in delete.c.
FossilOrigin-Name:
0a4d285e18b78cd529483ba5c8c607ab62a443d4
drh [Sat, 12 Sep 2015 19:27:41 +0000 (19:27 +0000)]
Fix API documentation typos. Emphasize that the sqlite3_config() routine is
not threadsafe.
FossilOrigin-Name:
786333e05a75406bbd0b5c9c7beb8f16022eabec
dan [Sat, 12 Sep 2015 19:26:11 +0000 (19:26 +0000)]
Experimental change to use a single-pass approach for DELETE statements on non-virtual tables that do not fire triggers or require foriegn-key processing.
FossilOrigin-Name:
eaeb2b80f6f8f83679c8323a81bb39570ec946fe
mistachkin [Sat, 12 Sep 2015 18:57:45 +0000 (18:57 +0000)]
Import common changes from the mutex initialization branch.
FossilOrigin-Name:
334720c01722478af0d3dfd6fe8bafd88ba09f49
drh [Fri, 11 Sep 2015 20:54:44 +0000 (20:54 +0000)]
Update evidence marks due to wording changes in requirements text. No
changes to code.
FossilOrigin-Name:
86781093bdb4c4fdedd228cb1c8961db48a483bb
mistachkin [Fri, 11 Sep 2015 18:05:01 +0000 (18:05 +0000)]
Fix harmless compiler warnings.
FossilOrigin-Name:
bfc7b84b766860d2e410702ba7c1166d7328309a
drh [Fri, 11 Sep 2015 15:32:33 +0000 (15:32 +0000)]
More test cases in test/json102.test corresponding to new examples in the
json1 documentation.
FossilOrigin-Name:
f599a42e190b4b89d74055402143c5487985cd90
dan [Fri, 11 Sep 2015 14:15:46 +0000 (14:15 +0000)]
Fix some compiler warnings in fts5 code.
FossilOrigin-Name:
0dc436116e55e3fd55eb6085ada71e099069b32d
drh [Fri, 11 Sep 2015 01:22:41 +0000 (01:22 +0000)]
Updates to the sqlite3_value_subtype() and sqlite3_result_subtype()
documentation and to test cases for json1 dealing with those interfaces.
FossilOrigin-Name:
d6cadbe9fefce9a7af6b2d0cb83362f967d7d89a
drh [Fri, 11 Sep 2015 00:26:04 +0000 (00:26 +0000)]
Add new interfaces sqlite3_value_subtype() and sqlite3_result_subtype().
Update the json1.c extension to take advantages of those interfaces to avoid
the goofy '$$' path syntax and to allow nested calls to json_array() and
json_object() that work as expected.
FossilOrigin-Name:
db4152aef2253ed2a33e3cad01e0c6758e03f900
drh [Fri, 11 Sep 2015 00:06:41 +0000 (00:06 +0000)]
Take out the goofy '$$' path syntax. Instead, use subtypes to communicate when
a string is JSON. Add the json() function that validates and minifies the
JSON and sets the appropriate subtype.
FossilOrigin-Name:
8a80d6459e246ec1b38325e1cbd1e862157138b3
drh [Thu, 10 Sep 2015 20:40:21 +0000 (20:40 +0000)]
Make the sqlite3_value_subtype() and sqlite3_result_subtype() interfaces
available to loadable extensions.
FossilOrigin-Name:
c6fca0be11f7414292279e2ea1b004260e6f4bb6
drh [Thu, 10 Sep 2015 20:34:56 +0000 (20:34 +0000)]
Experimental implementation of sqlite3_result_subtype() and
sqlite3_value_subtype() interfaces.
FossilOrigin-Name:
7b5be299c617a3d3ed327ed30ef0a66a62c85b1f
drh [Thu, 10 Sep 2015 19:22:25 +0000 (19:22 +0000)]
Fix a potential NULL pointer deref in the testing logic of pcache1.
NB: The -DSQLITE_TEST compile-time option is needed to hit the problem.
FossilOrigin-Name:
f5580f08538636ffb1367e717a33756288ccddde
dan [Thu, 10 Sep 2015 17:23:37 +0000 (17:23 +0000)]
Modify the fts5 leaf page format to permit faster seek operations. This is a file-format change. Any existing databases can be upgraded by running the fts5 'rebuild' command.
FossilOrigin-Name:
0c0c4ae971e54efc526eed7bd071c90dfadb95ff
drh [Thu, 10 Sep 2015 17:20:57 +0000 (17:20 +0000)]
Create separate "path" and "root" columns in the json_each() and json_tree()
virtual tables. "Root" is the 2nd parameter and is fixed.
"Path" varies as json_tree() walks the hierarchy.
FossilOrigin-Name:
127cce3eb96b819005832997e0a082df9fb96f0b
dan [Thu, 10 Sep 2015 16:39:38 +0000 (16:39 +0000)]
Increment the fts5 version value to indicate that the on-disk format has changed.
FossilOrigin-Name:
99de5e3613d557728dd196353516bc7cf64a0e6c
dan [Thu, 10 Sep 2015 16:19:01 +0000 (16:19 +0000)]
Fix a segfault in fts5 that could occur if the database contents were corrupt.
FossilOrigin-Name:
4931e37da4d2c26d7afc5432f7f0d534b51a85fa
dan [Thu, 10 Sep 2015 15:52:42 +0000 (15:52 +0000)]
Merge latest changes from trunk. Including fts5_expr.c fixes.
FossilOrigin-Name:
716e7e747714d6af502f6a87ca8d789bb7ce162a
dan [Thu, 10 Sep 2015 15:49:16 +0000 (15:49 +0000)]
Update description of on-disk format in fts5_index.c.
FossilOrigin-Name:
85aac7b8b6731e2f6880b80cfd62d431ea059799
drh [Thu, 10 Sep 2015 15:24:27 +0000 (15:24 +0000)]
Make the sqlite3ext.h header file responsive to -DSQLITE_OMIT_LOAD_EXTENSION.
FossilOrigin-Name:
47a46a9fa4a96cdb96a20b6aec802661b1ee4598
drh [Thu, 10 Sep 2015 15:22:35 +0000 (15:22 +0000)]
Disable tests for json_each() and json_tree() on builds where
virtual tables are not supported
FossilOrigin-Name:
bb8ee3b140a0a8b7c89f5debf22369f204ceef0b
drh [Thu, 10 Sep 2015 15:20:49 +0000 (15:20 +0000)]
Fix the --help option on test/releasetest.tcl. Also fix the final error
count so that it includes a count of subtest crashes.
FossilOrigin-Name:
9ecf684dfe0cd7e3b058d208aca7eb600bf1d21b
dan [Thu, 10 Sep 2015 10:40:00 +0000 (10:40 +0000)]
Revert an accidentally committed makefile change.
FossilOrigin-Name:
402704b13f1f246c0224f90862bed93a825575f1
dan [Thu, 10 Sep 2015 10:01:30 +0000 (10:01 +0000)]
Fix an fts5 problem that could occur if a term and the first associated rowid are on different leaf pages.
FossilOrigin-Name:
ffe2796ac9244c62325fce4960f26c653321623c
dan [Thu, 10 Sep 2015 05:40:17 +0000 (05:40 +0000)]
Change the array of 16-bit offsets at the end of each page to an array of varints.
FossilOrigin-Name:
fab245bea4f283714c17bca22428d5eb4db5935a
drh [Thu, 10 Sep 2015 04:17:06 +0000 (04:17 +0000)]
Attempt to declare sqlite3MemoryBarrier() correctly for all possible
build configurations.
FossilOrigin-Name:
da8a288f8ef4be34281519b4b4db9b857b9d168b
drh [Thu, 10 Sep 2015 03:29:11 +0000 (03:29 +0000)]
Fix the json_tree() scan for the case when a path is supplied. Add new
json1 test cases.
FossilOrigin-Name:
6adc7de76acee6cfb5ff761739e7a8de7b5bf4b2
drh [Thu, 10 Sep 2015 01:22:09 +0000 (01:22 +0000)]
No-op the sqlite3_memory_alarm() interface in a different way, that does
not break legacy memory behavior. This is a re-do of
check-in [
5d3f5df4da9f40d5 ].
FossilOrigin-Name:
8250e2a487ee12c9a2dea5603ab60aed51e5dc7b
mistachkin [Wed, 9 Sep 2015 23:54:46 +0000 (23:54 +0000)]
Fix harmless compiler warning in FTS5.
FossilOrigin-Name:
86146a731d75eb25279c0e072c0bdda593de905d
dan [Wed, 9 Sep 2015 19:44:33 +0000 (19:44 +0000)]
Fix an assert() enabled by SQLITE_ENABLE_EXPENSIVE_ASSERT in wal.c.
FossilOrigin-Name:
8d2ed150a7a15626965cf994ef48c3ab61eca6ec
drh [Wed, 9 Sep 2015 19:27:10 +0000 (19:27 +0000)]
Fix a possible NULL pointer deref when using SQLITE_ENABLE_MEMORY_MANAGEMENT.
FossilOrigin-Name:
89bfdbfe943adce8e02c84ede014fcfed504c5d3
mistachkin [Wed, 9 Sep 2015 17:23:48 +0000 (17:23 +0000)]
Fix harmless compiler warning.
FossilOrigin-Name:
280fd3a482978b4a488a8b425721e451c2a30745
mistachkin [Wed, 9 Sep 2015 17:17:22 +0000 (17:17 +0000)]
Fix harmless compiler warnings in FTS5.
FossilOrigin-Name:
2cdb18778f20baa902e54f218ba26d2bacf0801e