Query planner improvements: Take the LIMIT into account when estimated the
cost of an ORDER BY. Avoid automatic indexes on query loops that are expected
to run less than twice.
See [9e2b2681] for a later enhancement.
check-in: bf46179d user: drh tags: trunk

In the command-line shell: When the ".import" command is creating a new
table using column names from the first row of CSV input, make sure
double-quotes in the name are properly escaped.
check-in: 2e67a1c8 user: drh tags: trunk