Commit Graph

15164 Commits

Author SHA1 Message Date
dan
30908c97ac Fix a problem in autoconf/configure.ac causing --enable-readline to fail if libedit was not present.
FossilOrigin-Name: e8adeb64d4e463772feb58dbd6f00715b92e735c
2016-01-20 15:19:56 +00:00
drh
fb3972602c Case folding in the LIKE operator should look at all bits of the character,
not just the lower 8 bits.  Fix for ticket [80369eddd5c94].  This is a
back-out of check-in [0a99a8c4facf] with a testcase added.

FossilOrigin-Name: 204432ee72fda8e82d244c4aa18de7ec4811b8e1
2016-01-20 14:22:41 +00:00
dan
5c3aa0517e Improve performance of sqlite3VtabImportErrmsg().
FossilOrigin-Name: 18d61c8e40ed1466b6a3a2f53bf0eeb09687c20e
2016-01-20 08:47:55 +00:00
drh
1da26a48dd Performance improvement in sqlite3DbMallocRaw().
FossilOrigin-Name: ff8eadbed5004ab03438f737492387dee6b9750a
2016-01-20 03:36:32 +00:00
drh
939e778bc8 Suppress the display of the P4 operand in EXPLAIN output when an opcode
has been converted into a No-op.

FossilOrigin-Name: 9f8297f862a110ded686d091854fae20c6bc393c
2016-01-20 02:36:12 +00:00
drh
9bfb024de0 Remove an unnecessary memset() from the symbol name resolver.
FossilOrigin-Name: da527ddae06460ab4b706cdb871de2188ebaf5ac
2016-01-20 02:21:50 +00:00
drh
4b31bda2c5 Remove an unnecessary memset() for a small size reduction and speed improvement.
FossilOrigin-Name: 730d7efb6fef54ed7c1f4ae27e3b55778ea6ff01
2016-01-20 02:01:02 +00:00
drh
6d664b4bb3 During compilation, transfer the azVar[0..nzVar-1] array from Parse to Vdbe
rather than copying it.  Smaller and faster code.

FossilOrigin-Name: 80dd495f378614e4eca72e71e43061b1b94ee450
2016-01-20 01:48:25 +00:00
drh
36b78ee7d8 Very small simplification to the btree balancer.
FossilOrigin-Name: f421adf54c9db91ba6ca64a8ba3751680e47924a
2016-01-20 01:32:00 +00:00
drh
e40cf40c1a Fix an incorrect VFS version number check in the threadtest3.c test program.
FossilOrigin-Name: 5bf6442bec83977006bc5049adcdbd4dd39369fe
2016-01-19 21:36:26 +00:00
drh
b8763639bb Fix two harmless compiler warnings about comparisons of dangling pointers.
FossilOrigin-Name: 86944f193f1f06b64471953bb5713ecea7f3d803
2016-01-19 17:54:21 +00:00
dan
4684ffd495 Add further fts5 tests. 100% code coverage is finally restored.
FossilOrigin-Name: b914ece0d146cfc8adba4dc4e8633e14f174d6ea
2016-01-19 16:06:23 +00:00
dan
6d3c2889ec Add tests for fts5. Fix a crash that can occur in fts5 if the database content is corrupted.
FossilOrigin-Name: acaf426449bf6fd3140fd63141750ff69d1119a5
2016-01-18 17:48:28 +00:00
drh
c263f7c4b3 Avoid unnecessary calls to memset() for a small performance improvement.
FossilOrigin-Name: 9e8c23acf74944a165c733682a956948b15bd401
2016-01-18 13:18:54 +00:00
dan
0536a07c0e Add a debugging function to print human-readable versions of fts5 detail=none leaf pages.
FossilOrigin-Name: 8358af3658d888516cdef5f8c8d89e9bdee53f91
2016-01-18 09:08:56 +00:00
drh
e617bc8c0c Simplification of the VDBE bytecode for incremental blob I/O.
FossilOrigin-Name: d23849f64a110e336f26282bf2b961a2a2372468
2016-01-18 00:46:11 +00:00
drh
dad300d8e1 Fix a problem with SQLITE_TEST_REALLOC_STRESS.
FossilOrigin-Name: 0aaf3febb00f622c5ef0853b2491d69f7ca7a21e
2016-01-18 00:20:26 +00:00
dan
3ed7029921 Add extra tests to cover untested branches in fts5.
FossilOrigin-Name: 61deab043dcea860070dba6b02601a7de627fff1
2016-01-16 21:06:41 +00:00
drh
2ce1865dd8 Improvements to the way sqlite3VdbeAddOpList() works, resulting in a slightly
smaller and faster binary.

