Suppose I have some operation (let it be INSERT) on a MyISAM table with a trigger attached to it.
I know that MySQL does implicit table locks while running this INSERT.
Question: Will the trigger be run inside this implicit lock? Will the tables used in the trigger be locked by this lock?
In other words, is execution of the trigger a part of the atomic operation (such as my INSERT)?
BTW, what about InnoDB? the same? is the trigger wrapped into an explicit transaction?