pTrigger 9906 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of triggers stored in pSchema */ pTrigger 10749 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* Trigger this program was coded from */ pTrigger 79415 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; pTrigger 79430 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggerList(pParse, pTab); pTrigger 79431 sqlite3/libsqlite/sqlite3.c while( pTrigger ){ pTrigger 79432 sqlite3/libsqlite/sqlite3.c assert( pTrigger->pSchema==pTab->pSchema || pTrigger 79433 sqlite3/libsqlite/sqlite3.c pTrigger->pSchema==db->aDb[1].pSchema ); pTrigger 79434 sqlite3/libsqlite/sqlite3.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 79435 sqlite3/libsqlite/sqlite3.c pTrigger = pTrigger->pNext; pTrigger 81800 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of table triggers, if required */ pTrigger 81822 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 81839 sqlite3/libsqlite/sqlite3.c if( sqlite3IsReadOnly(pParse, pTab, (pTrigger?1:0)) ){ pTrigger 81850 sqlite3/libsqlite/sqlite3.c assert(!isView || pTrigger); pTrigger 81906 sqlite3/libsqlite/sqlite3.c if( rcauth==SQLITE_OK && pWhere==0 && !pTrigger && !IsVirtual(pTab) pTrigger 81965 sqlite3/libsqlite/sqlite3.c sqlite3GenerateRowDelete(pParse, pTab, iCur, iRowid, count, pTrigger, OE_Default); pTrigger 82011 sqlite3/libsqlite/sqlite3.c #ifdef pTrigger pTrigger 82058 sqlite3/libsqlite/sqlite3.c if( sqlite3FkRequired(pParse, pTab, 0, 0) || pTrigger ){ pTrigger 82065 sqlite3/libsqlite/sqlite3.c pParse, pTrigger, 0, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onconf pTrigger 82081 sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 82114 sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 84773 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* Trigger definition to return */ pTrigger 84777 sqlite3/libsqlite/sqlite3.c pTrigger = pFKey->apTrigger[iAction]; pTrigger 84779 sqlite3/libsqlite/sqlite3.c if( action!=OE_None && !pTrigger ){ pTrigger 84892 sqlite3/libsqlite/sqlite3.c pTrigger = (Trigger *)sqlite3DbMallocZero(db, pTrigger 84897 sqlite3/libsqlite/sqlite3.c if( pTrigger ){ pTrigger 84898 sqlite3/libsqlite/sqlite3.c pStep = pTrigger->step_list = (TriggerStep *)&pTrigger[1]; pTrigger 84908 sqlite3/libsqlite/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 84920 sqlite3/libsqlite/sqlite3.c fkTriggerDelete(db, pTrigger); pTrigger 84936 sqlite3/libsqlite/sqlite3.c pStep->pTrig = pTrigger; pTrigger 84937 sqlite3/libsqlite/sqlite3.c pTrigger->pSchema = pTab->pSchema; pTrigger 84938 sqlite3/libsqlite/sqlite3.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 84939 sqlite3/libsqlite/sqlite3.c pFKey->apTrigger[iAction] = pTrigger; pTrigger 84940 sqlite3/libsqlite/sqlite3.c pTrigger->op = (pChanges ? TK_UPDATE : TK_DELETE); pTrigger 84943 sqlite3/libsqlite/sqlite3.c return pTrigger; pTrigger 85491 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 85522 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_INSERT, 0, &tmask); pTrigger 85533 sqlite3/libsqlite/sqlite3.c assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); pTrigger 85556 sqlite3/libsqlite/sqlite3.c sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb); pTrigger 85569 sqlite3/libsqlite/sqlite3.c assert( !pTrigger ); pTrigger 85645 sqlite3/libsqlite/sqlite3.c if( pTrigger || readsTable(pParse, addrSelect, iDb, pTab) ){ pTrigger 85886 sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_BEFORE, pTrigger 86010 sqlite3/libsqlite/sqlite3.c if( pTrigger ){ pTrigger 86012 sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_AFTER, pTrigger 86071 sqlite3/libsqlite/sqlite3.c #ifdef pTrigger pTrigger 86298 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; pTrigger 86300 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 86302 sqlite3/libsqlite/sqlite3.c if( pTrigger || sqlite3FkRequired(pParse, pTab, 0, 0) ){ pTrigger 86305 sqlite3/libsqlite/sqlite3.c pParse, pTab, baseCur, regRowid, 0, pTrigger, OE_Replace pTrigger 86409 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; pTrigger 86413 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 86416 sqlite3/libsqlite/sqlite3.c pParse, pTab, baseCur, regR, 0, pTrigger, OE_Replace pTrigger 95199 sqlite3/libsqlite/sqlite3.c pTrig->pNext = (pList ? pList : pTab->pTrigger); pTrigger 95205 sqlite3/libsqlite/sqlite3.c return (pList ? pList : pTab->pTrigger); pTrigger 95228 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; /* The new trigger */ pTrigger 95364 sqlite3/libsqlite/sqlite3.c pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); pTrigger 95365 sqlite3/libsqlite/sqlite3.c if( pTrigger==0 ) goto trigger_cleanup; pTrigger 95366 sqlite3/libsqlite/sqlite3.c pTrigger->zName = zName; pTrigger 95368 sqlite3/libsqlite/sqlite3.c pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); pTrigger 95369 sqlite3/libsqlite/sqlite3.c pTrigger->pSchema = db->aDb[iDb].pSchema; pTrigger 95370 sqlite3/libsqlite/sqlite3.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 95371 sqlite3/libsqlite/sqlite3.c pTrigger->op = (u8)op; pTrigger 95372 sqlite3/libsqlite/sqlite3.c pTrigger->tr_tm = tr_tm==TK_BEFORE ? TRIGGER_BEFORE : TRIGGER_AFTER; pTrigger 95373 sqlite3/libsqlite/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 95374 sqlite3/libsqlite/sqlite3.c pTrigger->pColumns = sqlite3IdListDup(db, pColumns); pTrigger 95376 sqlite3/libsqlite/sqlite3.c pParse->pNewTrigger = pTrigger; pTrigger 95384 sqlite3/libsqlite/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 95386 sqlite3/libsqlite/sqlite3.c assert( pParse->pNewTrigger==pTrigger ); pTrigger 95456 sqlite3/libsqlite/sqlite3.c pLink->pNext = pTab->pTrigger; pTrigger 95457 sqlite3/libsqlite/sqlite3.c pTab->pTrigger = pLink; pTrigger 95595 sqlite3/libsqlite/sqlite3.c if( pTrigger==0 ) return; pTrigger 95596 sqlite3/libsqlite/sqlite3.c sqlite3DeleteTriggerStep(db, pTrigger->step_list); pTrigger 95597 sqlite3/libsqlite/sqlite3.c sqlite3DbFree(db, pTrigger->zName); pTrigger 95598 sqlite3/libsqlite/sqlite3.c sqlite3DbFree(db, pTrigger->table); pTrigger 95599 sqlite3/libsqlite/sqlite3.c sqlite3ExprDelete(db, pTrigger->pWhen); pTrigger 95600 sqlite3/libsqlite/sqlite3.c sqlite3IdListDelete(db, pTrigger->pColumns); pTrigger 95601 sqlite3/libsqlite/sqlite3.c sqlite3DbFree(db, pTrigger); pTrigger 95613 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger = 0; pTrigger 95634 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3HashFind(&(db->aDb[j].pSchema->trigHash), zName, nName); pTrigger 95635 sqlite3/libsqlite/sqlite3.c if( pTrigger ) break; pTrigger 95637 sqlite3/libsqlite/sqlite3.c if( !pTrigger ){ pTrigger 95646 sqlite3/libsqlite/sqlite3.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 95657 sqlite3/libsqlite/sqlite3.c int n = sqlite3Strlen30(pTrigger->table); pTrigger 95658 sqlite3/libsqlite/sqlite3.c return sqlite3HashFind(&pTrigger->pTabSchema->tblHash, pTrigger->table, n); pTrigger 95671 sqlite3/libsqlite/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema); pTrigger 95673 sqlite3/libsqlite/sqlite3.c pTable = tableOfTrigger(pTrigger); pTrigger 95675 sqlite3/libsqlite/sqlite3.c assert( pTable->pSchema==pTrigger->pSchema || iDb==1 ); pTrigger 95682 sqlite3/libsqlite/sqlite3.c if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) || pTrigger 95709 sqlite3/libsqlite/sqlite3.c sqlite3VdbeChangeP4(v, base+1, pTrigger->zName, P4_TRANSIENT); pTrigger 95713 sqlite3/libsqlite/sqlite3.c sqlite3VdbeAddOp4(v, OP_DropTrigger, iDb, 0, 0, pTrigger->zName, 0); pTrigger 95724 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; pTrigger 95729 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3HashInsert(pHash, zName, sqlite3Strlen30(zName), 0); pTrigger 95730 sqlite3/libsqlite/sqlite3.c if( ALWAYS(pTrigger) ){ pTrigger 95731 sqlite3/libsqlite/sqlite3.c if( pTrigger->pSchema==pTrigger->pTabSchema ){ pTrigger 95732 sqlite3/libsqlite/sqlite3.c Table *pTab = tableOfTrigger(pTrigger); pTrigger 95734 sqlite3/libsqlite/sqlite3.c for(pp=&pTab->pTrigger; *pp!=pTrigger; pp=&((*pp)->pNext)); pTrigger 95737 sqlite3/libsqlite/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 95953 sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 95966 sqlite3/libsqlite/sqlite3.c pPrg->pTrigger = pTrigger; pTrigger 95980 sqlite3/libsqlite/sqlite3.c pSubParse->zAuthContext = pTrigger->zName; pTrigger 95981 sqlite3/libsqlite/sqlite3.c pSubParse->eTriggerOp = pTrigger->op; pTrigger 95987 sqlite3/libsqlite/sqlite3.c pTrigger->zName, onErrorText(orconf), pTrigger 95988 sqlite3/libsqlite/sqlite3.c (pTrigger->tr_tm==TRIGGER_BEFORE ? "BEFORE" : "AFTER"), pTrigger 95989 sqlite3/libsqlite/sqlite3.c (pTrigger->op==TK_UPDATE ? "UPDATE" : ""), pTrigger 95990 sqlite3/libsqlite/sqlite3.c (pTrigger->op==TK_INSERT ? "INSERT" : ""), pTrigger 95991 sqlite3/libsqlite/sqlite3.c (pTrigger->op==TK_DELETE ? "DELETE" : ""), pTrigger 95996 sqlite3/libsqlite/sqlite3.c sqlite3MPrintf(db, "-- TRIGGER %s", pTrigger->zName), P4_DYNAMIC pTrigger 96003 sqlite3/libsqlite/sqlite3.c if( pTrigger->pWhen ){ pTrigger 96004 sqlite3/libsqlite/sqlite3.c pWhen = sqlite3ExprDup(db, pTrigger->pWhen, 0); pTrigger 96015 sqlite3/libsqlite/sqlite3.c codeTriggerProgram(pSubParse, pTrigger->step_list, orconf); pTrigger 96022 sqlite3/libsqlite/sqlite3.c VdbeComment((v, "End: %s.%s", pTrigger->zName, onErrorText(orconf))); pTrigger 96030 sqlite3/libsqlite/sqlite3.c pProgram->token = (void *)pTrigger; pTrigger 96058 sqlite3/libsqlite/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 96065 sqlite3/libsqlite/sqlite3.c pPrg && (pPrg->pTrigger!=pTrigger || pPrg->orconf!=orconf); pTrigger 96071 sqlite3/libsqlite/sqlite3.c pPrg = codeRowTrigger(pParse, pTrigger, pTab, orconf); pTrigger 96172 sqlite3/libsqlite/sqlite3.c for(p=pTrigger; p; p=p->pNext){ pTrigger 96231 sqlite3/libsqlite/sqlite3.c for(p=pTrigger; p; p=p->pNext){ pTrigger 96368 sqlite3/libsqlite/sqlite3.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 96398 sqlite3/libsqlite/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_UPDATE, pChanges, &tmask); pTrigger 96400 sqlite3/libsqlite/sqlite3.c assert( pTrigger || tmask==0 ); pTrigger 96528 sqlite3/libsqlite/sqlite3.c if( pTrigger || hasFK ){ pTrigger 96532 sqlite3/libsqlite/sqlite3.c if( chngRowid || pTrigger || hasFK ){ pTrigger 96632 sqlite3/libsqlite/sqlite3.c assert( chngRowid || pTrigger || hasFK || regOldRowid==regNewRowid ); pTrigger 96640 sqlite3/libsqlite/sqlite3.c if( hasFK || pTrigger ){ pTrigger 96643 sqlite3/libsqlite/sqlite3.c pTrigger, pChanges, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onError pTrigger 96671 sqlite3/libsqlite/sqlite3.c pParse, pTrigger, pChanges, 1, TRIGGER_BEFORE, pTab, onError pTrigger 96700 sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 96767 sqlite3/libsqlite/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 96818 sqlite3/libsqlite/sqlite3.c #ifdef pTrigger