pTrigger 9638 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; /* List of triggers stored in pSchema */ pTrigger 10481 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; /* Trigger this program was coded from */ pTrigger 78916 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; pTrigger 78931 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3TriggerList(pParse, pTab); pTrigger 78932 third_party/sqlite/amalgamation/sqlite3.c while( pTrigger ){ pTrigger 78933 third_party/sqlite/amalgamation/sqlite3.c assert( pTrigger->pSchema==pTab->pSchema || pTrigger 78934 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pSchema==db->aDb[1].pSchema ); pTrigger 78935 third_party/sqlite/amalgamation/sqlite3.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 78936 third_party/sqlite/amalgamation/sqlite3.c pTrigger = pTrigger->pNext; pTrigger 81302 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; /* List of table triggers, if required */ pTrigger 81324 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 81341 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3IsReadOnly(pParse, pTab, (pTrigger?1:0)) ){ pTrigger 81352 third_party/sqlite/amalgamation/sqlite3.c assert(!isView || pTrigger); pTrigger 81408 third_party/sqlite/amalgamation/sqlite3.c if( rcauth==SQLITE_OK && pWhere==0 && !pTrigger && !IsVirtual(pTab) pTrigger 81466 third_party/sqlite/amalgamation/sqlite3.c sqlite3GenerateRowDelete(pParse, pTab, iCur, iRowid, count, pTrigger, OE_Default); pTrigger 81512 third_party/sqlite/amalgamation/sqlite3.c #ifdef pTrigger pTrigger 81541 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger, /* List of triggers to (potentially) fire */ pTrigger 81559 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3FkRequired(pParse, pTab, 0, 0) || pTrigger ){ pTrigger 81566 third_party/sqlite/amalgamation/sqlite3.c pParse, pTrigger, 0, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onconf pTrigger 81582 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 81615 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 84240 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; /* Trigger definition to return */ pTrigger 84244 third_party/sqlite/amalgamation/sqlite3.c pTrigger = pFKey->apTrigger[iAction]; pTrigger 84246 third_party/sqlite/amalgamation/sqlite3.c if( action!=OE_None && !pTrigger ){ pTrigger 84359 third_party/sqlite/amalgamation/sqlite3.c pTrigger = (Trigger *)sqlite3DbMallocZero(db, pTrigger 84364 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger ){ pTrigger 84365 third_party/sqlite/amalgamation/sqlite3.c pStep = pTrigger->step_list = (TriggerStep *)&pTrigger[1]; pTrigger 84375 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 84387 third_party/sqlite/amalgamation/sqlite3.c fkTriggerDelete(db, pTrigger); pTrigger 84403 third_party/sqlite/amalgamation/sqlite3.c pStep->pTrig = pTrigger; pTrigger 84404 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pSchema = pTab->pSchema; pTrigger 84405 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 84406 third_party/sqlite/amalgamation/sqlite3.c pFKey->apTrigger[iAction] = pTrigger; pTrigger 84407 third_party/sqlite/amalgamation/sqlite3.c pTrigger->op = (pChanges ? TK_UPDATE : TK_DELETE); pTrigger 84410 third_party/sqlite/amalgamation/sqlite3.c return pTrigger; pTrigger 84958 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 84989 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_INSERT, 0, &tmask); pTrigger 85000 third_party/sqlite/amalgamation/sqlite3.c assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); pTrigger 85023 third_party/sqlite/amalgamation/sqlite3.c sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb); pTrigger 85036 third_party/sqlite/amalgamation/sqlite3.c assert( !pTrigger ); pTrigger 85112 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger || readsTable(pParse, addrSelect, iDb, pTab) ){ pTrigger 85353 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_BEFORE, pTrigger 85476 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger ){ pTrigger 85478 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_AFTER, pTrigger 85537 third_party/sqlite/amalgamation/sqlite3.c #ifdef pTrigger pTrigger 85764 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger = 0; pTrigger 85766 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 85768 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger || sqlite3FkRequired(pParse, pTab, 0, 0) ){ pTrigger 85771 third_party/sqlite/amalgamation/sqlite3.c pParse, pTab, baseCur, regRowid, 0, pTrigger, OE_Replace pTrigger 85875 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger = 0; pTrigger 85879 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 85882 third_party/sqlite/amalgamation/sqlite3.c pParse, pTab, baseCur, regR, 0, pTrigger, OE_Replace pTrigger 94649 third_party/sqlite/amalgamation/sqlite3.c pTrig->pNext = (pList ? pList : pTab->pTrigger); pTrigger 94655 third_party/sqlite/amalgamation/sqlite3.c return (pList ? pList : pTab->pTrigger); pTrigger 94678 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger = 0; /* The new trigger */ pTrigger 94814 third_party/sqlite/amalgamation/sqlite3.c pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); pTrigger 94815 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger==0 ) goto trigger_cleanup; pTrigger 94816 third_party/sqlite/amalgamation/sqlite3.c pTrigger->zName = zName; pTrigger 94818 third_party/sqlite/amalgamation/sqlite3.c pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); pTrigger 94819 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pSchema = db->aDb[iDb].pSchema; pTrigger 94820 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 94821 third_party/sqlite/amalgamation/sqlite3.c pTrigger->op = (u8)op; pTrigger 94822 third_party/sqlite/amalgamation/sqlite3.c pTrigger->tr_tm = tr_tm==TK_BEFORE ? TRIGGER_BEFORE : TRIGGER_AFTER; pTrigger 94823 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 94824 third_party/sqlite/amalgamation/sqlite3.c pTrigger->pColumns = sqlite3IdListDup(db, pColumns); pTrigger 94826 third_party/sqlite/amalgamation/sqlite3.c pParse->pNewTrigger = pTrigger; pTrigger 94834 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 94836 third_party/sqlite/amalgamation/sqlite3.c assert( pParse->pNewTrigger==pTrigger ); pTrigger 94907 third_party/sqlite/amalgamation/sqlite3.c pLink->pNext = pTab->pTrigger; pTrigger 94908 third_party/sqlite/amalgamation/sqlite3.c pTab->pTrigger = pLink; pTrigger 95045 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){ pTrigger 95046 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger==0 ) return; pTrigger 95047 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTriggerStep(db, pTrigger->step_list); pTrigger 95048 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTrigger->zName); pTrigger 95049 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTrigger->table); pTrigger 95050 third_party/sqlite/amalgamation/sqlite3.c sqlite3ExprDelete(db, pTrigger->pWhen); pTrigger 95051 third_party/sqlite/amalgamation/sqlite3.c sqlite3IdListDelete(db, pTrigger->pColumns); pTrigger 95052 third_party/sqlite/amalgamation/sqlite3.c sqlite3DbFree(db, pTrigger); pTrigger 95064 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger = 0; pTrigger 95085 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3HashFind(&(db->aDb[j].pSchema->trigHash), zName, nName); pTrigger 95086 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger ) break; pTrigger 95088 third_party/sqlite/amalgamation/sqlite3.c if( !pTrigger ){ pTrigger 95097 third_party/sqlite/amalgamation/sqlite3.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 95107 third_party/sqlite/amalgamation/sqlite3.c static Table *tableOfTrigger(Trigger *pTrigger){ pTrigger 95108 third_party/sqlite/amalgamation/sqlite3.c int n = sqlite3Strlen30(pTrigger->table); pTrigger 95109 third_party/sqlite/amalgamation/sqlite3.c return sqlite3HashFind(&pTrigger->pTabSchema->tblHash, pTrigger->table, n); pTrigger 95116 third_party/sqlite/amalgamation/sqlite3.c SQLITE_PRIVATE void sqlite3DropTriggerPtr(Parse *pParse, Trigger *pTrigger){ pTrigger 95122 third_party/sqlite/amalgamation/sqlite3.c iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema); pTrigger 95124 third_party/sqlite/amalgamation/sqlite3.c pTable = tableOfTrigger(pTrigger); pTrigger 95126 third_party/sqlite/amalgamation/sqlite3.c assert( pTable->pSchema==pTrigger->pSchema || iDb==1 ); pTrigger 95133 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) || pTrigger 95160 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeChangeP4(v, base+1, pTrigger->zName, P4_TRANSIENT); pTrigger 95164 third_party/sqlite/amalgamation/sqlite3.c sqlite3VdbeAddOp4(v, OP_DropTrigger, iDb, 0, 0, pTrigger->zName, 0); pTrigger 95175 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; pTrigger 95180 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3HashInsert(pHash, zName, sqlite3Strlen30(zName), 0); pTrigger 95181 third_party/sqlite/amalgamation/sqlite3.c if( ALWAYS(pTrigger) ){ pTrigger 95182 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger->pSchema==pTrigger->pTabSchema ){ pTrigger 95183 third_party/sqlite/amalgamation/sqlite3.c Table *pTab = tableOfTrigger(pTrigger); pTrigger 95185 third_party/sqlite/amalgamation/sqlite3.c for(pp=&pTab->pTrigger; *pp!=pTrigger; pp=&((*pp)->pNext)); pTrigger 95188 third_party/sqlite/amalgamation/sqlite3.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 95390 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger, /* Trigger to code */ pTrigger 95404 third_party/sqlite/amalgamation/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 95417 third_party/sqlite/amalgamation/sqlite3.c pPrg->pTrigger = pTrigger; pTrigger 95431 third_party/sqlite/amalgamation/sqlite3.c pSubParse->zAuthContext = pTrigger->zName; pTrigger 95432 third_party/sqlite/amalgamation/sqlite3.c pSubParse->eTriggerOp = pTrigger->op; pTrigger 95438 third_party/sqlite/amalgamation/sqlite3.c pTrigger->zName, onErrorText(orconf), pTrigger 95439 third_party/sqlite/amalgamation/sqlite3.c (pTrigger->tr_tm==TRIGGER_BEFORE ? "BEFORE" : "AFTER"), pTrigger 95440 third_party/sqlite/amalgamation/sqlite3.c (pTrigger->op==TK_UPDATE ? "UPDATE" : ""), pTrigger 95441 third_party/sqlite/amalgamation/sqlite3.c (pTrigger->op==TK_INSERT ? "INSERT" : ""), pTrigger 95442 third_party/sqlite/amalgamation/sqlite3.c (pTrigger->op==TK_DELETE ? "DELETE" : ""), pTrigger 95447 third_party/sqlite/amalgamation/sqlite3.c sqlite3MPrintf(db, "-- TRIGGER %s", pTrigger->zName), P4_DYNAMIC pTrigger 95454 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger->pWhen ){ pTrigger 95455 third_party/sqlite/amalgamation/sqlite3.c pWhen = sqlite3ExprDup(db, pTrigger->pWhen, 0); pTrigger 95466 third_party/sqlite/amalgamation/sqlite3.c codeTriggerProgram(pSubParse, pTrigger->step_list, orconf); pTrigger 95473 third_party/sqlite/amalgamation/sqlite3.c VdbeComment((v, "End: %s.%s", pTrigger->zName, onErrorText(orconf))); pTrigger 95481 third_party/sqlite/amalgamation/sqlite3.c pProgram->token = (void *)pTrigger; pTrigger 95502 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger, /* Trigger to code */ pTrigger 95509 third_party/sqlite/amalgamation/sqlite3.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 95516 third_party/sqlite/amalgamation/sqlite3.c pPrg && (pPrg->pTrigger!=pTrigger || pPrg->orconf!=orconf); pTrigger 95522 third_party/sqlite/amalgamation/sqlite3.c pPrg = codeRowTrigger(pParse, pTrigger, pTab, orconf); pTrigger 95608 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger, /* List of triggers on table pTab */ pTrigger 95623 third_party/sqlite/amalgamation/sqlite3.c for(p=pTrigger; p; p=p->pNext){ pTrigger 95670 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger, /* List of triggers on table pTab */ pTrigger 95682 third_party/sqlite/amalgamation/sqlite3.c for(p=pTrigger; p; p=p->pNext){ pTrigger 95818 third_party/sqlite/amalgamation/sqlite3.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 95848 third_party/sqlite/amalgamation/sqlite3.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_UPDATE, pChanges, &tmask); pTrigger 95850 third_party/sqlite/amalgamation/sqlite3.c assert( pTrigger || tmask==0 ); pTrigger 95978 third_party/sqlite/amalgamation/sqlite3.c if( pTrigger || hasFK ){ pTrigger 95982 third_party/sqlite/amalgamation/sqlite3.c if( chngRowid || pTrigger || hasFK ){ pTrigger 96082 third_party/sqlite/amalgamation/sqlite3.c assert( chngRowid || pTrigger || hasFK || regOldRowid==regNewRowid ); pTrigger 96090 third_party/sqlite/amalgamation/sqlite3.c if( hasFK || pTrigger ){ pTrigger 96093 third_party/sqlite/amalgamation/sqlite3.c pTrigger, pChanges, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onError pTrigger 96121 third_party/sqlite/amalgamation/sqlite3.c pParse, pTrigger, pChanges, 1, TRIGGER_BEFORE, pTab, onError pTrigger 96150 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 96217 third_party/sqlite/amalgamation/sqlite3.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 96268 third_party/sqlite/amalgamation/sqlite3.c #ifdef pTrigger pTrigger 2077 third_party/sqlite/src/src/build.c Trigger *pTrigger; pTrigger 2092 third_party/sqlite/src/src/build.c pTrigger = sqlite3TriggerList(pParse, pTab); pTrigger 2093 third_party/sqlite/src/src/build.c while( pTrigger ){ pTrigger 2094 third_party/sqlite/src/src/build.c assert( pTrigger->pSchema==pTab->pSchema || pTrigger 2095 third_party/sqlite/src/src/build.c pTrigger->pSchema==db->aDb[1].pSchema ); pTrigger 2096 third_party/sqlite/src/src/build.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 2097 third_party/sqlite/src/src/build.c pTrigger = pTrigger->pNext; pTrigger 245 third_party/sqlite/src/src/delete.c Trigger *pTrigger; /* List of table triggers, if required */ pTrigger 267 third_party/sqlite/src/src/delete.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 284 third_party/sqlite/src/src/delete.c if( sqlite3IsReadOnly(pParse, pTab, (pTrigger?1:0)) ){ pTrigger 295 third_party/sqlite/src/src/delete.c assert(!isView || pTrigger); pTrigger 351 third_party/sqlite/src/src/delete.c if( rcauth==SQLITE_OK && pWhere==0 && !pTrigger && !IsVirtual(pTab) pTrigger 409 third_party/sqlite/src/src/delete.c sqlite3GenerateRowDelete(pParse, pTab, iCur, iRowid, count, pTrigger, OE_Default); pTrigger 455 third_party/sqlite/src/src/delete.c #ifdef pTrigger pTrigger 484 third_party/sqlite/src/src/delete.c Trigger *pTrigger, /* List of triggers to (potentially) fire */ pTrigger 502 third_party/sqlite/src/src/delete.c if( sqlite3FkRequired(pParse, pTab, 0, 0) || pTrigger ){ pTrigger 509 third_party/sqlite/src/src/delete.c pParse, pTrigger, 0, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onconf pTrigger 525 third_party/sqlite/src/src/delete.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 558 third_party/sqlite/src/src/delete.c sqlite3CodeRowTrigger(pParse, pTrigger, pTrigger 948 third_party/sqlite/src/src/fkey.c Trigger *pTrigger; /* Trigger definition to return */ pTrigger 952 third_party/sqlite/src/src/fkey.c pTrigger = pFKey->apTrigger[iAction]; pTrigger 954 third_party/sqlite/src/src/fkey.c if( action!=OE_None && !pTrigger ){ pTrigger 1067 third_party/sqlite/src/src/fkey.c pTrigger = (Trigger *)sqlite3DbMallocZero(db, pTrigger 1072 third_party/sqlite/src/src/fkey.c if( pTrigger ){ pTrigger 1073 third_party/sqlite/src/src/fkey.c pStep = pTrigger->step_list = (TriggerStep *)&pTrigger[1]; pTrigger 1083 third_party/sqlite/src/src/fkey.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 1095 third_party/sqlite/src/src/fkey.c fkTriggerDelete(db, pTrigger); pTrigger 1111 third_party/sqlite/src/src/fkey.c pStep->pTrig = pTrigger; pTrigger 1112 third_party/sqlite/src/src/fkey.c pTrigger->pSchema = pTab->pSchema; pTrigger 1113 third_party/sqlite/src/src/fkey.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 1114 third_party/sqlite/src/src/fkey.c pFKey->apTrigger[iAction] = pTrigger; pTrigger 1115 third_party/sqlite/src/src/fkey.c pTrigger->op = (pChanges ? TK_UPDATE : TK_DELETE); pTrigger 1118 third_party/sqlite/src/src/fkey.c return pTrigger; pTrigger 475 third_party/sqlite/src/src/insert.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 506 third_party/sqlite/src/src/insert.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_INSERT, 0, &tmask); pTrigger 517 third_party/sqlite/src/src/insert.c assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); pTrigger 540 third_party/sqlite/src/src/insert.c sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb); pTrigger 553 third_party/sqlite/src/src/insert.c assert( !pTrigger ); pTrigger 629 third_party/sqlite/src/src/insert.c if( pTrigger || readsTable(pParse, addrSelect, iDb, pTab) ){ pTrigger 870 third_party/sqlite/src/src/insert.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_BEFORE, pTrigger 993 third_party/sqlite/src/src/insert.c if( pTrigger ){ pTrigger 995 third_party/sqlite/src/src/insert.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_AFTER, pTrigger 1054 third_party/sqlite/src/src/insert.c #ifdef pTrigger pTrigger 1281 third_party/sqlite/src/src/insert.c Trigger *pTrigger = 0; pTrigger 1283 third_party/sqlite/src/src/insert.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 1285 third_party/sqlite/src/src/insert.c if( pTrigger || sqlite3FkRequired(pParse, pTab, 0, 0) ){ pTrigger 1288 third_party/sqlite/src/src/insert.c pParse, pTab, baseCur, regRowid, 0, pTrigger, OE_Replace pTrigger 1392 third_party/sqlite/src/src/insert.c Trigger *pTrigger = 0; pTrigger 1396 third_party/sqlite/src/src/insert.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); pTrigger 1399 third_party/sqlite/src/src/insert.c pParse, pTab, baseCur, regR, 0, pTrigger, OE_Replace pTrigger 1293 third_party/sqlite/src/src/sqliteInt.h Trigger *pTrigger; /* List of triggers stored in pSchema */ pTrigger 2136 third_party/sqlite/src/src/sqliteInt.h Trigger *pTrigger; /* Trigger this program was coded from */ pTrigger 63 third_party/sqlite/src/src/trigger.c pTrig->pNext = (pList ? pList : pTab->pTrigger); pTrigger 69 third_party/sqlite/src/src/trigger.c return (pList ? pList : pTab->pTrigger); pTrigger 92 third_party/sqlite/src/src/trigger.c Trigger *pTrigger = 0; /* The new trigger */ pTrigger 228 third_party/sqlite/src/src/trigger.c pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); pTrigger 229 third_party/sqlite/src/src/trigger.c if( pTrigger==0 ) goto trigger_cleanup; pTrigger 230 third_party/sqlite/src/src/trigger.c pTrigger->zName = zName; pTrigger 232 third_party/sqlite/src/src/trigger.c pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); pTrigger 233 third_party/sqlite/src/src/trigger.c pTrigger->pSchema = db->aDb[iDb].pSchema; pTrigger 234 third_party/sqlite/src/src/trigger.c pTrigger->pTabSchema = pTab->pSchema; pTrigger 235 third_party/sqlite/src/src/trigger.c pTrigger->op = (u8)op; pTrigger 236 third_party/sqlite/src/src/trigger.c pTrigger->tr_tm = tr_tm==TK_BEFORE ? TRIGGER_BEFORE : TRIGGER_AFTER; pTrigger 237 third_party/sqlite/src/src/trigger.c pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); pTrigger 238 third_party/sqlite/src/src/trigger.c pTrigger->pColumns = sqlite3IdListDup(db, pColumns); pTrigger 240 third_party/sqlite/src/src/trigger.c pParse->pNewTrigger = pTrigger; pTrigger 248 third_party/sqlite/src/src/trigger.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 250 third_party/sqlite/src/src/trigger.c assert( pParse->pNewTrigger==pTrigger ); pTrigger 321 third_party/sqlite/src/src/trigger.c pLink->pNext = pTab->pTrigger; pTrigger 322 third_party/sqlite/src/src/trigger.c pTab->pTrigger = pLink; pTrigger 459 third_party/sqlite/src/src/trigger.c void sqlite3DeleteTrigger(sqlite3 *db, Trigger *pTrigger){ pTrigger 460 third_party/sqlite/src/src/trigger.c if( pTrigger==0 ) return; pTrigger 461 third_party/sqlite/src/src/trigger.c sqlite3DeleteTriggerStep(db, pTrigger->step_list); pTrigger 462 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTrigger->zName); pTrigger 463 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTrigger->table); pTrigger 464 third_party/sqlite/src/src/trigger.c sqlite3ExprDelete(db, pTrigger->pWhen); pTrigger 465 third_party/sqlite/src/src/trigger.c sqlite3IdListDelete(db, pTrigger->pColumns); pTrigger 466 third_party/sqlite/src/src/trigger.c sqlite3DbFree(db, pTrigger); pTrigger 478 third_party/sqlite/src/src/trigger.c Trigger *pTrigger = 0; pTrigger 499 third_party/sqlite/src/src/trigger.c pTrigger = sqlite3HashFind(&(db->aDb[j].pSchema->trigHash), zName, nName); pTrigger 500 third_party/sqlite/src/src/trigger.c if( pTrigger ) break; pTrigger 502 third_party/sqlite/src/src/trigger.c if( !pTrigger ){ pTrigger 511 third_party/sqlite/src/src/trigger.c sqlite3DropTriggerPtr(pParse, pTrigger); pTrigger 521 third_party/sqlite/src/src/trigger.c static Table *tableOfTrigger(Trigger *pTrigger){ pTrigger 522 third_party/sqlite/src/src/trigger.c int n = sqlite3Strlen30(pTrigger->table); pTrigger 523 third_party/sqlite/src/src/trigger.c return sqlite3HashFind(&pTrigger->pTabSchema->tblHash, pTrigger->table, n); pTrigger 530 third_party/sqlite/src/src/trigger.c void sqlite3DropTriggerPtr(Parse *pParse, Trigger *pTrigger){ pTrigger 536 third_party/sqlite/src/src/trigger.c iDb = sqlite3SchemaToIndex(pParse->db, pTrigger->pSchema); pTrigger 538 third_party/sqlite/src/src/trigger.c pTable = tableOfTrigger(pTrigger); pTrigger 540 third_party/sqlite/src/src/trigger.c assert( pTable->pSchema==pTrigger->pSchema || iDb==1 ); pTrigger 547 third_party/sqlite/src/src/trigger.c if( sqlite3AuthCheck(pParse, code, pTrigger->zName, pTable->zName, zDb) || pTrigger 574 third_party/sqlite/src/src/trigger.c sqlite3VdbeChangeP4(v, base+1, pTrigger->zName, P4_TRANSIENT); pTrigger 578 third_party/sqlite/src/src/trigger.c sqlite3VdbeAddOp4(v, OP_DropTrigger, iDb, 0, 0, pTrigger->zName, 0); pTrigger 589 third_party/sqlite/src/src/trigger.c Trigger *pTrigger; pTrigger 594 third_party/sqlite/src/src/trigger.c pTrigger = sqlite3HashInsert(pHash, zName, sqlite3Strlen30(zName), 0); pTrigger 595 third_party/sqlite/src/src/trigger.c if( ALWAYS(pTrigger) ){ pTrigger 596 third_party/sqlite/src/src/trigger.c if( pTrigger->pSchema==pTrigger->pTabSchema ){ pTrigger 597 third_party/sqlite/src/src/trigger.c Table *pTab = tableOfTrigger(pTrigger); pTrigger 599 third_party/sqlite/src/src/trigger.c for(pp=&pTab->pTrigger; *pp!=pTrigger; pp=&((*pp)->pNext)); pTrigger 602 third_party/sqlite/src/src/trigger.c sqlite3DeleteTrigger(db, pTrigger); pTrigger 804 third_party/sqlite/src/src/trigger.c Trigger *pTrigger, /* Trigger to code */ pTrigger 818 third_party/sqlite/src/src/trigger.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 831 third_party/sqlite/src/src/trigger.c pPrg->pTrigger = pTrigger; pTrigger 845 third_party/sqlite/src/src/trigger.c pSubParse->zAuthContext = pTrigger->zName; pTrigger 846 third_party/sqlite/src/src/trigger.c pSubParse->eTriggerOp = pTrigger->op; pTrigger 852 third_party/sqlite/src/src/trigger.c pTrigger->zName, onErrorText(orconf), pTrigger 853 third_party/sqlite/src/src/trigger.c (pTrigger->tr_tm==TRIGGER_BEFORE ? "BEFORE" : "AFTER"), pTrigger 854 third_party/sqlite/src/src/trigger.c (pTrigger->op==TK_UPDATE ? "UPDATE" : ""), pTrigger 855 third_party/sqlite/src/src/trigger.c (pTrigger->op==TK_INSERT ? "INSERT" : ""), pTrigger 856 third_party/sqlite/src/src/trigger.c (pTrigger->op==TK_DELETE ? "DELETE" : ""), pTrigger 861 third_party/sqlite/src/src/trigger.c sqlite3MPrintf(db, "-- TRIGGER %s", pTrigger->zName), P4_DYNAMIC pTrigger 868 third_party/sqlite/src/src/trigger.c if( pTrigger->pWhen ){ pTrigger 869 third_party/sqlite/src/src/trigger.c pWhen = sqlite3ExprDup(db, pTrigger->pWhen, 0); pTrigger 880 third_party/sqlite/src/src/trigger.c codeTriggerProgram(pSubParse, pTrigger->step_list, orconf); pTrigger 887 third_party/sqlite/src/src/trigger.c VdbeComment((v, "End: %s.%s", pTrigger->zName, onErrorText(orconf))); pTrigger 895 third_party/sqlite/src/src/trigger.c pProgram->token = (void *)pTrigger; pTrigger 916 third_party/sqlite/src/src/trigger.c Trigger *pTrigger, /* Trigger to code */ pTrigger 923 third_party/sqlite/src/src/trigger.c assert( pTrigger->zName==0 || pTab==tableOfTrigger(pTrigger) ); pTrigger 930 third_party/sqlite/src/src/trigger.c pPrg && (pPrg->pTrigger!=pTrigger || pPrg->orconf!=orconf); pTrigger 936 third_party/sqlite/src/src/trigger.c pPrg = codeRowTrigger(pParse, pTrigger, pTab, orconf); pTrigger 1022 third_party/sqlite/src/src/trigger.c Trigger *pTrigger, /* List of triggers on table pTab */ pTrigger 1037 third_party/sqlite/src/src/trigger.c for(p=pTrigger; p; p=p->pNext){ pTrigger 1084 third_party/sqlite/src/src/trigger.c Trigger *pTrigger, /* List of triggers on table pTab */ pTrigger 1096 third_party/sqlite/src/src/trigger.c for(p=pTrigger; p; p=p->pNext){ pTrigger 119 third_party/sqlite/src/src/update.c Trigger *pTrigger; /* List of triggers on pTab, if required */ pTrigger 149 third_party/sqlite/src/src/update.c pTrigger = sqlite3TriggersExist(pParse, pTab, TK_UPDATE, pChanges, &tmask); pTrigger 151 third_party/sqlite/src/src/update.c assert( pTrigger || tmask==0 ); pTrigger 279 third_party/sqlite/src/src/update.c if( pTrigger || hasFK ){ pTrigger 283 third_party/sqlite/src/src/update.c if( chngRowid || pTrigger || hasFK ){ pTrigger 383 third_party/sqlite/src/src/update.c assert( chngRowid || pTrigger || hasFK || regOldRowid==regNewRowid ); pTrigger 391 third_party/sqlite/src/src/update.c if( hasFK || pTrigger ){ pTrigger 394 third_party/sqlite/src/src/update.c pTrigger, pChanges, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onError pTrigger 422 third_party/sqlite/src/src/update.c pParse, pTrigger, pChanges, 1, TRIGGER_BEFORE, pTab, onError pTrigger 451 third_party/sqlite/src/src/update.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 518 third_party/sqlite/src/src/update.c sqlite3CodeRowTrigger(pParse, pTrigger, TK_UPDATE, pChanges, pTrigger 569 third_party/sqlite/src/src/update.c #ifdef pTrigger