Lines Matching refs:iTab
8262 SQLITE_PRIVATE int sqlite3BtreeLockTable(Btree *pBtree, int iTab, u8 isWriteLock);
49492 Pgno iTab = 0;
49523 iTab = pIdx->pTable->tnum;
49527 iTab = iRoot;
49530 /* Search for the required lock. Either a write-lock on root-page iTab, a
49532 ** read-lock on iTab will suffice. Return 1 if any of these are found. */
49535 && (pLock->iTable==iTab || (pLock->eLock==WRITE_LOCK && pLock->iTable==1))
49582 ** (READ_LOCK or WRITE_LOCK) on the table with root-page iTab. Return
49586 static int querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock){
49593 assert( !(p->db->flags&SQLITE_ReadUncommitted)||eLock==WRITE_LOCK||iTab==1 );
49627 if( pIter->pBtree!=p && pIter->iTable==iTab && pIter->eLock!=eLock ){
57513 ** Obtain a lock on the table whose root page is iTab. The
57517 SQLITE_PRIVATE int sqlite3BtreeLockTable(Btree *p, int iTab, u8 isWriteLock){
57526 rc = querySharedCacheTableLock(p, iTab, lockType);
57528 rc = setSharedCacheTableLock(p, iTab, lockType);
75838 int iTab = pParse->nTab++; /* Cursor of the RHS table */
75879 sqlite3OpenTable(pParse, iTab, iDb, pTab, OP_OpenRead);
75909 sqlite3VdbeAddOp4(v, OP_OpenRead, iTab, pIdx->tnum, iDb,
75944 pX->iTable = iTab;
76404 SQLITE_PRIVATE void sqlite3ExprCacheStore(Parse *pParse, int iTab, int iCol, int iReg){
76427 if( p->iReg && p->iTable==iTab && p->iColumn==iCol ){
76435 assert( p->iReg==0 || p->iTable!=iTab || p->iColumn!=iCol );
76443 p->iTable = iTab;
76464 p->iTable = iTab;
81239 int iTab; /* The root page of the table to be locked */
81247 ** The table to be locked has root page iTab and is found in database iDb.
81257 int iTab, /* Root page number of the table to be locked */
81269 if( p->iDb==iDb && p->iTab==iTab ){
81281 p->iTab = iTab;
81304 sqlite3VdbeAddOp4(pVdbe, OP_TableLock, p1, p->iTab, p->isWriteLock,
83150 int iTab = pTab->tnum;
83157 if( iDestroyed==0 || iTab<iDestroyed ){
83158 iLargest = iTab;
83535 int iTab = pParse->nTab++; /* Btree cursor used for pTab */
83580 iSorter = iTab;
83585 sqlite3OpenTable(pParse, iTab, iDb, pTab, OP_OpenRead);
83586 addr1 = sqlite3VdbeAddOp2(v, OP_Rewind, iTab, 0);
83590 sqlite3GenerateIndexKey(pParse, pIndex, iTab, regRecord, 1);
83592 sqlite3VdbeAddOp2(v, OP_Next, iTab, addr1+1);
83610 regIdxKey = sqlite3GenerateIndexKey(pParse, pIndex, iTab, regRecord, 1);
83637 sqlite3VdbeAddOp1(v, OP_Close, iTab);
94980 ** form a distinct entry. iTab is a sorting index that holds previously
94981 ** seen combinations of the N values. A new entry is made in iTab
94989 int iTab, /* A sorting index used to test for distinctness */
94999 sqlite3VdbeAddOp4Int(v, OP_Found, iTab, addrRepeat, iMem, N);
95001 sqlite3VdbeAddOp2(v, OP_IdxInsert, iTab, r1);
95389 int iTab;
95399 iTab = pOrderBy->iECursor;
95412 addr = 1 + sqlite3VdbeAddOp2(v, OP_SorterSort, iTab, addrBreak);
95414 sqlite3VdbeAddOp2(v, OP_SorterData, iTab, regSortOut);
95418 addr = 1 + sqlite3VdbeAddOp2(v, OP_Sort, iTab, addrBreak);
95420 sqlite3VdbeAddOp3(v, OP_Column, iTab, pOrderBy->nExpr+1, regRow);
95475 sqlite3VdbeAddOp2(v, OP_SorterNext, iTab, addr);
95477 sqlite3VdbeAddOp2(v, OP_Next, iTab, addr);
106025 int iTab;
106031 iTab = pX->iTable;
106032 sqlite3VdbeAddOp2(v, OP_Rewind, iTab, 0);
106044 pIn->iCur = iTab;
106046 pIn->addrInTop = sqlite3VdbeAddOp2(v, OP_Rowid, iTab, iReg);
106048 pIn->addrInTop = sqlite3VdbeAddOp3(v, OP_Column, iTab, 0, iReg);