Lines Matching refs:tnum

10927 ** Table.tnum is the page number for the root BTree page of the table in the
10932 ** when the VDBE cursor to the table is closed. In this case Table.tnum
10949 int tnum; /* Root BTree node for this table (see note above) */
11169 int tnum; /* DB Page containing root of this index */
51736 if( pIdx->tnum==(int)iRoot ){
51737 iTab = pIdx->pTable->tnum;
74827 sqlite3VdbeChangeP2(v, 1, pTab->tnum);
74833 ** parameter of the other to pTab->tnum. */
74835 sqlite3VdbeChangeP2(v, 2 + flags, pTab->tnum);
79865 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
79900 sqlite3VdbeAddOp3(v, OP_OpenRead, iTab, pIdx->tnum, iDb);
83659 aRoot[i] = pStat->tnum;
84415 if( pTab->tnum==0 ){
84438 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
84508 sqlite3VdbeAddOp3(v, OP_OpenRead, iIdxCur, pIdx->tnum, iDb);
87741 ** (3) Set the Index.tnum of the PRIMARY KEY Index object in the
87805 pPk->tnum = pTab->tnum;
87899 p->tnum = db->init.newTnum;
88308 if( pTab->tnum==iFrom ){
88309 pTab->tnum = iTo;
88315 if( pIdx->tnum==iFrom ){
88316 pIdx->tnum = iTo;
88360 destroyRootPage(pParse, pTab->tnum, iDb);
88362 destroyRootPage(pParse, pIdx->tnum, iDb);
88381 int iTab = pTab->tnum;
88392 int iIdx = pIdx->tnum;
88762 ** the root page number of the index is taken from pIndex->tnum.
88771 int tnum; /* Root page of index */
88787 sqlite3TableLock(pParse, iDb, pTab->tnum, 1, pTab->zName);
88792 tnum = memRootPage;
88794 tnum = pIndex->tnum;
88814 if( memRootPage<0 ) sqlite3VdbeAddOp2(v, OP_Clear, tnum, iDb);
88815 sqlite3VdbeAddOp4(v, OP_OpenWrite, iIdx, tnum, iDb,
89269 pIndex->tnum = db->init.newTnum;
89474 destroyRootPage(pParse, pIndex->tnum, iDb);
91218 sqlite3TableLock(pParse, iDb, pTab->tnum, 1, pTab->zName);
91220 sqlite3VdbeAddOp4(v, OP_Clear, pTab->tnum, iDb, memCnt,
91225 sqlite3VdbeAddOp2(v, OP_Clear, pIdx->tnum, iDb);
93826 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
94373 sqlite3TableLock(pParse, iDb, pTo->tnum, 0, pTo->zName);
94842 sqlite3TableLock(pParse, iDb, pTab->tnum,
94845 sqlite3VdbeAddOp4Int(v, opcode, iCur, pTab->tnum, iDb, pTab->nCol);
94850 assert( pPk->tnum=pTab->tnum );
94851 sqlite3VdbeAddOp3(v, opcode, iCur, pPk->tnum, iDb);
94973 int tnum = pOp->p2;
94974 if( tnum==pTab->tnum ){
94978 if( tnum==pIndex->tnum ){
96452 sqlite3TableLock(pParse, iDb, pTab->tnum, op==OP_OpenWrite, pTab->zName);
96462 sqlite3VdbeAddOp3(v, op, iIdxCur, pIdx->tnum, iDb);
96788 sqlite3TableLock(pParse, iDbDest, pDest->tnum, 1, pDest->zName);
96789 sqlite3TableLock(pParse, iDbSrc, pSrc->tnum, 0, pSrc->zName);
96796 sqlite3VdbeAddOp3(v, OP_OpenRead, iSrc, pSrcIdx->tnum, iDbSrc);
96799 sqlite3VdbeAddOp3(v, OP_OpenWrite, iDest, pDestIdx->tnum, iDbDest);
99897 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
99906 sqlite3TableLock(pParse, iDb, pParent->tnum, 0, pParent->zName);
99912 sqlite3VdbeAddOp3(v, OP_OpenRead, i, pIdx->tnum, iDb);
100079 sqlite3VdbeAddOp2(v, OP_Integer, pTab->tnum, 2+cnt);
100084 sqlite3VdbeAddOp2(v, OP_Integer, pIdx->tnum, 2+cnt);
100701 }else if( sqlite3GetInt32(argv[1], &pIndex->tnum)==0 ){
106631 int iRoot = pTab->tnum; /* Root page of scanned b-tree */
106634 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
106656 iRoot = pBest->tnum;
115108 if( pIndex && pIndex->tnum==0 ){
115167 ** If pProbe->tnum==0, that means pIndex is a fake index used for the
115201 }else if( pProbe->tnum<=0 || (pSrc->jointype & JT_LEFT)!=0 ){
115634 if( pProbe->tnum<=0 ){
117207 sqlite3TableLock(pParse, iDb, pTab->tnum, 0, pTab->zName);
117242 sqlite3VdbeAddOp3(v, op, iIndexCur, pIx->tnum, iDb);