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 */
49522 if( pIdx->tnum==(int)iRoot ){
49523 iTab = pIdx->pTable->tnum;
71452 sqlite3VdbeChangeP2(v, 2, pTab->tnum);
71458 ** parameter of the other to pTab->tnum. */
71460 sqlite3VdbeChangeP2(v, 3 + flags, pTab->tnum);
75867 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
75909 sqlite3VdbeAddOp4(v, OP_OpenRead, iTab, pIdx->tnum, iDb,
79443 aRoot[i] = pStat->tnum;
79732 if( pTab->tnum==0 ){
79752 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
79774 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIdx->tnum, iDb,
79944 sqlite3VdbeAddOp3(v, OP_OpenRead, iIdxCur, pTab->tnum, iDb);
82700 p->tnum = db->init.newTnum;
83077 if( pTab->tnum==iFrom ){
83078 pTab->tnum = iTo;
83084 if( pIdx->tnum==iFrom ){
83085 pIdx->tnum = iTo;
83129 destroyRootPage(pParse, pTab->tnum, iDb);
83131 destroyRootPage(pParse, pIdx->tnum, iDb);
83150 int iTab = pTab->tnum;
83161 int iIdx = pIdx->tnum;
83531 ** the root page number of the index is taken from pIndex->tnum.
83540 int tnum; /* Root page of index */
83558 sqlite3TableLock(pParse, iDb, pTab->tnum, 1, pTab->zName);
83563 tnum = memRootPage;
83565 tnum = pIndex->tnum;
83566 sqlite3VdbeAddOp2(v, OP_Clear, tnum, iDb);
83569 sqlite3VdbeAddOp4(v, OP_OpenWrite, iIdx, tnum, iDb,
84027 pIndex->tnum = db->init.newTnum;
84230 destroyRootPage(pParse, pIndex->tnum, iDb);
85825 sqlite3VdbeAddOp4(v, OP_Clear, pTab->tnum, iDb, memCnt,
85829 sqlite3VdbeAddOp2(v, OP_Clear, pIdx->tnum, iDb);
85892 sqlite3VdbeAddOp2(v, OP_Close, iCur + i, pIdx->tnum);
88121 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
88526 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
88993 sqlite3TableLock(p, iDb, pTab->tnum, (opcode==OP_OpenWrite)?1:0, pTab->zName);
88994 sqlite3VdbeAddOp3(v, opcode, iCur, pTab->tnum, iDb);
89111 int tnum = pOp->p2;
89112 if( tnum==pTab->tnum ){
89116 if( tnum==pIndex->tnum ){
90466 sqlite3VdbeAddOp4(v, op, i+baseCur, pIdx->tnum, iDb,
90777 sqlite3VdbeAddOp4(v, OP_OpenRead, iSrc, pSrcIdx->tnum, iDbSrc,
90781 sqlite3VdbeAddOp4(v, OP_OpenWrite, iDest, pDestIdx->tnum, iDbDest,
93221 sqlite3VdbeAddOp2(v, OP_Integer, pTab->tnum, 2+cnt);
93224 sqlite3VdbeAddOp2(v, OP_Integer, pIdx->tnum, 2+cnt);
93756 }else if( sqlite3GetInt32(argv[1], &pIndex->tnum)==0 ){
98875 int iRoot = pTab->tnum; /* Root page of scanned b-tree */
98878 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
98899 iRoot = pBest->tnum;
100802 sqlite3VdbeAddOp4(v, OP_OpenWrite, iCur+i+1, pIdx->tnum, iDb,
107564 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
107577 sqlite3VdbeAddOp4(v, OP_OpenRead, iIdxCur, pIx->tnum, iDb,