Home | History | Annotate | Download | only in dist

Lines Matching refs:tnum

10163 ** Table.tnum is the page number for the root BTree page of the table in the
10168 ** when the VDBE cursor to the table is closed. In this case Table.tnum
10180 int tnum; /* Root BTree node for this table (see note above) */
10382 int tnum; /* Page containing root of this index in database file */
49550 if( pIdx->tnum==(int)iRoot ){
49551 iTab = pIdx->pTable->tnum;
71480 sqlite3VdbeChangeP2(v, 2, pTab->tnum);
71486 ** parameter of the other to pTab->tnum. */
71488 sqlite3VdbeChangeP2(v, 3 + flags, pTab->tnum);
75903 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
75945 sqlite3VdbeAddOp4(v, OP_OpenRead, iTab, pIdx->tnum, iDb,
79479 aRoot[i] = pStat->tnum;
79768 if( pTab->tnum==0 ){
79788 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
79810 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIdx->tnum, iDb,
79980 sqlite3VdbeAddOp3(v, OP_OpenRead, iIdxCur, pTab->tnum, iDb);
82736 p->tnum = db->init.newTnum;
83113 if( pTab->tnum==iFrom ){
83114 pTab->tnum = iTo;
83120 if( pIdx->tnum==iFrom ){
83121 pIdx->tnum = iTo;
83165 destroyRootPage(pParse, pTab->tnum, iDb);
83167 destroyRootPage(pParse, pIdx->tnum, iDb);
83186 int iTab = pTab->tnum;
83197 int iIdx = pIdx->tnum;
83567 ** the root page number of the index is taken from pIndex->tnum.
83576 int tnum; /* Root page of index */
83594 sqlite3TableLock(pParse, iDb, pTab->tnum, 1, pTab->zName);
83599 tnum = memRootPage;
83601 tnum = pIndex->tnum;
83602 sqlite3VdbeAddOp2(v, OP_Clear, tnum, iDb);
83605 sqlite3VdbeAddOp4(v, OP_OpenWrite, iIdx, tnum, iDb,
84063 pIndex->tnum = db->init.newTnum;
84266 destroyRootPage(pParse, pIndex->tnum, iDb);
85861 sqlite3VdbeAddOp4(v, OP_Clear, pTab->tnum, iDb, memCnt,
85865 sqlite3VdbeAddOp2(v, OP_Clear, pIdx->tnum, iDb);
85928 sqlite3VdbeAddOp2(v, OP_Close, iCur + i, pIdx->tnum);
88157 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
88562 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
89029 sqlite3TableLock(p, iDb, pTab->tnum, (opcode==OP_OpenWrite)?1:0, pTab->zName);
89030 sqlite3VdbeAddOp3(v, opcode, iCur, pTab->tnum, iDb);
89147 int tnum = pOp->p2;
89148 if( tnum==pTab->tnum ){
89152 if( tnum==pIndex->tnum ){
90502 sqlite3VdbeAddOp4(v, op, i+baseCur, pIdx->tnum, iDb,
90813 sqlite3VdbeAddOp4(v, OP_OpenRead, iSrc, pSrcIdx->tnum, iDbSrc,
90817 sqlite3VdbeAddOp4(v, OP_OpenWrite, iDest, pDestIdx->tnum, iDbDest,
93257 sqlite3VdbeAddOp2(v, OP_Integer, pTab->tnum, 2+cnt);
93260 sqlite3VdbeAddOp2(v, OP_Integer, pIdx->tnum, 2+cnt);
93792 }else if( sqlite3GetInt32(argv[1], &pIndex->tnum)==0 ){
98911 int iRoot = pTab->tnum; /* Root page of scanned b-tree */
98914 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
98935 iRoot = pBest->tnum;
100838 sqlite3VdbeAddOp4(v, OP_OpenWrite, iCur+i+1, pIdx->tnum, iDb,
107600 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
107613 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIx->tnum, iDb,