Merge in all of the logging enhancements. This is a cherrypick merge of
the following check-ins: [103321e37a], [a8076aede3], [6d910245ad],
[7c4cca6d1a], [edea3bb740], [1a6d4bb130], [a8c984c1d6], [69a493182f], and
[1168763d2c].
check-in: 46f406b2 user: drh tags: branch-3.6.22

Start a new branch for release 3.6.22 plus limited enhancements and fixes.
This first check-in includes the performance enhancements of check-ins
[26cb1df735], [61a2c8d4d6], and [27dc5b1c52]
check-in: 95882598 user: drh tags: branch-3.6.22

Remove the ".genfkey" command from the shell. We've had foreign-key support
in the core since 3.6.19. Anyone who still needs the simulated foreign-key
triggers can always generate them with an older version of the shell.
check-in: c4401fc9 user: drh tags: trunk

Merge in the massive clean-up and ANSI-fication of Lemon carried out
by Ryan Gordon. There are no functional changes to SQLite itself - Lemon
still generates exactly the same parsing automaton from exactly the same
grammar.
check-in: 1e8b8420 user: drh tags: trunk

Fix for [e9a9fde1f4]. When opening an existing rtree, determine the node size by inspecting the root node of the r-tree structure (instead of assuming it is a function of the page-size).
check-in: ebc9433f user: dan tags: trunk

Fix the ALTER TABLE RENAME command so that it converts FOREIGN KEY constraints
in ATTACH-ed and in TEMP tables as well as in the main database.
Ticket [13336e9c3c8c3f].
check-in: ab197d0a user: drh tags: trunk

When creating a trigger on a main database table when there is a TEMP table
with the same name, make sure the trigger is bound to the main table.
Ticket [985771e11612].
check-in: ec914af3 user: drh tags: trunk

Added option to not clip error output. This is useful for IDEs and other tools that benefit from full path
information, so they can jump directly to the error line in the source code.
check-in: 90602030 user: icculus tags: lemon-update-2010

Delete output files if this is a failed run. Otherwise, the fail will stop a Makefile from progressing, but if you
immediately run the build again, Make will think the output files are up to
date, since they are newer (albeit incomplete/incorrect).
check-in: e38c08d9 user: icculus tags: lemon-update-2010

Added %expect directive, to consider a certain number of conflicts "correct." This has the side effect of changing the process exit code to never overflow.
check-in: d8bab8cf user: icculus tags: lemon-update-2010