Lines Matching refs:iRoot
68779 ** table with root page iRoot. Return 1 if it does and 0 if not.
68781 ** For example, when writing to a table with root-page iRoot via
68784 ** assert( hasSharedCacheTableLock(pBtree, iRoot, 0, WRITE_LOCK) );
68793 ** Instead of a lock on the table/index rooted at page iRoot, the caller may
68799 Pgno iRoot, /* Root page of b-tree */
68800 int isIndex, /* True if iRoot is the root of an index b-tree */
68835 if( pIdx->tnum==iRoot ){
68847 iTab = iRoot;
68872 ** table or index rooted at iRoot because other shared connections are
68877 ** the iRoot table. Except, if the other Btree object has the
68882 ** rooted at page iRoot, one should call:
68884 ** assert( !hasReadConflicts(pBtree, iRoot) );
68886 static int hasReadConflicts(Btree *pBtree, Pgno iRoot){
68889 if( p->pgnoRoot==iRoot
69357 ** the table with root-page iRoot. "Saving the cursor position" means that
69376 static int saveAllCursors(BtShared *pBt, Pgno iRoot, BtCursor *pExcept){
69381 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ) break;
69383 if( p ) return saveCursorsOnList(p, iRoot, pExcept);
69395 Pgno iRoot, /* Only save cursor with this iRoot. Save all if zero */
69399 if( p!=pExcept && (0==iRoot || p->pgnoRoot==iRoot) ){
102754 Pgno iRoot = (Pgno)pOp->p2;
102760 if( !IsVirtual(pTab) && pTab->tnum==iRoot ){
102769 if( pIdx->tnum==iRoot ){
145982 Pgno iRoot = pTab->tnum; /* Root page of scanned b-tree */
146009 iRoot = pBest->tnum;
146014 sqlite3VdbeAddOp4Int(v, OP_OpenRead, iCsr, (int)iRoot, iDb, 1);
193989 int iRoot; /* Index of root in pWriter->aNodeWriter */
193993 /* Set iRoot to the index in pWriter->aNodeWriter[] of the output segment
193994 ** root node. If the segment fits entirely on a single leaf node, iRoot
193995 ** will be set to 0. If the root node is the parent of the leaves, iRoot
193997 for(iRoot=FTS_MAX_APPENDABLE_HEIGHT-1; iRoot>=0; iRoot--){
193998 NodeWriter *pNode = &pWriter->aNodeWriter[iRoot];
194007 if( iRoot<0 ) return;
194024 if( iRoot==0 ){
194033 iRoot = 1;
194035 pRoot = &pWriter->aNodeWriter[iRoot];
194038 for(i=0; i<iRoot; i++){
199343 u32 iRoot, /* Begin the search at this node */
199350 JsonNode *pRoot = &pParse->aNode[iRoot];
199380 return jsonLookupStep(pParse, iRoot+j+1, &zPath[i], pApnd, pzErr);
199387 iRoot += pRoot->u.iAppend;
199388 pRoot = &pParse->aNode[iRoot];
199400 pRoot = &pParse->aNode[iRoot];
199402 pRoot->u.iAppend = iStart - iRoot;
199419 int iBase = iRoot;
199462 iRoot += pRoot->u.iAppend;
199463 pRoot = &pParse->aNode[iRoot];
199467 return jsonLookupStep(pParse, iRoot+j, zPath, pApnd, pzErr);
199476 pRoot = &pParse->aNode[iRoot];
199478 pRoot->u.iAppend = iStart - iRoot;
199868 u32 iRoot;
199880 iRoot = iTarget;
199924 assert( pParse->aNode[iRoot].eU==0 || pParse->aNode[iRoot].eU==2 );
199925 testcase( pParse->aNode[iRoot].eU==2 );
199926 pParse->aNode[iRoot].jnFlags |= JNODE_APPEND;
199927 VVA( pParse->aNode[iRoot].eU = 2 );
199928 pParse->aNode[iRoot].u.iAppend = iStart - iRoot;
199929 iRoot = iStart;
213480 u32 iRoot = rbuGetU32(&aBuf[52]) ? 1 : 0;
213481 rbuPutU32(&aBuf[52], iRoot); /* largest root page number */
214770 u32 iRoot = (u32)sqlite3_column_int64(pCsr->pStmt, 1);
214776 rc = statGetPage(pBt, iRoot, &pCsr->aPage[0]);
214777 pCsr->aPage[0].iPgno = iRoot;