/external/chromium_org/third_party/sqlite/src/src/ |
D | trigger.c | 63 pTrig->pNext = (pList ? pList : pTab->pTrigger); in sqlite3TriggerList() 69 return (pList ? pList : pTab->pTrigger); in sqlite3TriggerList() 92 Trigger *pTrigger = 0; /* The new trigger */ in sqlite3BeginTrigger() local 228 pTrigger = (Trigger*)sqlite3DbMallocZero(db, sizeof(Trigger)); in sqlite3BeginTrigger() 229 if( pTrigger==0 ) goto trigger_cleanup; in sqlite3BeginTrigger() 230 pTrigger->zName = zName; in sqlite3BeginTrigger() 232 pTrigger->table = sqlite3DbStrDup(db, pTableName->a[0].zName); in sqlite3BeginTrigger() 233 pTrigger->pSchema = db->aDb[iDb].pSchema; in sqlite3BeginTrigger() 234 pTrigger->pTabSchema = pTab->pSchema; in sqlite3BeginTrigger() 235 pTrigger->op = (u8)op; in sqlite3BeginTrigger() [all …]
|
D | delete.c | 245 Trigger *pTrigger; /* List of table triggers, if required */ in sqlite3DeleteFrom() local 267 pTrigger = sqlite3TriggersExist(pParse, pTab, TK_DELETE, 0, 0); in sqlite3DeleteFrom() 270 # define pTrigger 0 in sqlite3DeleteFrom() macro 284 if( sqlite3IsReadOnly(pParse, pTab, (pTrigger?1:0)) ){ in sqlite3DeleteFrom() 295 assert(!isView || pTrigger); in sqlite3DeleteFrom() 351 if( rcauth==SQLITE_OK && pWhere==0 && !pTrigger && !IsVirtual(pTab) in sqlite3DeleteFrom() 409 sqlite3GenerateRowDelete(pParse, pTab, iCur, iRowid, count, pTrigger, OE_Default); in sqlite3DeleteFrom() 455 #ifdef pTrigger 456 #undef pTrigger 484 Trigger *pTrigger, /* List of triggers to (potentially) fire */ in sqlite3GenerateRowDelete() argument [all …]
|
D | update.c | 119 Trigger *pTrigger; /* List of triggers on pTab, if required */ in sqlite3Update() local 149 pTrigger = sqlite3TriggersExist(pParse, pTab, TK_UPDATE, pChanges, &tmask); in sqlite3Update() 151 assert( pTrigger || tmask==0 ); in sqlite3Update() 153 # define pTrigger 0 in sqlite3Update() macro 279 if( pTrigger || hasFK ){ in sqlite3Update() 283 if( chngRowid || pTrigger || hasFK ){ in sqlite3Update() 383 assert( chngRowid || pTrigger || hasFK || regOldRowid==regNewRowid ); in sqlite3Update() 391 if( hasFK || pTrigger ){ in sqlite3Update() 394 pTrigger, pChanges, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onError in sqlite3Update() 422 pParse, pTrigger, pChanges, 1, TRIGGER_BEFORE, pTab, onError in sqlite3Update() [all …]
|
D | fkey.c | 948 Trigger *pTrigger; /* Trigger definition to return */ in fkActionTrigger() local 952 pTrigger = pFKey->apTrigger[iAction]; in fkActionTrigger() 954 if( action!=OE_None && !pTrigger ){ in fkActionTrigger() 1067 pTrigger = (Trigger *)sqlite3DbMallocZero(db, in fkActionTrigger() 1072 if( pTrigger ){ in fkActionTrigger() 1073 pStep = pTrigger->step_list = (TriggerStep *)&pTrigger[1]; in fkActionTrigger() 1083 pTrigger->pWhen = sqlite3ExprDup(db, pWhen, EXPRDUP_REDUCE); in fkActionTrigger() 1095 fkTriggerDelete(db, pTrigger); in fkActionTrigger() 1111 pStep->pTrig = pTrigger; in fkActionTrigger() 1112 pTrigger->pSchema = pTab->pSchema; in fkActionTrigger() [all …]
|
D | insert.c | 475 Trigger *pTrigger; /* List of triggers on pTab, if required */ in sqlite3Insert() local 506 pTrigger = sqlite3TriggersExist(pParse, pTab, TK_INSERT, 0, &tmask); in sqlite3Insert() 509 # define pTrigger 0 in sqlite3Insert() macro 517 assert( (pTrigger && tmask) || (pTrigger==0 && tmask==0) ); in sqlite3Insert() 540 sqlite3BeginWriteOperation(pParse, pSelect || pTrigger, iDb); in sqlite3Insert() 553 assert( !pTrigger ); in sqlite3Insert() 629 if( pTrigger || readsTable(pParse, addrSelect, iDb, pTab) ){ in sqlite3Insert() 870 sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_BEFORE, in sqlite3Insert() 993 if( pTrigger ){ in sqlite3Insert() 995 sqlite3CodeRowTrigger(pParse, pTrigger, TK_INSERT, 0, TRIGGER_AFTER, in sqlite3Insert() [all …]
|
D | build.c | 2077 Trigger *pTrigger; in sqlite3DropTable() local 2092 pTrigger = sqlite3TriggerList(pParse, pTab); in sqlite3DropTable() 2093 while( pTrigger ){ in sqlite3DropTable() 2094 assert( pTrigger->pSchema==pTab->pSchema || in sqlite3DropTable() 2095 pTrigger->pSchema==db->aDb[1].pSchema ); in sqlite3DropTable() 2096 sqlite3DropTriggerPtr(pParse, pTrigger); in sqlite3DropTable() 2097 pTrigger = pTrigger->pNext; in sqlite3DropTable()
|
D | sqliteInt.h | 1293 Trigger *pTrigger; /* List of triggers stored in pSchema */ member 2136 Trigger *pTrigger; /* Trigger this program was coded from */ member
|
/external/chromium_org/third_party/sqlite/amalgamation/ |
D | sqlite3.c | 9638 Trigger *pTrigger; /* List of triggers stored in pSchema */ member 10481 Trigger *pTrigger; /* Trigger this program was coded from */ member 78916 Trigger *pTrigger; 78931 pTrigger = sqlite3TriggerList(pParse, pTab); 78932 while( pTrigger ){ 78933 assert( pTrigger->pSchema==pTab->pSchema || 78934 pTrigger->pSchema==db->aDb[1].pSchema ); 78935 sqlite3DropTriggerPtr(pParse, pTrigger); 78936 pTrigger = pTrigger->pNext; 81302 Trigger *pTrigger; /* List of table triggers, if required */ [all …]
|
/external/sqlite/dist/ |
D | sqlite3.c | 10968 Trigger *pTrigger; /* List of triggers stored in pSchema */ member 11866 Trigger *pTrigger; /* Trigger this program was coded from */ member 88468 Trigger *pTrigger; 88485 pTrigger = sqlite3TriggerList(pParse, pTab); 88486 while( pTrigger ){ 88487 assert( pTrigger->pSchema==pTab->pSchema || 88488 pTrigger->pSchema==db->aDb[1].pSchema ); 88489 sqlite3DropTriggerPtr(pParse, pTrigger); 88490 pTrigger = pTrigger->pNext; 91135 Trigger *pTrigger; /* List of table triggers, if required */ [all …]
|
/external/sqlite/dist/orig/ |
D | sqlite3.c | 10968 Trigger *pTrigger; /* List of triggers stored in pSchema */ member 11866 Trigger *pTrigger; /* Trigger this program was coded from */ member 88448 Trigger *pTrigger; 88465 pTrigger = sqlite3TriggerList(pParse, pTab); 88466 while( pTrigger ){ 88467 assert( pTrigger->pSchema==pTab->pSchema || 88468 pTrigger->pSchema==db->aDb[1].pSchema ); 88469 sqlite3DropTriggerPtr(pParse, pTrigger); 88470 pTrigger = pTrigger->pNext; 91115 Trigger *pTrigger; /* List of table triggers, if required */ [all …]
|