diff options
author | dan <dan@noemail.net> | 2009-09-28 14:49:01 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2009-09-28 14:49:01 +0000 |
commit | d66c83095edcfb0f26e7ddf24f28455048d02b12 (patch) | |
tree | afb321fdcb5fb10572e6b895a621ca79b8166b19 /src/build.c | |
parent | 9277efa3d576ab243077404bb5966f9a67a73004 (diff) | |
download | sqlite-d66c83095edcfb0f26e7ddf24f28455048d02b12.tar.gz sqlite-d66c83095edcfb0f26e7ddf24f28455048d02b12.zip |
Fix the DROP TABLE command so that it cannot be used to bypass foreign key constraints (if foreign key support is enabled).
FossilOrigin-Name: 8353808c9e70412fdee31bfda7810e948f1c7485
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c index 544014df2..215b3c0a9 100644 --- a/src/build.c +++ b/src/build.c @@ -2061,6 +2061,7 @@ void sqlite3DropTable(Parse *pParse, SrcList *pName, int isView, int noErr){ sqlite3VdbeAddOp0(v, OP_VBegin); } #endif + sqlite3FkDropTable(pParse, pName, pTab); /* Drop all triggers associated with the table being dropped. Code ** is generated to remove entries from sqlite_master and/or |