Lines Matching refs:aExpr

398   ExprInfo aExpr[101]; /* The WHERE clause is divided into these expressions */  in sqliteWhereBegin()  local
411 memset(aExpr, 0, sizeof(aExpr)); in sqliteWhereBegin()
412 nExpr = exprSplit(ARRAYSIZE(aExpr), aExpr, pWhere); in sqliteWhereBegin()
413 if( nExpr==ARRAYSIZE(aExpr) ){ in sqliteWhereBegin()
415 "than %d terms allowed", (int)ARRAYSIZE(aExpr)-1); in sqliteWhereBegin()
443 exprAnalyze(&maskSet, &aExpr[i]); in sqliteWhereBegin()
452 aExpr[i].prereqRight &= mask; in sqliteWhereBegin()
453 aExpr[i].prereqLeft &= mask; in sqliteWhereBegin()
454 aExpr[i].prereqAll &= mask; in sqliteWhereBegin()
458 aExpr[i].prereqRight &= mask; in sqliteWhereBegin()
459 aExpr[i].prereqLeft &= mask; in sqliteWhereBegin()
460 aExpr[i].prereqAll &= mask; in sqliteWhereBegin()
504 if( aExpr[j].idxLeft==iCur && aExpr[j].p->pLeft->iColumn<0 in sqliteWhereBegin()
505 && (aExpr[j].prereqRight & loopMask)==aExpr[j].prereqRight ){ in sqliteWhereBegin()
506 switch( aExpr[j].p->op ){ in sqliteWhereBegin()
515 if( aExpr[j].idxRight==iCur && aExpr[j].p->pRight->iColumn<0 in sqliteWhereBegin()
516 && (aExpr[j].prereqLeft & loopMask)==aExpr[j].prereqLeft ){ in sqliteWhereBegin()
517 switch( aExpr[j].p->op ){ in sqliteWhereBegin()
566 if( aExpr[j].idxLeft==iCur in sqliteWhereBegin()
567 && (aExpr[j].prereqRight & loopMask)==aExpr[j].prereqRight ){ in sqliteWhereBegin()
568 int iColumn = aExpr[j].p->pLeft->iColumn; in sqliteWhereBegin()
572 switch( aExpr[j].p->op ){ in sqliteWhereBegin()
601 if( aExpr[j].idxRight==iCur in sqliteWhereBegin()
602 && (aExpr[j].prereqLeft & loopMask)==aExpr[j].prereqLeft ){ in sqliteWhereBegin()
603 int iColumn = aExpr[j].p->pRight->iColumn; in sqliteWhereBegin()
607 switch( aExpr[j].p->op ){ in sqliteWhereBegin()
747 assert( aExpr[k].p!=0 ); in sqliteWhereBegin()
748 assert( aExpr[k].idxLeft==iCur || aExpr[k].idxRight==iCur ); in sqliteWhereBegin()
750 if( aExpr[k].idxLeft==iCur ){ in sqliteWhereBegin()
751 Expr *pX = aExpr[k].p; in sqliteWhereBegin()
753 sqliteExprCode(pParse, aExpr[k].p->pRight); in sqliteWhereBegin()
768 sqliteExprCode(pParse, aExpr[k].p->pLeft); in sqliteWhereBegin()
770 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
786 Expr *pX = aExpr[k].p; in sqliteWhereBegin()
788 if( aExpr[k].idxLeft==iCur in sqliteWhereBegin()
789 && (aExpr[k].prereqRight & loopMask)==aExpr[k].prereqRight in sqliteWhereBegin()
794 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
811 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
815 if( aExpr[k].idxRight==iCur in sqliteWhereBegin()
816 && aExpr[k].p->op==TK_EQ in sqliteWhereBegin()
817 && (aExpr[k].prereqLeft & loopMask)==aExpr[k].prereqLeft in sqliteWhereBegin()
818 && aExpr[k].p->pRight->iColumn==pIdx->aiColumn[j] in sqliteWhereBegin()
820 sqliteExprCode(pParse, aExpr[k].p->pLeft); in sqliteWhereBegin()
821 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
878 assert( aExpr[k].p!=0 ); in sqliteWhereBegin()
879 assert( aExpr[k].idxLeft==iCur || aExpr[k].idxRight==iCur ); in sqliteWhereBegin()
880 if( aExpr[k].idxLeft==iCur ){ in sqliteWhereBegin()
881 sqliteExprCode(pParse, aExpr[k].p->pRight); in sqliteWhereBegin()
883 sqliteExprCode(pParse, aExpr[k].p->pLeft); in sqliteWhereBegin()
886 aExpr[k].p->op==TK_LT || aExpr[k].p->op==TK_GT, brk); in sqliteWhereBegin()
888 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
895 assert( aExpr[k].p!=0 ); in sqliteWhereBegin()
896 assert( aExpr[k].idxLeft==iCur || aExpr[k].idxRight==iCur ); in sqliteWhereBegin()
897 if( aExpr[k].idxLeft==iCur ){ in sqliteWhereBegin()
898 sqliteExprCode(pParse, aExpr[k].p->pRight); in sqliteWhereBegin()
900 sqliteExprCode(pParse, aExpr[k].p->pLeft); in sqliteWhereBegin()
905 if( aExpr[k].p->op==TK_LT || aExpr[k].p->op==TK_GT ){ in sqliteWhereBegin()
910 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
958 if( aExpr[k].p==0 ) continue; in sqliteWhereBegin()
959 if( aExpr[k].idxLeft==iCur in sqliteWhereBegin()
960 && aExpr[k].p->op==TK_EQ in sqliteWhereBegin()
961 && (aExpr[k].prereqRight & loopMask)==aExpr[k].prereqRight in sqliteWhereBegin()
962 && aExpr[k].p->pLeft->iColumn==pIdx->aiColumn[j] in sqliteWhereBegin()
964 sqliteExprCode(pParse, aExpr[k].p->pRight); in sqliteWhereBegin()
965 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
968 if( aExpr[k].idxRight==iCur in sqliteWhereBegin()
969 && aExpr[k].p->op==TK_EQ in sqliteWhereBegin()
970 && (aExpr[k].prereqLeft & loopMask)==aExpr[k].prereqLeft in sqliteWhereBegin()
971 && aExpr[k].p->pRight->iColumn==pIdx->aiColumn[j] in sqliteWhereBegin()
973 sqliteExprCode(pParse, aExpr[k].p->pLeft); in sqliteWhereBegin()
974 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
1002 Expr *pExpr = aExpr[k].p; in sqliteWhereBegin()
1004 if( aExpr[k].idxLeft==iCur in sqliteWhereBegin()
1006 && (aExpr[k].prereqRight & loopMask)==aExpr[k].prereqRight in sqliteWhereBegin()
1011 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
1014 if( aExpr[k].idxRight==iCur in sqliteWhereBegin()
1016 && (aExpr[k].prereqLeft & loopMask)==aExpr[k].prereqLeft in sqliteWhereBegin()
1021 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
1061 Expr *pExpr = aExpr[k].p; in sqliteWhereBegin()
1063 if( aExpr[k].idxLeft==iCur in sqliteWhereBegin()
1065 && (aExpr[k].prereqRight & loopMask)==aExpr[k].prereqRight in sqliteWhereBegin()
1070 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
1073 if( aExpr[k].idxRight==iCur in sqliteWhereBegin()
1075 && (aExpr[k].prereqLeft & loopMask)==aExpr[k].prereqLeft in sqliteWhereBegin()
1080 disableTerm(pLevel, &aExpr[k].p); in sqliteWhereBegin()
1141 if( aExpr[j].p==0 ) continue; in sqliteWhereBegin()
1142 if( (aExpr[j].prereqAll & loopMask)!=aExpr[j].prereqAll ) continue; in sqliteWhereBegin()
1143 if( pLevel->iLeftJoin && !ExprHasProperty(aExpr[j].p,EP_FromJoin) ){ in sqliteWhereBegin()
1150 sqliteExprIfFalse(pParse, aExpr[j].p, cont, 1); in sqliteWhereBegin()
1151 aExpr[j].p = 0; in sqliteWhereBegin()
1163 if( aExpr[j].p==0 ) continue; in sqliteWhereBegin()
1164 if( (aExpr[j].prereqAll & loopMask)!=aExpr[j].prereqAll ) continue; in sqliteWhereBegin()
1173 sqliteExprIfFalse(pParse, aExpr[j].p, cont, 1); in sqliteWhereBegin()
1174 aExpr[j].p = 0; in sqliteWhereBegin()