Lines Matching refs:pTriggerStep

21 void sqliteDeleteTriggerStep(TriggerStep *pTriggerStep){  in sqliteDeleteTriggerStep()  argument
22 while( pTriggerStep ){ in sqliteDeleteTriggerStep()
23 TriggerStep * pTmp = pTriggerStep; in sqliteDeleteTriggerStep()
24 pTriggerStep = pTriggerStep->pNext; in sqliteDeleteTriggerStep()
280 TriggerStep *pTriggerStep = sqliteMalloc(sizeof(TriggerStep)); in sqliteTriggerSelectStep() local
281 if( pTriggerStep==0 ) return 0; in sqliteTriggerSelectStep()
283 pTriggerStep->op = TK_SELECT; in sqliteTriggerSelectStep()
284 pTriggerStep->pSelect = pSelect; in sqliteTriggerSelectStep()
285 pTriggerStep->orconf = OE_Default; in sqliteTriggerSelectStep()
286 sqlitePersistTriggerStep(pTriggerStep); in sqliteTriggerSelectStep()
288 return pTriggerStep; in sqliteTriggerSelectStep()
305 TriggerStep *pTriggerStep = sqliteMalloc(sizeof(TriggerStep)); in sqliteTriggerInsertStep() local
306 if( pTriggerStep==0 ) return 0; in sqliteTriggerInsertStep()
311 pTriggerStep->op = TK_INSERT; in sqliteTriggerInsertStep()
312 pTriggerStep->pSelect = pSelect; in sqliteTriggerInsertStep()
313 pTriggerStep->target = *pTableName; in sqliteTriggerInsertStep()
314 pTriggerStep->pIdList = pColumn; in sqliteTriggerInsertStep()
315 pTriggerStep->pExprList = pEList; in sqliteTriggerInsertStep()
316 pTriggerStep->orconf = orconf; in sqliteTriggerInsertStep()
317 sqlitePersistTriggerStep(pTriggerStep); in sqliteTriggerInsertStep()
319 return pTriggerStep; in sqliteTriggerInsertStep()
333 TriggerStep *pTriggerStep = sqliteMalloc(sizeof(TriggerStep)); in sqliteTriggerUpdateStep() local
334 if( pTriggerStep==0 ) return 0; in sqliteTriggerUpdateStep()
336 pTriggerStep->op = TK_UPDATE; in sqliteTriggerUpdateStep()
337 pTriggerStep->target = *pTableName; in sqliteTriggerUpdateStep()
338 pTriggerStep->pExprList = pEList; in sqliteTriggerUpdateStep()
339 pTriggerStep->pWhere = pWhere; in sqliteTriggerUpdateStep()
340 pTriggerStep->orconf = orconf; in sqliteTriggerUpdateStep()
341 sqlitePersistTriggerStep(pTriggerStep); in sqliteTriggerUpdateStep()
343 return pTriggerStep; in sqliteTriggerUpdateStep()
352 TriggerStep *pTriggerStep = sqliteMalloc(sizeof(TriggerStep)); in sqliteTriggerDeleteStep() local
353 if( pTriggerStep==0 ) return 0; in sqliteTriggerDeleteStep()
355 pTriggerStep->op = TK_DELETE; in sqliteTriggerDeleteStep()
356 pTriggerStep->target = *pTableName; in sqliteTriggerDeleteStep()
357 pTriggerStep->pWhere = pWhere; in sqliteTriggerDeleteStep()
358 pTriggerStep->orconf = OE_Default; in sqliteTriggerDeleteStep()
359 sqlitePersistTriggerStep(pTriggerStep); in sqliteTriggerDeleteStep()
361 return pTriggerStep; in sqliteTriggerDeleteStep()
608 TriggerStep * pTriggerStep = pStepList; in codeTriggerProgram() local
611 while( pTriggerStep ){ in codeTriggerProgram()
614 orconf = (orconfin == OE_Default)?pTriggerStep->orconf:orconfin; in codeTriggerProgram()
616 switch( pTriggerStep->op ){ in codeTriggerProgram()
618 Select * ss = sqliteSelectDup(pTriggerStep->pSelect); in codeTriggerProgram()
627 pSrc = targetSrcList(pParse, pTriggerStep); in codeTriggerProgram()
630 sqliteExprListDup(pTriggerStep->pExprList), in codeTriggerProgram()
631 sqliteExprDup(pTriggerStep->pWhere), orconf); in codeTriggerProgram()
637 pSrc = targetSrcList(pParse, pTriggerStep); in codeTriggerProgram()
639 sqliteExprListDup(pTriggerStep->pExprList), in codeTriggerProgram()
640 sqliteSelectDup(pTriggerStep->pSelect), in codeTriggerProgram()
641 sqliteIdListDup(pTriggerStep->pIdList), orconf); in codeTriggerProgram()
647 pSrc = targetSrcList(pParse, pTriggerStep); in codeTriggerProgram()
648 sqliteDeleteFrom(pParse, pSrc, sqliteExprDup(pTriggerStep->pWhere)); in codeTriggerProgram()
656 pTriggerStep = pTriggerStep->pNext; in codeTriggerProgram()