1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Improved comments. No code changes.

FossilOrigin-Name: 23f71a26386ff2aff9800fe96cec1dc9c805b5b6
This commit is contained in:
drh
2015-03-16 13:12:34 +00:00
parent 8426636cdc
commit c03acf2ea7
3 changed files with 15 additions and 14 deletions

View File

@@ -792,7 +792,7 @@ static WhereTerm *whereNthSubterm(WhereTerm *pTerm, int N){
** If these two terms are both of the form: "A op B" with the same
** A and B values but different operators and if the operators are
** compatible (if one is = and the other is <, for example) then
** add a new virtual term to pWC that is the combination of the
** add a new virtual AND term to pWC that is the combination of the
** two.
**
** Some examples:
@@ -884,9 +884,13 @@ static void whereCombineDisjuncts(
**
** CASE 2:
**
** If there is a two-way OR and one side has x>A and the other side
** has x=A (for the same x and A) then add a new virtual term to the
** WHERE clause of the form "x>=A".
** If there are exactly two disjuncts one side has x>A and the other side
** has x=A (for the same x and A) then add a new virtual conjunct term to the
** WHERE clause of the form "x>=A". Example:
**
** x>A OR (x=A AND y>B) adds: x>=A
**
** The added conjunct can sometimes be helpful in query planning.
**
** CASE 3:
**