Lines Matching refs:pRight
107 Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */
387 whereSplit(pWC, pExpr->pRight, op);
447 mask = exprTableUsage(pMaskSet, p->pRight);
517 u16 expRight = (pExpr->pRight->flags & EP_ExpCollate);
520 pExpr->pRight->pColl = sqlite3ExprCollSeq(pParse, pExpr->pRight);
522 SWAP(CollSeq*,pExpr->pRight->pColl,pExpr->pLeft->pColl);
523 pExpr->pRight->flags = (pExpr->pRight->flags & ~EP_ExpCollate) | expLeft;
525 SWAP(Expr*,pExpr->pRight,pExpr->pLeft);
599 pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
648 Expr *pRight, *pLeft; /* Right and left size of LIKE operator */
655 int op; /* Opcode of pRight */
672 pRight = pList->a[0].pExpr;
673 op = pRight->op;
675 op = pRight->op2;
679 int iCol = pRight->iColumn;
685 assert( pRight->op==TK_VARIABLE || pRight->op==TK_REGISTER );
687 z = pRight->u.zToken;
702 sqlite3VdbeSetVarmask(v, pRight->iColumn); /* IMP: R-23257-02778 */
703 if( *pisComplete && pRight->u.zToken[1] ){
711 sqlite3ExprCodeTarget(pParse, pRight, r1);
1021 affRight = sqlite3ExprAffinity(pOrTerm->pExpr->pRight);
1049 pDup = sqlite3ExprDup(db, pOrTerm->pExpr->pRight, 0);
1122 assert( pExpr->pRight==0 );
1131 pTerm->prereqRight = exprTableUsage(pMaskSet, pExpr->pRight);
1146 Expr *pRight = pExpr->pRight;
1152 if( pRight && pRight->op==TK_COLUMN ){
1306 Expr *pRight, *pLeft;
1310 pRight = pExpr->x.pList->a[0].pExpr;
1312 prereqExpr = exprTableUsage(pMaskSet, pRight);
1317 0, sqlite3ExprDup(db, pRight, 0), 0);
1897 pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
2465 Expr *pExpr = pLower->pExpr->pRight;
2471 Expr *pExpr = pUpper->pExpr->pRight;
2950 whereEqualScanEst(pParse, pProbe, pFirstTerm->pExpr->pRight, &nRow);
3276 iReg = sqlite3ExprCodeTarget(pParse, pX->pRight, iTarget);
3414 Expr *pRight = pTerm->pExpr->pRight;
3415 sqlite3ExprCodeIsNullJump(v, pRight, regBase+j, pLevel->addrBrk);
3417 if( sqlite3CompareAffinity(pRight, zAff[j])==SQLITE_AFF_NONE ){
3420 if( sqlite3ExprNeedsNoAffinityChange(pRight, zAff[j]) ){
3663 sqlite3ExprCode(pParse, pWC->a[iTerm].pExpr->pRight, iReg+j+1);
3745 r1 = sqlite3ExprCodeTemp(pParse, pX->pRight, &rTemp);
3761 sqlite3ExprCode(pParse, pX->pRight, memEndValue);
3912 Expr *pRight = pRangeStart->pExpr->pRight;
3913 sqlite3ExprCode(pParse, pRight, regBase+nEq);
3915 sqlite3ExprCodeIsNullJump(v, pRight, regBase+nEq, addrNxt);
3918 if( sqlite3CompareAffinity(pRight, zStartAff[nEq])==SQLITE_AFF_NONE){
3920 ** applied to the operands, set the affinity to apply to pRight to
3924 if( sqlite3ExprNeedsNoAffinityChange(pRight, zStartAff[nEq]) ){
3952 Expr *pRight = pRangeEnd->pExpr->pRight;
3954 sqlite3ExprCode(pParse, pRight, regBase+nEq);
3956 sqlite3ExprCodeIsNullJump(v, pRight, regBase+nEq, addrNxt);
3959 if( sqlite3CompareAffinity(pRight, zEndAff[nEq])==SQLITE_AFF_NONE){
3961 ** applied to the operands, set the affinity to apply to pRight to
3965 if( sqlite3ExprNeedsNoAffinityChange(pRight, zEndAff[nEq]) ){