Lines Matching defs:pRight

10243 ** Expr.pRight and Expr.pLeft are the left and right subexpressions of a
10285 ** the child Expr objects in the Expr.pLeft and Expr.pRight subtrees
10305 Expr *pRight; /* Right subnode */
37069 struct RowSetEntry *pRight; /* Right subtree (larger entries) or list */
37092 struct RowSetEntry *pEntry; /* List of entries using pRight */
37172 pEntry->pRight = 0;
37178 pLast->pRight = pEntry;
37189 ** The input lists are connected via pRight pointers and are
37201 assert( pA->pRight==0 || pA->v<=pA->pRight->v );
37202 assert( pB->pRight==0 || pB->v<=pB->pRight->v );
37204 pTail->pRight = pA;
37205 pA = pA->pRight;
37206 pTail = pTail->pRight;
37208 pTail->pRight = pB;
37209 pB = pB->pRight;
37210 pTail = pTail->pRight;
37212 pA = pA->pRight;
37216 assert( pA->pRight==0 || pA->v<=pA->pRight->v );
37217 pTail->pRight = pA;
37219 assert( pB==0 || pB->pRight==0 || pB->v<=pB->pRight->v );
37220 pTail->pRight = pB;
37222 return head.pRight;
37237 p->pEntry = pEntry->pRight;
37238 pEntry->pRight = 0;
37257 ** Convert this tree into a linked list connected by the pRight pointers
37269 p->pRight = pIn;
37273 if( pIn->pRight ){
37274 rowSetTreeToList(pIn->pRight, &pIn->pRight, ppLast);
37278 assert( (*ppLast)->pRight==0 );
37283 ** Convert a sorted list of elements (connected by pRight) into a binary
37306 *ppList = p->pRight;
37307 p->pLeft = p->pRight = 0;
37316 *ppList = p->pRight;
37317 p->pRight = rowSetNDeepTree(ppList, iDepth-1);
37332 pList = p->pRight;
37333 p->pLeft = p->pRight = 0;
37337 pList = p->pRight;
37339 p->pRight = rowSetNDeepTree(&pList, iDepth);
37373 p->pEntry = p->pEntry->pRight;
37401 p = p->pRight;
54136 u8 *pRight; /* Location in parent of right-sibling pointer */
54192 pRight = &pParent->aData[pParent->hdrOffset+8];
54194 pRight = findCell(pParent, i+nxDiv-pParent->nOverflow);
54196 pgno = get4byte(pRight);
54501 put4byte(pRight, apNew[nNew-1]->pgno);
71710 if( sqlite3WalkExpr(pWalker, pExpr->pRight) ) return WRC_Abort;
71916 ** pExpr->pRight Any expression this points to is deleted.
72105 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
72184 sqlite3ExprDelete(db, pExpr->pRight);
72185 pExpr->pRight = 0;
72293 Expr *pRight;
72296 pRight = pExpr->pRight;
72297 if( pRight->op==TK_ID ){
72300 zColumn = pRight->u.zToken;
72302 assert( pRight->op==TK_DOT );
72304 zTable = pRight->pLeft->u.zToken;
72305 zColumn = pRight->pRight->u.zToken;
73185 if( pExpr->pRight ){
73186 aff = sqlite3CompareAffinity(pExpr->pRight, aff);
73225 ** a binary comparison operator comparing pLeft and pRight.
73232 ** Argument pRight (but not pLeft) may be a null pointer. In this case,
73238 Expr *pRight
73245 }else if( pRight && pRight->flags & EP_ExpCollate ){
73246 assert( pRight->pColl );
73247 pColl = pRight->pColl;
73251 pColl = sqlite3ExprCollSeq(pParse, pRight);
73263 Expr *pRight, /* The right operand */
73273 p4 = sqlite3BinaryCompareCollSeq(pParse, pLeft, pRight);
73274 p5 = binaryCompareP5(pLeft, pRight, jumpIfNull);
73346 heightOfExpr(p->pRight, &nHeight);
73458 ** Attach subtrees pLeft and pRight to the Expr node pRoot.
73461 ** In that case, delete the subtrees pLeft and pRight.
73467 Expr *pRight
73472 sqlite3ExprDelete(db, pRight);
73474 if( pRight ){
73475 pRoot->pRight = pRight;
73476 if( pRight->flags & EP_ExpCollate ){
73478 pRoot->pColl = pRight->pColl;
73503 Expr *pRight, /* Right operand */
73507 sqlite3ExprAttachSubtrees(pParse->db, p, pLeft, pRight);
73518 SQLITE_PRIVATE Expr *sqlite3ExprAnd(sqlite3 *db, Expr *pLeft, Expr *pRight){
73520 return pRight;
73521 }else if( pRight==0 ){
73525 sqlite3ExprAttachSubtrees(db, pNew, pLeft, pRight);
73642 sqlite3ExprDelete(db, p->pRight);
73712 if( p->pLeft || p->pRight || p->pColl || p->x.pList ){
73744 ** and Expr.pRight variables (but not for any structures pointed to or
73752 nByte += dupedExprSize(p->pLeft, flags) + dupedExprSize(p->pRight, flags);
73762 ** (if applicable), and the copies of the p->pLeft and p->pRight expressions,
73827 /* Fill in pNew->pLeft and pNew->pRight. */
73832 pNew->pRight = exprDup(db, p->pRight, EXPRDUP_REDUCE, &zAlloc);
73841 pNew->pRight = sqlite3ExprDup(db, p->pRight, 0);
75427 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
75428 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
75439 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
75441 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
75482 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
75678 Expr *pRight = pLItem->pExpr;
75681 r2 = sqlite3ExprCodeTemp(pParse, pRight, &regFree2);
75686 codeCompare(pParse, pLeft, pRight, OP_Ge,
75689 pRight = pLItem->pExpr;
75691 r2 = sqlite3ExprCodeTemp(pParse, pRight, &regFree2);
75693 codeCompare(pParse, pLeft, pRight, OP_Le, r1, r2, r4, SQLITE_STOREP2);
75770 ** Y is in pExpr->pRight. The Y is also optional. If there is no
75819 opCompare.pRight = aListelem[i].pExpr;
75833 if( pExpr->pRight ){
75835 sqlite3ExprCode(pParse, pExpr->pRight, target);
76142 exprAnd.pRight = &compRight;
76145 compLeft.pRight = pExpr->x.pList->a[0].pExpr;
76148 compRight.pRight = pExpr->x.pList->a[1].pExpr;
76200 sqlite3ExprIfTrue(pParse, pExpr->pRight, dest, jumpIfNull);
76208 sqlite3ExprIfTrue(pParse, pExpr->pRight, dest, jumpIfNull);
76236 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
76237 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
76248 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
76250 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
76349 sqlite3ExprIfFalse(pParse, pExpr->pRight, dest, jumpIfNull);
76357 sqlite3ExprIfFalse(pParse, pExpr->pRight, dest, jumpIfNull);
76381 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
76382 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
76393 r2 = sqlite3ExprCodeTemp(pParse, pExpr->pRight, &regFree2);
76395 codeCompare(pParse, pExpr->pLeft, pExpr->pRight, op,
76467 if( sqlite3ExprCompare(pA->pRight, pB->pRight) ) return 2;
78841 if( sqlite3FixExpr(pFix, pExpr->pRight) ){
86163 Expr *pRight; /* Column ref to child table */
86164 Expr *pEq; /* Expression (pLeft = pRight) */
86188 pRight = sqlite3Expr(db, TK_ID, zCol);
86189 pEq = sqlite3PExpr(pParse, TK_EQ, pLeft, pRight, 0);
86198 Expr *pEq; /* Expression (pLeft = pRight) */
86200 Expr *pRight; /* Column ref to child table */
86202 pRight = sqlite3Expr(db, TK_COLUMN, 0);
86203 if( pLeft && pRight ){
86206 pRight->iTable = pSrc->a[0].iCursor;
86207 pRight->iColumn = -1;
86209 pEq = sqlite3PExpr(pParse, TK_NE, pLeft, pRight, 0);
92651 p = p->pRight;
92673 struct SrcList_item *pRight; /* Right table being joined */
92677 pRight = &pLeft[1];
92678 for(i=0; i<pSrc->nSrc-1; i++, pRight++, pLeft++){
92680 Table *pRightTab = pRight->pTab;
92684 isOuter = (pRight->jointype & JT_OUTER)!=0;
92689 if( pRight->jointype & JT_NATURAL ){
92690 if( pRight->pOn || pRight->pUsing ){
92710 if( pRight->pOn && pRight->pUsing ){
92719 if( pRight->pOn ){
92720 if( isOuter ) setJoinExpr(pRight->pOn, pRight->iCursor);
92721 p->pWhere = sqlite3ExprAnd(pParse->db, p->pWhere, pRight->pOn);
92722 pRight->pOn = 0;
92732 if( pRight->pUsing ){
92733 IdList *pList = pRight->pUsing;
93612 assert( p->pRight==0 || ExprHasProperty(p->pRight, EP_IntValue)
93613 || p->pRight->u.zToken==0 || p->pRight->u.zToken[0]!=0 );
93620 while( pColExpr->op==TK_DOT ) pColExpr = pColExpr->pRight;
94874 assert( pExpr->pLeft==0 && pExpr->pRight==0 );
94884 pExpr->pRight = substExpr(db, pExpr->pRight, iTable, pEList);
95624 assert( pE->op!=TK_DOT || pE->pRight!=0 );
95626 if( pE->op==TK_DOT && pE->pRight->op==TK_ALL ) break;
95642 assert( pE->op!=TK_DOT || pE->pRight!=0 );
95643 if( pE->op!=TK_ALL && (pE->op!=TK_DOT || pE->pRight->op!=TK_ALL) ){
95678 Expr *pExpr, *pRight;
95707 pRight = sqlite3Expr(db, TK_ID, zName);
95713 pExpr = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight, 0);
95719 pExpr = pRight;
96228 Select *pLoop, *pRight = 0;
96233 pLoop->pNext = pRight;
96234 pRight = pLoop;
96864 if( p->pRight ){
96866 sqlite3PrintExpr(p->pRight);
100452 Bitmask prereqRight; /* Bitmask of tables used by pExpr->pRight */
100733 whereSplit(pWC, pExpr->pRight, op);
100793 mask = exprTableUsage(pMaskSet, p->pRight);
100871 u16 expRight = (pExpr->pRight->flags & EP_ExpCollate);
100874 pExpr->pRight->pColl = sqlite3ExprCollSeq(pParse, pExpr->pRight);
100876 SWAP(CollSeq*,pExpr->pRight->pColl,pExpr->pLeft->pColl);
100877 pExpr->pRight->flags = (pExpr->pRight->flags & ~EP_ExpCollate) | expLeft;
100879 SWAP(Expr*,pExpr->pRight,pExpr->pLeft);
100953 pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
101002 Expr *pRight, *pLeft; /* Right and left size of LIKE operator */
101009 int op; /* Opcode of pRight */
101026 pRight = pList->a[0].pExpr;
101027 op = pRight->op;
101029 op = pRight->op2;
101033 int iCol = pRight->iColumn;
101039 assert( pRight->op==TK_VARIABLE || pRight->op==TK_REGISTER );
101041 z = pRight->u.zToken;
101056 sqlite3VdbeSetVarmask(v, pRight->iColumn); /* IMP: R-23257-02778 */
101057 if( *pisComplete && pRight->u.zToken[1] ){
101065 sqlite3ExprCodeTarget(pParse, pRight, r1);
101375 affRight = sqlite3ExprAffinity(pOrTerm->pExpr->pRight);
101403 pDup = sqlite3ExprDup(db, pOrTerm->pExpr->pRight, 0);
101476 assert( pExpr->pRight==0 );
101485 pTerm->prereqRight = exprTableUsage(pMaskSet, pExpr->pRight);
101500 Expr *pRight = pExpr->pRight;
101506 if( pRight && pRight->op==TK_COLUMN ){
101660 Expr *pRight, *pLeft;
101664 pRight = pExpr->x.pList->a[0].pExpr;
101666 prereqExpr = exprTableUsage(pMaskSet, pRight);
101671 0, sqlite3ExprDup(db, pRight, 0), 0);
101831 CollSeq *p1 = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
102417 pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
102987 Expr *pExpr = pLower->pExpr->pRight;
102993 Expr *pExpr = pUpper->pExpr->pRight;
103478 whereEqualScanEst(pParse, pProbe, pFirstTerm->pExpr->pRight, &nRow);
103807 iReg = sqlite3ExprCodeTarget(pParse, pX->pRight, iTarget);
103945 Expr *pRight = pTerm->pExpr->pRight;
103946 sqlite3ExprCodeIsNullJump(v, pRight, regBase+j, pLevel->addrBrk);
103948 if( sqlite3CompareAffinity(pRight, zAff[j])==SQLITE_AFF_NONE ){
103951 if( sqlite3ExprNeedsNoAffinityChange(pRight, zAff[j]) ){
104194 sqlite3ExprCode(pParse, pWC->a[iTerm].pExpr->pRight, iReg+j+1);
104276 r1 = sqlite3ExprCodeTemp(pParse, pX->pRight, &rTemp);
104292 sqlite3ExprCode(pParse, pX->pRight, memEndValue);
104443 Expr *pRight = pRangeStart->pExpr->pRight;
104444 sqlite3ExprCode(pParse, pRight, regBase+nEq);
104446 sqlite3ExprCodeIsNullJump(v, pRight, regBase+nEq, addrNxt);
104449 if( sqlite3CompareAffinity(pRight, zStartAff[nEq])==SQLITE_AFF_NONE){
104451 ** applied to the operands, set the affinity to apply to pRight to
104455 if( sqlite3ExprNeedsNoAffinityChange(pRight, zStartAff[nEq]) ){
104483 Expr *pRight = pRangeEnd->pExpr->pRight;
104485 sqlite3ExprCode(pParse, pRight, regBase+nEq);
104487 sqlite3ExprCodeIsNullJump(v, pRight, regBase+nEq, addrNxt);
104490 if( sqlite3CompareAffinity(pRight, zEndAff[nEq])==SQLITE_AFF_NONE){
104492 ** applied to the operands, set the affinity to apply to pRight to
104496 if( sqlite3ExprNeedsNoAffinityChange(pRight, zEndAff[nEq]) ){
105627 ExprSpan *pRight /* The right operand */
105629 pOut->pExpr = sqlite3PExpr(pParse, op, pLeft->pExpr, pRight->pExpr, 0);
105631 pOut->zEnd = pRight->zEnd;
105654 sqlite3ExprDelete(db, pA->pRight);
105655 pA->pRight = 0;
107950 Expr *pRight = sqlite3PExpr(pParse, TK_ALL, 0, 0, &yymsp[0].minor.yy0);
107952 Expr *pDot = sqlite3PExpr(pParse, TK_DOT, pLeft, pRight, 0);
114356 Fts3Expr *pParent; /* pParent->pLeft==this or pParent->pRight==this */
114358 Fts3Expr *pRight; /* Right operand */
117550 fts3EvalAllocateReaders(pCsr, pExpr->pRight, pnToken, pnOr, pRc);
117589 char *pRight;
117597 pRight = pList;
117601 pRight = p->doclist.aAll;
117608 fts3DoclistPhraseMerge(pTab->bDescIdx, nDiff, pLeft, nLeft, pRight,&nRight);
117610 p->doclist.aAll = pRight;
117962 fts3EvalStartReaders(pCsr, pExpr->pRight, bOptOk, pRc);
117963 pExpr->bDeferred = (pExpr->pLeft->bDeferred && pExpr->pRight->bDeferred);
118026 pRoot = pExpr->pRight;
118030 fts3EvalTokenCosts(pCsr, pRoot, pExpr->pRight, ppTC, ppOr, pRc);
118390 Fts3Expr *pRight = pExpr->pRight;
118391 assert( !pLeft->bDeferred || !pRight->bDeferred );
118396 fts3EvalNextRow(pCsr, pRight, pRc);
118397 pExpr->iDocid = pRight->iDocid;
118398 pExpr->bEof = pRight->bEof;
118399 }else if( pRight->bDeferred ){
118408 fts3EvalNextRow(pCsr, pRight, pRc);
118409 while( !pLeft->bEof && !pRight->bEof && *pRc==SQLITE_OK ){
118410 sqlite3_int64 iDiff = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
118415 fts3EvalNextRow(pCsr, pRight, pRc);
118419 pExpr->bEof = (pLeft->bEof || pRight->bEof);
118426 Fts3Expr *pRight = pExpr->pRight;
118427 sqlite3_int64 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
118429 assert( pLeft->bStart || pLeft->iDocid==pRight->iDocid );
118430 assert( pRight->bStart || pLeft->iDocid==pRight->iDocid );
118432 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
118434 }else if( pLeft->bEof || (pRight->bEof==0 && iCmp>0) ){
118435 fts3EvalNextRow(pCsr, pRight, pRc);
118438 fts3EvalNextRow(pCsr, pRight, pRc);
118441 pExpr->bEof = (pLeft->bEof && pRight->bEof);
118442 iCmp = DOCID_CMP(pLeft->iDocid, pRight->iDocid);
118443 if( pRight->bEof || (pLeft->bEof==0 && iCmp<0) ){
118446 pExpr->iDocid = pRight->iDocid;
118454 Fts3Expr *pRight = pExpr->pRight;
118456 if( pRight->bStart==0 ){
118457 fts3EvalNextRow(pCsr, pRight, pRc);
118458 assert( *pRc!=SQLITE_OK || pRight->bStart );
118464 && !pRight->bEof
118465 && DOCID_CMP(pLeft->iDocid, pRight->iDocid)>0
118467 fts3EvalNextRow(pCsr, pRight, pRc);
118535 nTmp += p->pRight->pPhrase->doclist.nList;
118547 Fts3Phrase *pPhrase = p->pRight->pPhrase;
118552 aPoslist = pExpr->pRight->pPhrase->doclist.pList;
118553 nToken = pExpr->pRight->pPhrase->nToken;
118557 p->eType==FTSQUERY_NEAR ? p->pRight->pPhrase : p->pPhrase
118592 && fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
118617 if( p->pRight->iDocid==pCsr->iPrevId ){
118618 fts3EvalInvalidatePoslist(p->pRight->pPhrase);
118630 int bHit2 = fts3EvalTestExpr(pCsr, pExpr->pRight, pRc);
118638 && !fts3EvalTestExpr(pCsr, pExpr->pRight, pRc)
118775 fts3EvalRestart(pCsr, pExpr->pRight, pRc);
118815 fts3EvalUpdateCounts(pExpr->pRight);
118857 Fts3Expr *pE = (p->eType==FTSQUERY_PHRASE?p:p->pRight);
120084 assert( pSplit->pParent->pRight==pSplit );
120085 pSplit->pParent->pRight = pNew;
120136 pNot->pRight = p;
120192 assert( pPrev && pPrev->pLeft && pPrev->pRight==0 );
120193 pPrev->pRight = p;
120308 sqlite3Fts3ExprFree(p->pRight);
120396 if( zBuf ) zBuf = exprToString(pExpr->pRight, zBuf);
122449 SegmentNode *pRight; /* Pointer to right-sibling */
124079 pTree->pRight = pNew;
124145 for(pIter=pTree->pLeftmost; pIter && rc==SQLITE_OK; pIter=pIter->pRight){
124172 SegmentNode *pRight = p->pRight;
124176 assert( pRight==0 || p->zMalloc==0 );
124179 p = pRight;
125677 assert( pExpr->pLeft && pExpr->pRight );
125680 rc = fts3ExprIterate2(pExpr->pRight, piPhrase, x, pCtx);
129023 RtreeNode *pRight,
129104 RtreeNode *pTarget = (ii<iBestSplit)?pLeft:pRight;
129125 RtreeNode *pRight,
129145 nodeInsertCell(pRtree, pRight, &aCell[iRightSeed]);
129156 if( (RTREE_MINCELLS(pRtree)-NCELL(pRight)==i)
129159 nodeInsertCell(pRtree, pRight, pNext);
129206 RtreeNode *pRight = 0;
129229 pRight = nodeNew(pRtree, pNode);
129236 pRight = nodeNew(pRtree, pLeft->pParent);
129240 if( !pLeft || !pRight ){
129246 memset(pRight->zData, 0, pRtree->iNodeSize);
129248 rc = AssignCells(pRtree, aCell, nCell, pLeft, pRight, &leftbbox, &rightbbox);
129254 ** nodeWrite(). Node pRight always needs a node number, as it was created
129258 if( SQLITE_OK!=(rc = nodeWrite(pRtree, pRight))
129264 rightbbox.iRowid = pRight->iNode;
129284 if( (rc = rtreeInsertCell(pRtree, pRight->pParent, &rightbbox, iHeight+1)) ){
129288 for(i=0; i<NCELL(pRight); i++){
129289 i64 iRowid = nodeGetRowid(pRtree, pRight, i);
129290 rc = updateMapping(pRtree, iRowid, pRight, iHeight);
129311 rc = nodeRelease(pRtree, pRight);
129312 pRight = 0;
129320 nodeRelease(pRtree, pRight);