/ Check-in [4a499722]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove a branch that is never taken from where.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4a4997221f3d61c1411a993053b40c787beea736
User & Date: dan 2014-03-06 12:36:26
Context
2014-03-06
13:38
Improved EXPLAIN indentation of a loop in the ANALYZE logic for STAT4. Mark the not-found jump of a seek operation in that loop as never taken. check-in: 0a4200f9 user: drh tags: trunk
12:36
Remove a branch that is never taken from where.c. check-in: 4a499722 user: dan tags: trunk
02:15
Cosmetic change to the shell in-memory database warning to skip coloring the trailing period. check-in: c87d8e07 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/where.c.

  3053   3053         pRangeStart = pLoop->aLTerm[j++];
  3054   3054         nExtraReg = 1;
  3055   3055       }
  3056   3056       if( pLoop->wsFlags & WHERE_TOP_LIMIT ){
  3057   3057         pRangeEnd = pLoop->aLTerm[j++];
  3058   3058         nExtraReg = 1;
  3059   3059         if( pRangeStart==0
  3060         -       && (pRangeEnd->wtFlags & TERM_VNULL)==0
  3061   3060          && (j = pIdx->aiColumn[nEq])>=0 
  3062   3061          && pIdx->pTable->aCol[j].notNull==0
  3063   3062         ){
  3064   3063           bSeekPastNull = 1;
  3065   3064         }
  3066   3065       }
         3066  +    assert( pRangeEnd==0 || (pRangeEnd->wtFlags & TERM_VNULL)==0 );
  3067   3067   
  3068   3068       /* Generate code to evaluate all constraint terms using == or IN
  3069   3069       ** and store the values of those terms in an array of registers
  3070   3070       ** starting at regBase.
  3071   3071       */
  3072   3072       regBase = codeAllEqualityTerms(pParse,pLevel,bRev,nExtraReg,&zStartAff);
  3073   3073       assert( zStartAff==0 || sqlite3Strlen30(zStartAff)>=nEq );