/ Check-in [67d7f79c]
Login

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

Overview
Comment:Add some missing testcase() macros to the pushDownWhereTerms() routine.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 67d7f79c5e5be41a18817c802b5c4d349e3a83a4
User & Date: drh 2016-04-14 15:38:33
Context
2016-04-14
15:44
Correctly interpret negative "PRAGMA cache_size" values when determining the cache-size used for sorting large amounts of data (i.e. the functionality in vdbesort.c). check-in: 79147dca user: dan tags: trunk
15:38
Add some missing testcase() macros to the pushDownWhereTerms() routine. check-in: 67d7f79c user: drh tags: trunk
13:35
Rename WhereInfo.pResultSet to pDistinctSet to more accurately reflect what it represents. check-in: 53179614 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/select.c.

  3783   3783     Expr *pWhere,         /* The WHERE clause of the outer query */
  3784   3784     int iCursor           /* Cursor number of the subquery */
  3785   3785   ){
  3786   3786     Expr *pNew;
  3787   3787     int nChng = 0;
  3788   3788     if( pWhere==0 ) return 0;
  3789   3789     if( (pSubq->selFlags & (SF_Aggregate|SF_Recursive))!=0 ){
         3790  +     testcase( pSubq->selFlags & SF_Aggregate );
         3791  +     testcase( pSubq->selFlags & SF_Recursive );
  3790   3792        return 0; /* restrictions (1) and (2) */
  3791   3793     }
  3792   3794     if( pSubq->pLimit!=0 ){
  3793   3795        return 0; /* restriction (3) */
  3794   3796     }
  3795   3797     while( pWhere->op==TK_AND ){
  3796   3798       nChng += pushDownWhereTerms(db, pSubq, pWhere->pRight, iCursor);