]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Wed, 30 Dec 2015 20:50:11 +0000 (20:50 +0000)]
Use the OvflOffset() macro to try to remove some magic numbers from btree.c.
FossilOrigin-Name:
1541607d458069f5db890b4ebe1c7e14ddf4e360
drh [Wed, 30 Dec 2015 18:18:46 +0000 (18:18 +0000)]
Reduce the size of the CellInfo object from 32 to 24 bytes on 64-bit machines,
for a small performance increase and library size reduction.
FossilOrigin-Name:
6a4cfc7ab62046eb718ce59eff6b632f239312ac
drh [Wed, 30 Dec 2015 17:03:40 +0000 (17:03 +0000)]
Enhance the command-line shell so that it can handle MBCS characters on
input and output.
FossilOrigin-Name:
3d81dfe3bc5ca9588b7796769d9be7a182f38b1c
drh [Wed, 30 Dec 2015 16:51:20 +0000 (16:51 +0000)]
Changes to the way that the default BINARY collating sequence is recorded
result in a slightly smaller and slightly faster executable. More work could
be done to make this cleaner.
FossilOrigin-Name:
2081d75767dc590b4c8457e5f8e5f18ba5f8eaa7
drh [Wed, 30 Dec 2015 15:18:16 +0000 (15:18 +0000)]
Simplification to the xfer-optimization logic.
FossilOrigin-Name:
f35ba018da843897acca58f70541b940598bc271
drh [Wed, 30 Dec 2015 14:06:22 +0000 (14:06 +0000)]
Remove unnecessary tests from the LIKE pattern matcher. Slightly faster and
slightly smaller, and it should also now works with EBCDIC.
FossilOrigin-Name:
0a99a8c4facf65ec67d8d86108c9a3f723f7cbd6
drh [Wed, 30 Dec 2015 13:36:57 +0000 (13:36 +0000)]
Enhance the command-line shell to handle MBCS characters on input and output.
FossilOrigin-Name:
a0a08b8c0bbd4d71955261f6b7e997701ca68e18
drh [Wed, 30 Dec 2015 01:07:02 +0000 (01:07 +0000)]
Add the json_group_array() and json_group_object() aggregate functions to
the JSON1 extension.
FossilOrigin-Name:
7f386a9332237100a345035ca213327e21d95855
drh [Thu, 24 Dec 2015 14:53:27 +0000 (14:53 +0000)]
Avoid a harmless compiler warning on systems where the byteorder cannot
be determined at compile-time.
FossilOrigin-Name:
7c7b7f26306b6aa6ff35b871ad756f43f5db9838
dan [Wed, 23 Dec 2015 16:42:27 +0000 (16:42 +0000)]
Fix some harmless gcc compiler warnings. Mostly in fts5, but also two in the core code.
FossilOrigin-Name:
5d44d4a6cf5c6b983cbd846d9bc34251df8f4bc5
drh [Wed, 23 Dec 2015 10:54:48 +0000 (10:54 +0000)]
Enhance the 'utc' modifier on date/time functions so that if the LHS is
already known to be in UTC, the modifier becomes a no-op. This is not an
incompatibility because the behavior is documented as "undefined" in that
scenario.
FossilOrigin-Name:
b910a3d53769689d9212a06f974ccce54844bbe4
drh [Mon, 21 Dec 2015 15:22:13 +0000 (15:22 +0000)]
Ensure that the Expr objects that describe indexed expressions are not modified
by code generation. Fix for an assert() problem found by Jon Metzman using AFL.
FossilOrigin-Name:
34073ce87d88a02313217023ae92e15939192cd9
drh [Fri, 18 Dec 2015 16:29:47 +0000 (16:29 +0000)]
Micro-optimizations and comment fixes on the mem5.c memory allocator module.
FossilOrigin-Name:
8bf5e056eb8beb6e0ed5874fb24d7fe9f0b66d2b
drh [Fri, 18 Dec 2015 03:59:16 +0000 (03:59 +0000)]
Reduce the size of the CellInfo object from 32 to 24 bytes on 64-bit machines.
FossilOrigin-Name:
7850715406458a61cff9eba5ad915f61f6d99482
drh [Thu, 17 Dec 2015 14:18:21 +0000 (14:18 +0000)]
Fix the spellfix1_scriptcode() function to ignore whitespace and punctuation,
and to recognize hebrew and arabic scripts.
FossilOrigin-Name:
7adfa4a5794e47f97491c08abeaaac90e826b331
drh [Thu, 17 Dec 2015 13:28:50 +0000 (13:28 +0000)]
Fixes for harmless compiler warnings.
FossilOrigin-Name:
85ebd46c701e0a094a4690cd8f1d0cbae9aa257c
mistachkin [Wed, 16 Dec 2015 23:30:30 +0000 (23:30 +0000)]
Fix even more harmless compiler warnings.
FossilOrigin-Name:
1d0e6aa119da8e15d35508f5d75ffc729979da92
mistachkin [Wed, 16 Dec 2015 22:06:52 +0000 (22:06 +0000)]
Fix some more harmless compiler warnings.
FossilOrigin-Name:
18f531e1cf3c8bb986d912c9c5e3f5698360c93e
mistachkin [Wed, 16 Dec 2015 21:09:53 +0000 (21:09 +0000)]
Fix compiler warning seen with MSVC.
FossilOrigin-Name:
18a4c0540bf4f02335e9e9def1f2b0d4d784ef08
drh [Wed, 16 Dec 2015 13:07:35 +0000 (13:07 +0000)]
Make greater use of the SQLITE_WITHIN macro.
FossilOrigin-Name:
f2fc3aede55c8fa0351697f9f5ce4e544334c9af
dan [Tue, 15 Dec 2015 19:32:12 +0000 (19:32 +0000)]
Update the mkautoconfamal.sh script to make the building of the sqlite3-autoconf-VERSION.tar.gz package more orthodox.
FossilOrigin-Name:
1928f8945b7cdf733129619b7ab02d1addf63478
drh [Tue, 15 Dec 2015 13:50:22 +0000 (13:50 +0000)]
Add the SQLITE_OMIT_PARSER_TRACE compile-time option.
FossilOrigin-Name:
2fda43e6e097a4a5510cce7784c31ceedc3d6e6d
dan [Mon, 14 Dec 2015 19:42:19 +0000 (19:42 +0000)]
Add a missing memAboutToChange() macro to vdbe.c, the lack of which was causing an assert() to fail incorrectly. Problem found by libfuzzer.
FossilOrigin-Name:
1a24791109da607d502ac41f179fe6c1dc46c774
dan [Fri, 11 Dec 2015 14:59:49 +0000 (14:59 +0000)]
Add a new assert() statement to the snapshot-specific part of sqlite3WalBeginReadTrans().
FossilOrigin-Name:
d8a12023be32bdc6df18b0a5f38b917799854342
drh [Fri, 11 Dec 2015 13:51:02 +0000 (13:51 +0000)]
Simplified alignment constraints in the memory reuse logic of
sqlite3VdbeMakeReady().
FossilOrigin-Name:
e998513e442ce1206b12dc28bdc996d7b5f9f94d
drh [Fri, 11 Dec 2015 12:44:52 +0000 (12:44 +0000)]
Add the experimental snapshot interface. Because it is experimental, it is
subject to change or removal at a later date.
FossilOrigin-Name:
9b124a5a310aec0145495c9980bc0c1308fcca02
drh [Fri, 11 Dec 2015 04:11:17 +0000 (04:11 +0000)]
Fix a memory allocation bug introduced last week by check-in
[
a9e819082ba ]. The bug only appears on systems where the size of a structure
is not always a multiple of 8 - which in practice means only on 32-bit
windows systems.
FossilOrigin-Name:
96d3e99ffe59b5280b8b7fc269c94a72e15c345b
drh [Fri, 11 Dec 2015 03:27:36 +0000 (03:27 +0000)]
Mention that the snapshot interfaces are only available if SQLite is compiled
with SQLITE_ENABLE_SNAPSHOT.
FossilOrigin-Name:
843c15a552657ca43ff200edb7da7566752d7941
drh [Fri, 11 Dec 2015 03:20:39 +0000 (03:20 +0000)]
Disable the snapshot test scripts if not compiled with SQLITE_ENABLE_SNAPSHOT.
FossilOrigin-Name:
5fd008f0433833e4341d526dcc2387570ffe1fea
drh [Fri, 11 Dec 2015 03:16:54 +0000 (03:16 +0000)]
Fix a variable type mismatch problem in the snapshot logic.
FossilOrigin-Name:
93fb8010e4999b6b832d63a7c5a152f65d4415a3
drh [Fri, 11 Dec 2015 01:22:22 +0000 (01:22 +0000)]
Fix a bad assert related to snapshots.
FossilOrigin-Name:
767ee30efa5dd469e3a51d4e44cbe473061819b9
drh [Thu, 10 Dec 2015 22:48:22 +0000 (22:48 +0000)]
Snapshot documentation updates. Comment changes only - no changes to code.
FossilOrigin-Name:
ef51a398a04963508389ffe2f9d8359c1ec48261
dan [Thu, 10 Dec 2015 20:03:08 +0000 (20:03 +0000)]
Update the sqlite3_snapshot_get() API so that if the caller does not have an open read transaction on the named database, one is automatically opened.
FossilOrigin-Name:
b9c90f10297d8516a661449e8af898e682c930aa
dan [Thu, 10 Dec 2015 19:44:34 +0000 (19:44 +0000)]
Add tests to snapshot.test.
FossilOrigin-Name:
f3b743623a4501833478c8a86c0922931955aeb6
dan [Thu, 10 Dec 2015 19:11:34 +0000 (19:11 +0000)]
Return SQLITE_BUSY (not SQLITE_BUSY_SNAPSHOT) if sqlite3_snapshot_open() fails to obtain the shared checkpointer lock.
FossilOrigin-Name:
5343060bcc6c99029f731f8020d2cba3f405f207
dan [Thu, 10 Dec 2015 18:06:21 +0000 (18:06 +0000)]
Add tests to ensure that an sqlite3_snapshot_open() client cannot be tricked into reading a corrupt snapshot even if another process fails mid-checkpoint.
FossilOrigin-Name:
b908048b6cfa1ee2fe1f7a17bae475ddd9d0376c
drh [Thu, 10 Dec 2015 17:59:50 +0000 (17:59 +0000)]
Move pointer range comparisons into a macro, where they can be dealt with in a more portable way.
FossilOrigin-Name:
05bc4f920ce23da48d1da6cd36a956fd6fd7c862
dan [Thu, 10 Dec 2015 15:45:15 +0000 (15:45 +0000)]
Have sqlite3_snapshot_open() avoid a race condition by taking a shared CHECKPOINTER lock while checking pInfo->nBackfillAttempted.
FossilOrigin-Name:
8084eae0bc4f6513b1147fb890a6b2813f1c0a09
drh [Thu, 10 Dec 2015 15:09:17 +0000 (15:09 +0000)]
Move pointer range comparisons into a macro, where they can be dealt with
in a more portable way.
FossilOrigin-Name:
ad3124c834b080aaaf24934d6f08b3601ac3ae53
mistachkin [Thu, 10 Dec 2015 03:16:47 +0000 (03:16 +0000)]
Fix spacing typo in comment. No changes to code.
FossilOrigin-Name:
3a18526fc2253658dad84c5e600481c8a62efe40
drh [Thu, 10 Dec 2015 02:15:03 +0000 (02:15 +0000)]
Add the nBackfillAttempted field in formerly unused space in WalCkptInfo and
use that field to close the race condition on opening a snapshot.
FossilOrigin-Name:
cb68e9d0738fc7db7316947b4d2aab91aae819f2
dan [Wed, 9 Dec 2015 20:05:27 +0000 (20:05 +0000)]
Update sqlite3_snapshot_open() to reduce the chances of reading a corrupt snapshot created by a checkpointer process exiting unexpectedly.
FossilOrigin-Name:
7315f7cbf4179aadda0f1a0baa1526a9b9f9729f
drh [Wed, 9 Dec 2015 17:23:12 +0000 (17:23 +0000)]
Further simplifications to the VDBE code generation logic that flow out
of the previous check-in.
FossilOrigin-Name:
6a5dfe85b519b920ce8c842057767a8793d92236
drh [Wed, 9 Dec 2015 16:26:38 +0000 (16:26 +0000)]
Simplification of the DROP TRIGGER logic using sqlite3NestedParse() instead
of hand-coded VDBE code. This is a manual cherry-pick of the key change from
check-in [
c80bbf14b365d ].
FossilOrigin-Name:
8021b4c8139ba56d6b1e2e26aeec4f9bf77f37c9
drh [Wed, 9 Dec 2015 16:04:06 +0000 (16:04 +0000)]
Merge unrelated fixes from trunk.
FossilOrigin-Name:
362615b4df94358d0264b0991c3090a0878f054c
drh [Tue, 8 Dec 2015 16:58:45 +0000 (16:58 +0000)]
Changes to avoid undefined behavior in memset() and memcpy() and in the
comparisons of pointers from different allocations. All problems are found
by analysis tools - none have been seen in the wild.
FossilOrigin-Name:
901d0b8f3b72e96ffa8e9436993a12980f5ebd51
drh [Tue, 8 Dec 2015 16:08:10 +0000 (16:08 +0000)]
Avoid doing comparisons with pointers that might have been previously been
passed to realloc() and/or free().
FossilOrigin-Name:
f20396adb2cff12a17a3fc90b36241ae3fdfd62a
drh [Tue, 8 Dec 2015 04:18:33 +0000 (04:18 +0000)]
Add a test case of the form "WHERE a<2 OR a<3" using PRAGMA count_changes.
This test case was failing before the 3.9.0 release.
FossilOrigin-Name:
177862c1d50ba899d890fbc35f35e7423bc6aed5
mistachkin [Tue, 8 Dec 2015 00:47:32 +0000 (00:47 +0000)]
Update the TclKit download URL.
FossilOrigin-Name:
07e5199c6f868cc02a0b708865254056c4f3daf3
mistachkin [Mon, 7 Dec 2015 23:31:59 +0000 (23:31 +0000)]
Update MSVC batch build tool to the latest Windows 10 SDK version.
FossilOrigin-Name:
2ad5017190334b7dd53294a30c3b3232e0c35869
drh [Mon, 7 Dec 2015 21:46:19 +0000 (21:46 +0000)]
Add the ".changes ON|OFF" command to the sqlite3.exe command-line shell, for
testing and verifying the sqlite3_changes() and
sqlite3_total_changes() interfaces.
FossilOrigin-Name:
9bbe1afc1521b111a0a93803b41ff04e0ee55630
drh [Mon, 7 Dec 2015 18:18:33 +0000 (18:18 +0000)]
Fix the openDirectory() routine in the unix VFS so that it works for databases
located in the root of the filesystem and for database files that have no
pathname at all.
FossilOrigin-Name:
e7ae120d04cffafd9bc2b4ecd68571c17e05ed72
drh [Mon, 7 Dec 2015 16:43:44 +0000 (16:43 +0000)]
Changes to avoid obscure, theoretical undefined behavior. This is preventative
measures only - no actual problems observed on tested compilers.
FossilOrigin-Name:
a9e819082ba19e72db03bba37edfb7702ff489a5
dan [Mon, 7 Dec 2015 14:33:07 +0000 (14:33 +0000)]
Add tests for snapshot_get(), _open() and _free().
FossilOrigin-Name:
502cc6f353358946080d9bcd335aed526825b88a
dan [Sat, 5 Dec 2015 20:51:54 +0000 (20:51 +0000)]
Add untested implementations of experimental APIs sqlite3_snapshot_get(), _open() and _free().
FossilOrigin-Name:
0715eb00aa8891400cd50a15509d3d7b13789626
drh [Fri, 4 Dec 2015 13:44:07 +0000 (13:44 +0000)]
Remove the dependence on "exec ls -U" from the vtabH.test module, as the -U
option to "ls" is not universally available.
FossilOrigin-Name:
4ecbc75b465533cf80e166a9d0879b9afd3fe2be
drh [Fri, 4 Dec 2015 03:27:45 +0000 (03:27 +0000)]
Prevent a segfault on Solaris in the test_fs.c due to differences in the
definition of the dirent object.
FossilOrigin-Name:
042738ad3b769ad70fd7603f928d5b94a952267d
drh [Thu, 3 Dec 2015 22:33:55 +0000 (22:33 +0000)]
Fix typos in requirements text and update requirements marks. No changes
to code.
FossilOrigin-Name:
8534a46c06601ad35b97caee442371f24c718d0f
drh [Thu, 3 Dec 2015 21:47:30 +0000 (21:47 +0000)]
Improved OOM recovery in the SELECT code generator logic.
FossilOrigin-Name:
e6521a436d464a42b87a7d5ba5cc98235b92440a
drh [Thu, 3 Dec 2015 20:50:10 +0000 (20:50 +0000)]
Make the SQLITE_ENABLE_8_3_NAMES compile-time option available to
sqlite3_compileoption_used().
FossilOrigin-Name:
06338201f3f00151232e5c6a40edcdbea04d7553
drh [Thu, 3 Dec 2015 20:42:28 +0000 (20:42 +0000)]
Cleaner code and additional comments on the handling of 8+3 filenames when
trying to find the name of a database file based on its journal filename,
in the unix VFS.
FossilOrigin-Name:
9e489a71f2aeb1f13f9ca6f106b9144d07ca25aa
drh [Thu, 3 Dec 2015 13:43:07 +0000 (13:43 +0000)]
Make the sqlite3_status64(), sqlite3_strlike(), and
sqlite3_db_cacheflush() APIs available to loadable extensions.
FossilOrigin-Name:
a78e865607194718e2ef958879dbf549ac3c9970
dan [Thu, 3 Dec 2015 12:01:54 +0000 (12:01 +0000)]
Fix threadtest3 so that it builds using the autoconf build system.
FossilOrigin-Name:
d96de532cc4a192cfebae900701dcee0a7d29273
dan [Thu, 3 Dec 2015 11:51:18 +0000 (11:51 +0000)]
Improve concurrency in test_multiplex.c. Add a switch to "threadtest3" allowing it to run using the multiplexor VFS.
FossilOrigin-Name:
9d2c62b04e3a9ac5d9adea2aac7ec3f3bc3e88bd
drh [Thu, 3 Dec 2015 01:48:32 +0000 (01:48 +0000)]
A unix VFS change replaces fsync() with fstat() when using SQLITE_NO_SYNC, so
set PRAGMA synchronous=OFF in the sysfault-3 test to avoid erroneously causing
errors in xSync.
FossilOrigin-Name:
4f7f355021f9eb048fffc84e559bfb3fdb1e1e69
drh [Wed, 2 Dec 2015 19:46:12 +0000 (19:46 +0000)]
Remove unreachable branches from the decltype computation logic in the query
planner.
FossilOrigin-Name:
4f2bcff94c672312805be1400050a7026f93a9d7
dan [Wed, 2 Dec 2015 18:59:44 +0000 (18:59 +0000)]
Have the sqlite3_column_decltype() API report the declared types for the left-most SELECT statement in a compound SELECT.
FossilOrigin-Name:
3e1d71fcaf57c0223ab9a7366c8607f8f66bb21c
drh [Wed, 2 Dec 2015 17:40:13 +0000 (17:40 +0000)]
Fix an incorrect, though harmless, assert() in the unix VFS.
FossilOrigin-Name:
4692ae84f93530e27d7c106a60236355e176b7fd
drh [Wed, 2 Dec 2015 16:10:16 +0000 (16:10 +0000)]
Remove more (dead) SQLITE_FCNTL_WAL_BLOCK logic from wal.c - code that was
missed during the [
e1d5320ca08933 ] check-in.
FossilOrigin-Name:
58c15c6af964563ac7ece8606d16730ccf9ee72b
drh [Wed, 2 Dec 2015 15:44:39 +0000 (15:44 +0000)]
Remove an unreachable branch from the unixMapfile() routine of the unix VFS.
FossilOrigin-Name:
b50f67bc46e65fe4e51667d48b4add58706a9443
drh [Wed, 2 Dec 2015 13:11:03 +0000 (13:11 +0000)]
Minor simplifications to the unix VFS.
FossilOrigin-Name:
2f13c16b45685ec6850cbd9da79e8198bad6a491
drh [Wed, 2 Dec 2015 02:33:36 +0000 (02:33 +0000)]
Change the SQLITE_NO_SYNC compile-time option to call fstat() in place of
fsync() rather than being a total no-op.
FossilOrigin-Name:
f64ea8a052af9790d5e6987cbd5e81d77da6f172
drh [Wed, 2 Dec 2015 02:08:30 +0000 (02:08 +0000)]
Fix a (harmless) off-by-one error in the unix VFS logic that fsync()s a
directory after deleting a file.
FossilOrigin-Name:
3d02711a709a7e708edb0ea8ca5d17b39dd307f6
drh [Wed, 2 Dec 2015 01:04:33 +0000 (01:04 +0000)]
Simplification of the logic used to take the process-wide lock in the
unix-excl VFS.
FossilOrigin-Name:
73defd52bb0e3e5db763d3bfbeebc972b645867e
drh [Wed, 2 Dec 2015 00:05:26 +0000 (00:05 +0000)]
Remove all traces of SQLITE_FCNTL_WAL_BLOCK from the unix VFS - that feature
had been disabled for a long time and never actually worked.
FossilOrigin-Name:
e1d5320ca089336e26d200305b744b06ce883be4
drh [Tue, 1 Dec 2015 22:09:42 +0000 (22:09 +0000)]
Simplification to the posix_fallocate() replacement used for the
SQLITE_FCNTL_SIZE_HINT file control in the unix VFS.
FossilOrigin-Name:
74934d3f60ad9f6550297410eada0f288e0123c4
drh [Tue, 1 Dec 2015 21:23:07 +0000 (21:23 +0000)]
Add the SQLITE_LIKE_DOESNT_MATCH_BLOBS compile-time option.
FossilOrigin-Name:
9e1d6d4c391ff90077f0d1cdeb567969fee9f747
drh [Tue, 1 Dec 2015 17:48:45 +0000 (17:48 +0000)]
The test_fs.c test module now works on Windows.
FossilOrigin-Name:
e3d8628456848a70035bbdeca6dc6c21f688b9a5
drh [Tue, 1 Dec 2015 16:21:35 +0000 (16:21 +0000)]
Simplification to the read and write primatives in the unix VFS.
FossilOrigin-Name:
9eefa449792f03c4c149edcbc6b9b7692617994c
mistachkin [Mon, 30 Nov 2015 23:29:07 +0000 (23:29 +0000)]
Add experimental support for the 'test_fs' test module on Win32.
FossilOrigin-Name:
f3ffb3aeea95712e92919fd5071741327add9643
drh [Mon, 30 Nov 2015 22:52:14 +0000 (22:52 +0000)]
Add the SQLITE_PRINTF_PRECISION_LIMIT compile-time option.
FossilOrigin-Name:
ecad75d69e0d5c83dd3584d363e557e84b65f7f2
drh [Mon, 30 Nov 2015 22:22:23 +0000 (22:22 +0000)]
Fix a problem in xFullPathname for the unix VFS. The problem was found by
Kostya Serebryany using libFuzzer.
FossilOrigin-Name:
bb1e2c4df0b81327923f121dd6c002845486a314
drh [Mon, 30 Nov 2015 20:36:26 +0000 (20:36 +0000)]
The EOVERFLOW errors from fstat() is not possible unless SQLite has been
compiled with SQLITE_DISABLE_LFS.
FossilOrigin-Name:
8cfb7a50bb70ba1e021c1d12d31563e98a20d291
drh [Mon, 30 Nov 2015 19:15:25 +0000 (19:15 +0000)]
Fix the threadtest3 test program so that it works with VFSes that omit the
xCurrentTime() method and supply only xCurrentTimeInt64().
FossilOrigin-Name:
3b155855f3d5918f1df7dbd19783215b3da0ca3e
dan [Mon, 30 Nov 2015 12:01:37 +0000 (12:01 +0000)]
Add the "colUsed" field to the sqlite3_index_info structure passed to virtual table xBestIndex methods. To indicate the subset of the virtual table columns that may be required by the current scan.
FossilOrigin-Name:
47f10b7e5d8c1d965df891990090623444933cc9
drh [Mon, 30 Nov 2015 00:05:39 +0000 (00:05 +0000)]
Simplifications to the locking logic in the unix-dotfile VFS.
FossilOrigin-Name:
583813525888c7e106f3e8cb46c1a507006daee6
drh [Sun, 29 Nov 2015 21:46:19 +0000 (21:46 +0000)]
Fix the sqldiff utility program so that it works for schemas that have
tables with zero-length column names.
FossilOrigin-Name:
64263ccb8f9835c615242de6e28db24f953422fa
drh [Sat, 28 Nov 2015 21:49:53 +0000 (21:49 +0000)]
Improvements to temporary file creation logic in the unix VFS.
FossilOrigin-Name:
d6e177fd09c83d46adc5b5d36e9a439aa5397450
drh [Sat, 28 Nov 2015 18:06:36 +0000 (18:06 +0000)]
Add the SQLITE_FCNTL_VFS_POINTER file control which obtains a pointer to
the top-level VFS in use by a database connection.
FossilOrigin-Name:
7c6a809e25138950f50554e1fb96e0b6ebbe0bd4
drh [Sat, 28 Nov 2015 17:38:22 +0000 (17:38 +0000)]
Disable testing with SQLITE_USER_AUTHENTICATION as the makefiles are not set
up to do that.
FossilOrigin-Name:
14bbcdc64ecc21f47aed8935858788928ca63107
drh [Thu, 26 Nov 2015 22:12:41 +0000 (22:12 +0000)]
The first argument to SQLITE_CONFIG_PAGECACHE, SQLITE_CONFIG_SCRATCH, and
SQLITE_CONFIG_HEAP must always be a pointer.
FossilOrigin-Name:
5e14cadff09d7425c8e1cc5e817f2b0609e52a46
dan [Thu, 26 Nov 2015 19:33:41 +0000 (19:33 +0000)]
Add the "colUsed" field to the sqlite3_index_info structure passed to virtual table xBestIndex methods. To indicate the subset of the virtual table columns that may be required by the current scan.
FossilOrigin-Name:
116b206494eb8ba963c7c5acfbf9e7b6db11c79c
dan [Thu, 26 Nov 2015 15:51:55 +0000 (15:51 +0000)]
Fix a problem with the userauth extension and no-authentication databases. Run the tests for this extension as part of the Debug-One module in releasetest.tcl.
FossilOrigin-Name:
8b15621952889b4ba53b2ea3171fef7ef0479ddb
drh [Thu, 26 Nov 2015 10:37:05 +0000 (10:37 +0000)]
Simplify logic for syncing directories after creating or deleting a file in
the unix VFS.
FossilOrigin-Name:
eb180b4f04d412dcd0af138e2dd7f62fbb5ac439
drh [Thu, 26 Nov 2015 02:21:05 +0000 (02:21 +0000)]
Small simplification to the xOpen method in the unix VFS.
FossilOrigin-Name:
96e7d638ecdabbf84a152036eb01d408d142839e
drh [Wed, 25 Nov 2015 23:13:14 +0000 (23:13 +0000)]
Simplify the temporary filename generator and the time-of-day functions in
the unix VFS.
FossilOrigin-Name:
6c5621ce1b1a65913b088ed8be65f9b689260d2c
drh [Wed, 25 Nov 2015 18:40:38 +0000 (18:40 +0000)]
Fix harmless compiler warnings in test_fs.c. Fix typos and clean up the text
of the documentation for sqlite3_strglob() and sqlite3_strlike().
FossilOrigin-Name:
697b20534c2d780cdd8cc165d2930f6e56480770
dan [Wed, 25 Nov 2015 18:07:46 +0000 (18:07 +0000)]
Update test_fs.c to include a virtual table that reads a file-system hierarchy. Use it to further test GLOB and LIKE support for virtual tables.
FossilOrigin-Name:
6ef6578c03b7cfbeaaf3627b9eea2febf501ace5
drh [Wed, 25 Nov 2015 18:03:33 +0000 (18:03 +0000)]
Make the xAccess method of the unix VFS smaller and faster.
FossilOrigin-Name:
191aef986ffc4ef34d813e417e52a4ec820b0300
drh [Wed, 25 Nov 2015 15:15:03 +0000 (15:15 +0000)]
Remove unused methods from the unix VFS.
FossilOrigin-Name:
228bd15bbb7a1e6e3e0d03832e7f39ba169356a8