Lines Matching defs:tnum
8715 ** Table.tnum is the page number for the root BTree page of the table in the
8720 ** when the VDBE cursor to the table is closed. In this case Table.tnum
8733 int tnum; /* Root BTree node for this table (see note above) */
8934 int tnum; /* Page containing root of this index in database file */
37713 if( pIdx->tnum==(int)iRoot ){
37714 iTab = pIdx->pTable->tnum;
58224 sqlite3VdbeChangeP2(v, 2, pTab->tnum);
58229 ** parameter of the other to pTab->tnum. */
58231 sqlite3VdbeChangeP2(v, 3 + flags, pTab->tnum);
61688 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
61734 sqlite3VdbeAddOp4(v, OP_OpenRead, iTab, pIdx->tnum, iDb,
64851 aRoot[i] = pStat->tnum;
64923 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
64936 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIdx->tnum, iDb,
67704 p->tnum = db->init.newTnum;
68075 if( pTab->tnum==iFrom ){
68076 pTab->tnum = iTo;
68082 if( pIdx->tnum==iFrom ){
68083 pIdx->tnum = iTo;
68127 destroyRootPage(pParse, pTab->tnum, iDb);
68129 destroyRootPage(pParse, pIdx->tnum, iDb);
68148 int iTab = pTab->tnum;
68159 int iIdx = pIdx->tnum;
68497 ** the root page number of the index is taken from pIndex->tnum.
68504 int tnum; /* Root page of index */
68520 sqlite3TableLock(pParse, iDb, pTab->tnum, 1, pTab->zName);
68525 tnum = memRootPage;
68527 tnum = pIndex->tnum;
68528 sqlite3VdbeAddOp2(v, OP_Clear, tnum, iDb);
68531 sqlite3VdbeAddOp4(v, OP_OpenWrite, iIdx, tnum, iDb,
68939 pIndex->tnum = db->init.newTnum;
69146 destroyRootPage(pParse, pIndex->tnum, iDb);
70718 sqlite3VdbeAddOp4(v, OP_Clear, pTab->tnum, iDb, memCnt,
70722 sqlite3VdbeAddOp2(v, OP_Clear, pIdx->tnum, iDb);
70782 sqlite3VdbeAddOp2(v, OP_Close, iCur + i, pIdx->tnum);
72915 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
73292 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
73759 sqlite3TableLock(p, iDb, pTab->tnum, (opcode==OP_OpenWrite)?1:0, pTab->zName);
73760 sqlite3VdbeAddOp3(v, opcode, iCur, pTab->tnum, iDb);
73877 int tnum = pOp->p2;
73878 if( tnum==pTab->tnum ){
73882 if( tnum==pIndex->tnum ){
75215 sqlite3VdbeAddOp4(v, op, i+baseCur, pIdx->tnum, iDb,
75516 sqlite3VdbeAddOp4(v, OP_OpenRead, iSrc, pSrcIdx->tnum, iDbSrc,
75520 sqlite3VdbeAddOp4(v, OP_OpenWrite, iDest, pDestIdx->tnum, iDbDest,
77771 sqlite3VdbeAddOp2(v, OP_Integer, pTab->tnum, 2+cnt);
77774 sqlite3VdbeAddOp2(v, OP_Integer, pIdx->tnum, 2+cnt);
78235 }else if( sqlite3GetInt32(argv[1], &pIndex->tnum)==0 ){
83048 int iRoot = pTab->tnum; /* Root page of scanned b-tree */
83051 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
83070 iRoot = pBest->tnum;
84927 sqlite3VdbeAddOp4(v, OP_OpenWrite, iCur+i+1, pIdx->tnum, iDb,
90413 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
90422 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIx->tnum, iDb,