diff options
author | drh <drh@noemail.net> | 2002-05-24 02:04:32 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-05-24 02:04:32 +0000 |
commit | ad3cab52fed9a86b8f8209c3dfca3ced8380ddfe (patch) | |
tree | 5cd345e58f1a31acf59aa2f23e396232805609b0 /src/trigger.c | |
parent | bd5a451d5d271712beeabe82ce2c299b2499020f (diff) | |
download | sqlite-ad3cab52fed9a86b8f8209c3dfca3ced8380ddfe.tar.gz sqlite-ad3cab52fed9a86b8f8209c3dfca3ced8380ddfe.zip |
Split the IdList structure into IdList and SrcList. SrcList is used to
represent a FROM clause and IdList is used for everything else. This change
allows SrcList to grow to support outer joins without burdening the other
uses of IdList. (CVS 584)
FossilOrigin-Name: a167b71d8c27e870bc3079c6132e483bffc83298
Diffstat (limited to 'src/trigger.c')
-rw-r--r-- | src/trigger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/trigger.c b/src/trigger.c index aedf08873..d53dff219 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -571,10 +571,10 @@ int sqliteCodeRowTrigger( if( fire_this && (pTriggerStack = sqliteMalloc(sizeof(TriggerStack)))!=0 ){ int endTrigger; - IdList dummyTablist; + SrcList dummyTablist; Expr * whenExpr; - dummyTablist.nId = 0; + dummyTablist.nSrc = 0; dummyTablist.a = 0; /* Push an entry on to the trigger stack */ @@ -645,7 +645,7 @@ void sqliteViewTriggers( theSelect.isDistinct = 0; theSelect.pEList = sqliteExprListAppend(0, sqliteExpr(TK_ALL, 0, 0, 0), 0); - theSelect.pSrc = sqliteIdListAppend(0, &tblNameToken); + theSelect.pSrc = sqliteSrcListAppend(0, &tblNameToken); theSelect.pWhere = pWhere; pWhere = 0; theSelect.pGroupBy = 0; theSelect.pHaving = 0; @@ -750,7 +750,7 @@ trigger_cleanup: sqliteExprListDelete(pChanges); sqliteExprDelete(pWhere); sqliteExprListDelete(theSelect.pEList); - sqliteIdListDelete(theSelect.pSrc); + sqliteSrcListDelete(theSelect.pSrc); sqliteExprDelete(theSelect.pWhere); return; } |