Lines Matching refs:nt

52   Trigger *nt;  in sqliteBeginTrigger()  local
131 nt = (Trigger*)sqliteMalloc(sizeof(Trigger)); in sqliteBeginTrigger()
132 if( nt==0 ) goto trigger_cleanup; in sqliteBeginTrigger()
133 nt->name = zName; in sqliteBeginTrigger()
135 nt->table = sqliteStrDup(pTableName->a[0].zName); in sqliteBeginTrigger()
137 nt->iDb = iDb; in sqliteBeginTrigger()
138 nt->iTabDb = tab->iDb; in sqliteBeginTrigger()
139 nt->op = op; in sqliteBeginTrigger()
140 nt->tr_tm = tr_tm; in sqliteBeginTrigger()
141 nt->pWhen = sqliteExprDup(pWhen); in sqliteBeginTrigger()
142 nt->pColumns = sqliteIdListDup(pColumns); in sqliteBeginTrigger()
143 nt->foreach = foreach; in sqliteBeginTrigger()
144 sqliteTokenCopy(&nt->nameToken,pName); in sqliteBeginTrigger()
146 pParse->pNewTrigger = nt; in sqliteBeginTrigger()
164 Trigger *nt = 0; /* The trigger whose construction is finishing up */ in sqliteFinishTrigger() local
169 nt = pParse->pNewTrigger; in sqliteFinishTrigger()
171 nt->step_list = pStepList; in sqliteFinishTrigger()
173 pStepList->pTrig = nt; in sqliteFinishTrigger()
176 if( sqliteFixInit(&sFix, pParse, nt->iDb, "trigger", &nt->nameToken) in sqliteFinishTrigger()
177 && sqliteFixTriggerStep(&sFix, nt->step_list) ){ in sqliteFinishTrigger()
202 sqliteOpenMasterTable(v, nt->iDb); in sqliteFinishTrigger()
204 sqliteVdbeChangeP3(v, addr+2, nt->name, 0); in sqliteFinishTrigger()
205 sqliteVdbeChangeP3(v, addr+3, nt->table, 0); in sqliteFinishTrigger()
207 if( nt->iDb==0 ){ in sqliteFinishTrigger()
216 sqliteHashInsert(&db->aDb[nt->iDb].trigHash, in sqliteFinishTrigger()
217 nt->name, strlen(nt->name)+1, nt); in sqliteFinishTrigger()
218 pTab = sqliteLocateTable(pParse, nt->table, db->aDb[nt->iTabDb].zName); in sqliteFinishTrigger()
220 nt->pNext = pTab->pTrigger; in sqliteFinishTrigger()
221 pTab->pTrigger = nt; in sqliteFinishTrigger()
222 nt = 0; in sqliteFinishTrigger()
226 sqliteDeleteTrigger(nt); in sqliteFinishTrigger()