aboutsummaryrefslogtreecommitdiff
path: root/src/trigger.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2010-06-28 10:15:19 +0000
committerdan <dan@noemail.net>2010-06-28 10:15:19 +0000
commit1db95106ee48da9743f2d64bf1fdf7ba6d1442ed (patch)
tree7b19ee3eceab2e088cd7d02792dad180c8965db1 /src/trigger.c
parent7750ab48f55204c274ebf7ca5422b5397b2ef3de (diff)
downloadsqlite-1db95106ee48da9743f2d64bf1fdf7ba6d1442ed.tar.gz
sqlite-1db95106ee48da9743f2d64bf1fdf7ba6d1442ed.zip
Currently, if SQLite cannot find a table or index referred to by a query, it reloads the database schema from disk to see if the table or index has been added since the schema was cached in memory. Extend this behaviour to columns (which may have been added using ALTER TABLE) and fix some obscure cases related to tables and indexes (INDEXED BY, DROP TABLE etc.).
FossilOrigin-Name: 4932f22848b3d15a2b6dc5fa2cd69ce19182e2a4
Diffstat (limited to 'src/trigger.c')
-rw-r--r--src/trigger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/trigger.c b/src/trigger.c
index 66464bdae..27fc708d7 100644
--- a/src/trigger.c
+++ b/src/trigger.c
@@ -496,6 +496,7 @@ void sqlite3DropTrigger(Parse *pParse, SrcList *pName, int noErr){
if( !noErr ){
sqlite3ErrorMsg(pParse, "no such trigger: %S", pName, 0);
}
+ pParse->checkSchema = 1;
goto drop_trigger_cleanup;
}
sqlite3DropTriggerPtr(pParse, pTrigger);