pTrigger 11534 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of triggers stored in pSchema */ pTrigger 12457 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* Trigger this program was coded from */ pTrigger 93178 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; pTrigger 93195 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggerList(pParse, pTab); pTrigger 93196 ext/sqlite3/libsqlite/sqlite3.c while( pTrigger ){ pTrigger 93197 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->pSchema==pTab->pSchema || pTrigger 93198 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pSchema==db->aDb[1].pSchema ); pTrigger 93199 ext/sqlite3/libsqlite/sqlite3.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 93200 ext/sqlite3/libsqlite/sqlite3.c pTrigger = pTrigger->pNext; pTrigger 95839 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of table triggers, if required */ pTrigger 95861 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 95878 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3IsReadOnly(pParse, pTab, (pTrigger?1:0)) ){ pTrigger 95889 ext/sqlite3/libsqlite/sqlite3.c assert(!isView || pTrigger); pTrigger 95946 ext/sqlite3/libsqlite/sqlite3.c if( rcauth==SQLITE_OK && pWhere==0 && !pTrigger && !IsVirtual(pTab) pTrigger 96094 ext/sqlite3/libsqlite/sqlite3.c sqlite3GenerateRowDelete(pParse, pTab, pTrigger, iDataCur, iIdxCur, pTrigger 96149 ext/sqlite3/libsqlite/sqlite3.c #ifdef pTrigger pTrigger 96208 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3FkRequired(pParse, pTab, 0, 0) || pTrigger ){ pTrigger 96216 ext/sqlite3/libsqlite/sqlite3.c pParse, pTrigger, 0, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onconf pTrigger 96235 ext/sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 96273 ext/sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 99048 ext/sqlite3/libsqlite/sqlite3.c Trigger *p = pTop->pTriggerPrg->pTrigger; pTrigger 99382 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* Trigger definition to return */ pTrigger 99386 ext/sqlite3/libsqlite/sqlite3.c pTrigger = pFKey->apTrigger[iAction]; pTrigger 99388 ext/sqlite3/libsqlite/sqlite3.c if( action!=OE_None && !pTrigger ){ pTrigger 99502 ext/sqlite3/libsqlite/sqlite3.c pTrigger = (Trigger *)sqlite3DbMallocZero(db, pTrigger 99507 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger ){ pTrigger 99508 ext/sqlite3/libsqlite/sqlite3.c pStep = pTrigger->step_list = (TriggerStep *)&pTrigger[1]; pTrigger 99517 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 99529 ext/sqlite3/libsqlite/sqlite3.c fkTriggerDelete(db, pTrigger); pTrigger 99546 ext/sqlite3/libsqlite/sqlite3.c pStep->pTrig = pTrigger; pTrigger 99547 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pSchema = pTab->pSchema; pTrigger 99548 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 99549 ext/sqlite3/libsqlite/sqlite3.c pFKey->apTrigger[iAction] = pTrigger; pTrigger 99550 ext/sqlite3/libsqlite/sqlite3.c pTrigger->op = (pChanges ? TK_UPDATE : TK_DELETE); pTrigger 99553 ext/sqlite3/libsqlite/sqlite3.c return pTrigger; pTrigger 100112 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 100155 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_INSERT, 0, &tmask); pTrigger 100166 ext/sqlite3/libsqlite/sqlite3.c assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); pTrigger 100186 ext/sqlite3/libsqlite/sqlite3.c sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb); pTrigger 100199 ext/sqlite3/libsqlite/sqlite3.c assert( !pTrigger ); pTrigger 100297 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger || readsTable(pParse, iDb, pTab) ){ pTrigger 100484 ext/sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_BEFORE, pTrigger 100608 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger ){ pTrigger 100610 ext/sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_AFTER, pTrigger 100669 ext/sqlite3/libsqlite/sqlite3.c #ifdef pTrigger pTrigger 100961 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; pTrigger 100963 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 100965 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger || sqlite3FkRequired(pParse, pTab, 0, 0) ){ pTrigger 100967 ext/sqlite3/libsqlite/sqlite3.c sqlite3GenerateRowDelete(pParse, pTab, pTrigger, iDataCur, iIdxCur, pTrigger 101135 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; pTrigger 101139 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 101141 ext/sqlite3/libsqlite/sqlite3.c sqlite3GenerateRowDelete(pParse, pTab, pTrigger, iDataCur, iIdxCur, pTrigger 112340 ext/sqlite3/libsqlite/sqlite3.c pTrig->pNext = (pList ? pList : pTab->pTrigger); pTrigger 112346 ext/sqlite3/libsqlite/sqlite3.c return (pList ? pList : pTab->pTrigger); pTrigger 112369 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; /* The new trigger */ pTrigger 112516 ext/sqlite3/libsqlite/sqlite3.c pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); pTrigger 112517 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger==0 ) goto trigger_cleanup; pTrigger 112518 ext/sqlite3/libsqlite/sqlite3.c pTrigger->zName = zName; pTrigger 112520 ext/sqlite3/libsqlite/sqlite3.c pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); pTrigger 112521 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pSchema = db->aDb[iDb].pSchema; pTrigger 112522 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 112523 ext/sqlite3/libsqlite/sqlite3.c pTrigger->op = (u8)op; pTrigger 112524 ext/sqlite3/libsqlite/sqlite3.c pTrigger->tr_tm = tr_tm==TK_BEFORE ? TRIGGER_BEFORE : TRIGGER_AFTER; pTrigger 112525 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 112526 ext/sqlite3/libsqlite/sqlite3.c pTrigger->pColumns = sqlite3IdListDup(db, pColumns); pTrigger 112528 ext/sqlite3/libsqlite/sqlite3.c pParse->pNewTrigger = pTrigger; pTrigger 112536 ext/sqlite3/libsqlite/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 112538 ext/sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==pTrigger ); pTrigger 112609 ext/sqlite3/libsqlite/sqlite3.c pLink->pNext = pTab->pTrigger; pTrigger 112610 ext/sqlite3/libsqlite/sqlite3.c pTab->pTrigger = pLink; pTrigger 112744 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger==0 ) return; pTrigger 112745 ext/sqlite3/libsqlite/sqlite3.c sqlite3DeleteTriggerStep(db, pTrigger->step_list); pTrigger 112746 ext/sqlite3/libsqlite/sqlite3.c sqlite3DbFree(db, pTrigger->zName); pTrigger 112747 ext/sqlite3/libsqlite/sqlite3.c sqlite3DbFree(db, pTrigger->table); pTrigger 112748 ext/sqlite3/libsqlite/sqlite3.c sqlite3ExprDelete(db, pTrigger->pWhen); pTrigger 112749 ext/sqlite3/libsqlite/sqlite3.c sqlite3IdListDelete(db, pTrigger->pColumns); pTrigger 112750 ext/sqlite3/libsqlite/sqlite3.c sqlite3DbFree(db, pTrigger); pTrigger 112762 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; pTrigger 112781 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3HashFind(&(db->aDb[j].pSchema->trigHash), zName); pTrigger 112782 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger ) break; pTrigger 112784 ext/sqlite3/libsqlite/sqlite3.c if( !pTrigger ){ pTrigger 112793 ext/sqlite3/libsqlite/sqlite3.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 112804 ext/sqlite3/libsqlite/sqlite3.c return sqlite3HashFind(&pTrigger->pTabSchema->tblHash, pTrigger->table); pTrigger 112817 ext/sqlite3/libsqlite/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema); pTrigger 112819 ext/sqlite3/libsqlite/sqlite3.c pTable = tableOfTrigger(pTrigger); pTrigger 112821 ext/sqlite3/libsqlite/sqlite3.c assert( pTable->pSchema==pTrigger->pSchema || iDb==1 ); pTrigger 112828 ext/sqlite3/libsqlite/sqlite3.c if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) || pTrigger 112856 ext/sqlite3/libsqlite/sqlite3.c sqlite3VdbeChangeP4(v, base+1, pTrigger->zName, P4_TRANSIENT); pTrigger 112860 ext/sqlite3/libsqlite/sqlite3.c sqlite3VdbeAddOp4(v, OP_DropTrigger, iDb, 0, 0, pTrigger->zName, 0); pTrigger 112871 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; pTrigger 112876 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3HashInsert(pHash, zName, 0); pTrigger 112877 ext/sqlite3/libsqlite/sqlite3.c if( ALWAYS(pTrigger) ){ pTrigger 112878 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger->pSchema==pTrigger->pTabSchema ){ pTrigger 112879 ext/sqlite3/libsqlite/sqlite3.c Table *pTab = tableOfTrigger(pTrigger); pTrigger 112881 ext/sqlite3/libsqlite/sqlite3.c for(pp=&pTab->pTrigger; *pp!=pTrigger; pp=&((*pp)->pNext)); pTrigger 112884 ext/sqlite3/libsqlite/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 113101 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 113114 ext/sqlite3/libsqlite/sqlite3.c pPrg->pTrigger = pTrigger; pTrigger 113128 ext/sqlite3/libsqlite/sqlite3.c pSubParse->zAuthContext = pTrigger->zName; pTrigger 113129 ext/sqlite3/libsqlite/sqlite3.c pSubParse->eTriggerOp = pTrigger->op; pTrigger 113135 ext/sqlite3/libsqlite/sqlite3.c pTrigger->zName, onErrorText(orconf), pTrigger 113136 ext/sqlite3/libsqlite/sqlite3.c (pTrigger->tr_tm==TRIGGER_BEFORE ? "BEFORE" : "AFTER"), pTrigger 113137 ext/sqlite3/libsqlite/sqlite3.c (pTrigger->op==TK_UPDATE ? "UPDATE" : ""), pTrigger 113138 ext/sqlite3/libsqlite/sqlite3.c (pTrigger->op==TK_INSERT ? "INSERT" : ""), pTrigger 113139 ext/sqlite3/libsqlite/sqlite3.c (pTrigger->op==TK_DELETE ? "DELETE" : ""), pTrigger 113144 ext/sqlite3/libsqlite/sqlite3.c sqlite3MPrintf(db, "-- TRIGGER %s", pTrigger->zName), P4_DYNAMIC pTrigger 113151 ext/sqlite3/libsqlite/sqlite3.c if( pTrigger->pWhen ){ pTrigger 113152 ext/sqlite3/libsqlite/sqlite3.c pWhen = sqlite3ExprDup(db, pTrigger->pWhen, 0); pTrigger 113163 ext/sqlite3/libsqlite/sqlite3.c codeTriggerProgram(pSubParse, pTrigger->step_list, orconf); pTrigger 113170 ext/sqlite3/libsqlite/sqlite3.c VdbeComment((v, "End: %s.%s", pTrigger->zName, onErrorText(orconf))); pTrigger 113179 ext/sqlite3/libsqlite/sqlite3.c pProgram->token = (void *)pTrigger; pTrigger 113208 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 113215 ext/sqlite3/libsqlite/sqlite3.c pPrg && (pPrg->pTrigger!=pTrigger || pPrg->orconf!=orconf); pTrigger 113221 ext/sqlite3/libsqlite/sqlite3.c pPrg = codeRowTrigger(pParse, pTrigger, pTab, orconf); pTrigger 113322 ext/sqlite3/libsqlite/sqlite3.c for(p=pTrigger; p; p=p->pNext){ pTrigger 113381 ext/sqlite3/libsqlite/sqlite3.c for(p=pTrigger; p; p=p->pNext){ pTrigger 113525 ext/sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 113559 ext/sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_UPDATE, pChanges, &tmask); pTrigger 113561 ext/sqlite3/libsqlite/sqlite3.c assert( pTrigger || tmask==0 ); pTrigger 113712 ext/sqlite3/libsqlite/sqlite3.c if( chngPk || pTrigger || hasFK ){ pTrigger 113716 ext/sqlite3/libsqlite/sqlite3.c if( chngKey || pTrigger || hasFK ){ pTrigger 113859 ext/sqlite3/libsqlite/sqlite3.c assert( chngKey || pTrigger || hasFK || regOldRowid==regNewRowid ); pTrigger 113867 ext/sqlite3/libsqlite/sqlite3.c if( chngPk || hasFK || pTrigger ){ pTrigger 113870 ext/sqlite3/libsqlite/sqlite3.c pTrigger, pChanges, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onError pTrigger 113902 ext/sqlite3/libsqlite/sqlite3.c pParse, pTrigger, pChanges, 1, TRIGGER_BEFORE, pTab, onError pTrigger 113932 ext/sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 114016 ext/sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 114074 ext/sqlite3/libsqlite/sqlite3.c #ifdef pTrigger