Update the apple-osx branch so that it includes all of the latest trunk
changes.
Merge the latest trunk changes into the apple-osx branch.
Added support for SQLITE_ENABLE_PERSIST_WAL compile time macro, retrieving lastErrno from WAL file and setting last errno when writes fail due to space constraints
Merge in the legacy table constraint parsing fixes from trunk.
Make sure the WAL file is deleted when changing to DELETE journal mode.
Merge trunk changes with apple-osx branch.
Version 3.7.12
Improve error reporting from sqlite3_file_control, SQLITE_FCNTL_REPLACE_DATABASE shouldn't copy file security/ACL metadata, bad bit mask fixed
Stylistic fixes: limit source code line length to 80 characters.  C89-style
comments only, not C++/C99 style.
Version 3.7.12.1
Only call fchown when running as root and supporting files mismatch the database owner & perms
Merge trunk changes into the apple-osx branch.
Merge the vtab1 test script fix and the FTS3 memory leak fix from trunk
into the apple-osx branch.
Cherrypick [8c9ee1d78f] and [e416359633] from trunk:
Ensure that there is always at least one aReadMark slot usable by an unprivileged reader while a checkpoint is running. Also, if one or more transactions are recovered from a log file, initialize one of the aReadMark slots to contain mxFrame as part of the recovery process.
Merge all the latest trunk changes into the apple-osx branch.
Merge in latest trunk changes.
Merge the latest trunk changes (PRAGMA busy_timeout and the ORDER BY
query planner enhancements) into the apple-osx branch.