Avoid leaking memory in an obscure case where the flattener adds an ORDER BY clause to the recursive part of a recursive query.
Change the names of SRT_DistTable and SRT_Table used by CTE to more
meaningful SRT_DistFifo and SRT_Fifo, respectively.  Simplify the
IgnorableOrderby() macro in the process.
Add the ability to use indices for the first few terms of an ORDER BY clause,
then sort in batches to handle the later terms.
Fix the ORDER BY optimization logic so that it will do a block-sort on
a partial DESC ORDER BY.  This enhancement uncovered a memory leak in
pushUntoSorter() which is also fixed.
Increase the version number to 3.8.5.
Clear the sort-order flags on the KeyInfo object associated with the
OP_Compare/OP_Jump of the block-sort logic, in order to make the OP_Jump
fully testable.
Avoid a possible use of an uninitialized variable following an I/O or OOM
error.
Use only a single OP_MakeRecord instead of two when constructing entries
to go onto a sorter.
merge fixes from trunk
Further enhancements to geneverated VDBE code for ORDER BY.
Remove a pointless OP_Once operation in ORDER BY clauses with LIMIT.
Remove an unnecessary temporary register allocation.