FossilOrigin-Name: 88ceb588bcdb3ca86d0c58cfdeb61b5fe070872f
2016-01-16 20:50:21 +00:00
dan
8631402e6a Add further tests for fts5. Fix some problems with detail=col mode and auxiliary functions.
FossilOrigin-Name: de77d6026e8035c505a704e7b8cfe5af6579d35f
2016-01-16 18:58:51 +00:00
drh
9b34abee30 Use sqlite3VdbeAddOp4() rather than a separate sqlite3VdbeChangeP4() call, for
a slightly smaller and faster binary.

FossilOrigin-Name: a4258cd4613c55acacb5c7b61faa3de7eb0759d2
2016-01-16 15:12:35 +00:00
drh
095fb474ef Fix a potential use-after-free problem when compiling with SQLITE_HAS_CODEC.
FossilOrigin-Name: 653ea15ad8e23b333e234eb5dde7b80134db2baf
2016-01-16 03:16:19 +00:00
drh
079d446dd2 Remove an unnecessary memset().
FossilOrigin-Name: 689421a9f73ceeab9786840a2d6ee008124d1f25
2016-01-15 21:55:46 +00:00
dan
25247435be Rationalize some code in fts5_storage.c. Add tests to cover recently added branches in fts5.
FossilOrigin-Name: 3b72df405ac9b3a71144f45317d32e25f0084c4b
2016-01-15 19:54:47 +00:00
drh
241873e55c Remove unnecessary de-initialization of the Parse object.
FossilOrigin-Name: 75ab30c5fcb51e556342dc3112f9acf122f79947
2016-01-15 16:11:58 +00:00
drh
055f298ad4 Work toward making the schema parsing logic simplier and more compact.
FossilOrigin-Name: c52ca2c0662bb30ab34574f933429512655b19ff
2016-01-15 15:06:41 +00:00
mistachkin
1e38927c12 Fix a couple C99-isms in FTS5 that cause compile errors on MSVC.
FossilOrigin-Name: 584848d4396d7755027fab377c97e40fbcc90d21
2016-01-15 05:39:55 +00:00
drh
2d80151f32 Combine the xFunc and xStep pointers of the FuncDef object into a single
pointer xSFunc.

FossilOrigin-Name: 0d1b3d7d3ca66cb0b97493f1aeade1703af3c9f4
2016-01-14 22:19:58 +00:00
dan
2cfe049f40 Add a test to verify that the fts3 and fts5 "unicode61" tokenizers are byte for byte compatible.
FossilOrigin-Name: 8ec8314354edc9d6f7d1c8a6370fd984a552a52f
2016-01-14 20:05:59 +00:00
drh
3349620e9e Simplification to the ISO8610 parser in the imnplementation of date/time
functions.

FossilOrigin-Name: b9159f42a517a95ae52464c96431708c00b7bb36
2016-01-14 19:32:46 +00:00
mistachkin
83a2253409 Minor adjustments to the MSVC makefile.
FossilOrigin-Name: e2cba1bbfdcb24e35b2275e29071d8a4e4943417
2016-01-14 18:01:16 +00:00
drh
0ea94db612 Yet another change to FTS5 trying to get it to merge successfully into sessions.
FossilOrigin-Name: 8dedff3b9ac3e6bf9c131fee19f7d26dc1ebd61f
2016-01-14 14:33:36 +00:00
drh
d625adb8db Fix more compiler warnings in FTS5.
FossilOrigin-Name: f791fc7009d68941c60d7bf953bab19d86112133
2016-01-14 14:29:57 +00:00
dan
17535393b9 Fix another compiler warning in fts5 code.
FossilOrigin-Name: d17bc2c92f4d086280e49a3cc72993be7fee2da7
2016-01-14 14:19:50 +00:00
dan
f705e9deab Fix compiler warnings in fts5.
FossilOrigin-Name: 5a343cc0336bba056df4449e6cd2e3fb9e75a105
2016-01-14 14:15:54 +00:00
drh
7647377f52 Fix harmless compiler warnings in RBU and add RBU to the autoconf and windows
makefiles.

