Create backport branch for r1567286


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x-r1567286@1567364 13f79535-47bb-0310-9956-ffa450edef68
On 1.8.x-r1567286 branch: Merge r1567286 from trunk, fixing conflicts


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x-r1567286@1567366 13f79535-47bb-0310-9956-ffa450edef68
On the 1.8.x-r1567286 branch: Merge r1567392 from trunk.


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x-r1567286@1567397 13f79535-47bb-0310-9956-ffa450edef68
Merge the 1.8.x-r1567286 branch:

 * r1567286, r1567392
   Disable SQLITE_ENABLE_STAT3/4 with versions of SQLite that are buggy.
   Justification:
     SQLite returns incorrect results for queries.  Try to help our users
     and packagers from using buggy setups.
   Branch:
     ^/subversion/branches/1.8.x-r1567286
   Url:
     http://www.sqlite.org/src/info/4c86b126f2
   Votes:
     +1: breser, rhuijben, philip
     +1: (different patch) brane


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x@1567732 13f79535-47bb-0310-9956-ffa450edef68
Merge the r1567109 group from trunk:

 * r1567109, r1567134
   Fix an sqlite query definition to always return its rows in the order the
   C code expects them to be. This resolves some potential problems in the
   move logic on update/switch.
   Justification:
     Sqlite tries to execute queries in an 'optimal' way, but how this is
     depends on factors like SQLITE_ENABLE_STAT3, code improvements in Sqlite,
     etc. We shouldn't rely on a specific execution plan for correct behavior.
   Votes:
     +1: rhuijben, breser, philip


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x@1567734 13f79535-47bb-0310-9956-ffa450edef68
Merge r1567064 from trunk:

 * r1567064
   Explicitly apply some Sqlite defaults to avoid unwanted side effects.
   Justification:
     We found distributions that enabled other flags. This might fix other
     similar cases.
   Votes:
     +1: rhuijben, breser, philip


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.8.x@1567735 13f79535-47bb-0310-9956-ffa450edef68