1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Do not allow triggers on the SQLITE_MASTER table. (CVS 579)

FossilOrigin-Name: 275ba356f351abcf9a079ac16b765c9443750f0e
This commit is contained in:
drh
2002-05-23 00:30:31 +00:00
parent 97fc3d060a
commit 1873cd508a
7 changed files with 34 additions and 18 deletions

View File

@@ -60,6 +60,12 @@ void sqliteCreateTrigger(
pParse->nErr++;
goto trigger_cleanup;
}
if( sqliteStrICmp(tab->zName, MASTER_NAME)==0 ){
sqliteSetString(&pParse->zErrMsg, "cannot create trigger on system "
"table: " MASTER_NAME, 0);
pParse->nErr++;
goto trigger_cleanup;
}
}
/* Build the Trigger object */