FossilOrigin-Name: fabe78c5d8ab353988f6fe0decacd651edc17ec2
2016-01-14 13:22:24 +00:00
drh
62e63bb9a9 Fix harmless compiler warnings in sqldiff.c.
FossilOrigin-Name: 74808a79ea3194f6cc00084b9dccc380846a6051
2016-01-14 12:23:16 +00:00
drh
b4acd6a8d6 Fix the build so that it works for SQLITE_OMIT_WAL again.
FossilOrigin-Name: d55a557bc70460c46a67ae5acd9f8a8356a580c2
2016-01-14 01:56:43 +00:00
drh
13c808a9fc Look for pthread_mutexattr_init() instead of pthread_create() in autoconf
scripts, to work around issues with ASAN.

FossilOrigin-Name: 9c3a0dc2e8bf202cd846841bd5d4ea67aa189c1a
2016-01-13 21:23:48 +00:00
dan
7f50d69359 Add documentation for new API functions to the comments in fts5.h.
FossilOrigin-Name: 14d296fa7b43b4999a1fd070cf030f83fe1b94c3
2016-01-13 18:25:36 +00:00
drh
31a2313fa8 Add the SQLITE_FCNTL_JOURNAL_POINTER file control.
FossilOrigin-Name: ad3daa5427672d2d236939ad3285b765f4601801
2016-01-13 18:12:44 +00:00
drh
504ef44022 Add documentation for the SQLITE_FCNTL_JOURNAL_POINTER file-control.
FossilOrigin-Name: 807c5aee2e5e5c01eb33688a199755c345c3664e
2016-01-13 18:06:08 +00:00
drh
a04a8be2c2 When the [https://www.sqlite.org/queryplanner.html#partialsort|block sorting optimization]
is used in a scalar subquery, be sure to exit the loop as soon as the first
valid output row is received.  Fix for ticket [cb3aa0641d9a4].

FossilOrigin-Name: cdbb0947f9ce18d6d7e29ffab5ea6a2ee5365fbb
2016-01-13 17:50:10 +00:00
dan
8656b24144 Add the "detail" option to fts5. Used to reduce the amount of information stored in an fts5 index.
FossilOrigin-Name: a220e85fe535af5ef2da6ef5fb76abe5a96b5abf
2016-01-12 19:45:01 +00:00
drh
b19e7352c1 Add the ".vfslist" command to the command-line shell.
FossilOrigin-Name: 5727562b75edf25102cd72607c420d245379c96d
2016-01-12 19:37:20 +00:00
dan
fd7601a125 Improve performance of fts5 low level iterators.
FossilOrigin-Name: bc5118f40a11f64ffb4e1c086277fa80b9764745
2016-01-12 19:28:51 +00:00
drh
d1dd7507e4 Fix a harmless use of an uninitialized variable following system errors
in the multi-threaded sorter.

FossilOrigin-Name: 4bb2c1df105c2d21f5c4c7ef656ff1d6e15f78bc
2016-01-12 14:10:05 +00:00
drh
8f3f65ec1c Remove an unused field from the MemPage object.
FossilOrigin-Name: 5fc0a4c1f353c4c06fcbc4bce8bbe1897ef49eee
2016-01-12 04:08:54 +00:00
drh
869aaf0941 Make sure all bytes of the WAL file are initialized even if the checksums are
not being computed until commit due to WAL overwrite.

FossilOrigin-Name: 1f44a9bdc1577aed088d9b91882527228015dcd3
2016-01-12 02:28:19 +00:00
drh
9ca33fa4c2 Fix an uninitialized field in the Select object when SELECTTRACE is enabled.
FossilOrigin-Name: fc62851667d9120f98a2641c87bbc5a2485482b2
2016-01-12 02:00:24 +00:00