Lines Matching refs:pToplevel
10328 Parse *pToplevel; /* Parse structure for main program (or NULL) */
10946 # define sqlite3ParseToplevel(p) ((p)->pToplevel ? (p)->pToplevel : (p))
74915 Parse *pToplevel = sqlite3ParseToplevel(pParse);
74921 for(i=0; i<pToplevel->nTableLock; i++){
74922 p = &pToplevel->aTableLock[i];
74929 nBytes = sizeof(TableLock) * (pToplevel->nTableLock+1);
74930 pToplevel->aTableLock =
74931 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes);
74932 if( pToplevel->aTableLock ){
74933 p = &pToplevel->aTableLock[pToplevel->nTableLock++];
74939 pToplevel->nTableLock = 0;
74940 pToplevel->db->mallocFailed = 1;
78286 Parse *pToplevel = sqlite3ParseToplevel(pParse);
78288 if( pToplevel->cookieGoto==0 ){
78289 Vdbe *v = sqlite3GetVdbe(pToplevel);
78291 pToplevel->cookieGoto = sqlite3VdbeAddOp2(v, OP_Goto, 0, 0)+1;
78294 sqlite3 *db = pToplevel->db;
78301 if( (pToplevel->cookieMask & mask)==0 ){
78302 pToplevel->cookieMask |= mask;
78303 pToplevel->cookieValue[iDb] = db->aDb[iDb].pSchema->schema_cookie;
78305 sqlite3OpenTempDatabase(pToplevel);
78325 Parse *pToplevel = sqlite3ParseToplevel(pParse);
78327 pToplevel->writeMask |= 1<<iDb;
78328 pToplevel->isMultiWrite |= setStatement;
78339 Parse *pToplevel = sqlite3ParseToplevel(pParse);
78340 pToplevel->isMultiWrite = 1;
78360 Parse *pToplevel = sqlite3ParseToplevel(pParse);
78361 pToplevel->mayAbort = 1;
81638 if( !pFKey->isDeferred && !pParse->pToplevel && !pParse->isMultiWrite ){
82011 if( !pFKey->isDeferred && !pParse->pToplevel && !pParse->isMultiWrite ){
82619 Parse *pToplevel = sqlite3ParseToplevel(pParse);
82622 pInfo = pToplevel->pAinc;
82627 pInfo->pNext = pToplevel->pAinc;
82628 pToplevel->pAinc = pInfo;
82631 pToplevel->nMem++; /* Register to hold name of table */
82632 pInfo->regCtr = ++pToplevel->nMem; /* Max rowid register */
82633 pToplevel->nMem++; /* Rowid in sqlite_sequence */
90723 Parse *pToplevel = sqlite3ParseToplevel(pParse);
90724 pTabToDel->pNextZombie = pToplevel->pZombieTab;
90725 pToplevel->pZombieTab = pTabToDel;
93152 assert( pParse->pTriggerTab && pParse->pToplevel );
93295 pSubParse->pToplevel = pTop;
95498 Parse *pToplevel = sqlite3ParseToplevel(pParse);
95503 for(i=0; i<pToplevel->nVtabLock; i++){
95504 if( pTab==pToplevel->apVtabLock[i] ) return;
95506 n = (pToplevel->nVtabLock+1)*sizeof(pToplevel->apVtabLock[0]);
95507 apVtabLock = sqlite3_realloc(pToplevel->apVtabLock, n);
95509 pToplevel->apVtabLock = apVtabLock;
95510 pToplevel->apVtabLock[pToplevel->nVtabLock++] = pTab;
95512 pToplevel->db->mallocFailed = 1;