diff options
author | drh <drh@noemail.net> | 2003-05-17 19:04:03 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-05-17 19:04:03 +0000 |
commit | 79a519c04743df1e04df149f357dc417d18fea3c (patch) | |
tree | 329bac8c02a4b1b431f18da02bf8ec0279e01850 /src/sqliteInt.h | |
parent | 24f1eb74c860d60782a9149a23f8f6b295b61b87 (diff) | |
download | sqlite-79a519c04743df1e04df149f357dc417d18fea3c.tar.gz sqlite-79a519c04743df1e04df149f357dc417d18fea3c.zip |
Prevent an infinite loop when deleting a table that has a TEMP trigger. (CVS 984)
FossilOrigin-Name: c8c823b068916711857fa67db10fb479999b55c2
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 93b4dcc28..699facf80 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.185 2003/05/17 17:35:12 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.186 2003/05/17 19:04:04 drh Exp $ */ #include "config.h" #include "sqlite.h" @@ -893,6 +893,7 @@ struct Trigger { char *name; /* The name of the trigger */ char *table; /* The table or view to which the trigger applies */ u8 iDb; /* Database containing this trigger */ + u8 iTabDb; /* Database containing Trigger.table */ u8 op; /* One of TK_DELETE, TK_UPDATE, TK_INSERT */ u8 tr_tm; /* One of TK_BEFORE, TK_AFTER */ Expr *pWhen; /* The WHEN clause of the expresion (may be NULL) */ @@ -1135,7 +1136,8 @@ int sqliteSafetyCheck(sqlite*); void sqliteChangeCookie(sqlite*, Vdbe*); void sqliteBeginTrigger(Parse*, Token*,int,int,IdList*,SrcList*,int,Expr*,int); void sqliteFinishTrigger(Parse*, TriggerStep*, Token*); -void sqliteDropTrigger(Parse*, SrcList*, int); +void sqliteDropTrigger(Parse*, SrcList*); +void sqliteDropTriggerPtr(Parse*, Trigger*, int); int sqliteTriggersExist(Parse* , Trigger* , int , int , int, ExprList*); int sqliteCodeRowTrigger(Parse*, int, ExprList*, int, Table *, int, int, int, int); |