Clarification to a comment in where.c. No code changes.

FossilOrigin-Name: 04507c176330a06b09dcafa35ec0ca7498f5ace7
This commit is contained in:
drh
2013-01-15 16:15:28 +00:00
parent 9f5ff37120
commit 5d5cf01ee0
3 changed files with 10 additions and 12 deletions
+2 -4
View File
@@ -5105,10 +5105,8 @@ WhereInfo *sqlite3WhereBegin(
** strategies were found by the first iteration. This second iteration
** is used to search for the lowest cost scan overall.
**
** Previous versions of SQLite performed only the second iteration -
** the next outermost loop was always that with the lowest overall
** cost. However, this meant that SQLite could select the wrong plan
** for scripts such as the following:
** Without the optimal scan step (the first iteration) a suboptimal
** plan might be chosen for queries like this:
**
** CREATE TABLE t1(a, b);
** CREATE TABLE t2(c, d);