diff options
author | unknown <anozdrin/alik@quad.> | 2008-03-12 16:13:33 +0300 |
---|---|---|
committer | unknown <anozdrin/alik@quad.> | 2008-03-12 16:13:33 +0300 |
commit | 326c4e90589dd87792eacfa6e8746bc486a10ba0 (patch) | |
tree | 949c8a892915fb127195051b1d08b313100f7a6b /sql/sql_prepare.cc | |
parent | aafb492d594776ead1014163461d30cbf9ca5772 (diff) | |
download | mariadb-git-326c4e90589dd87792eacfa6e8746bc486a10ba0.tar.gz |
A fix for Bug#34643: TRUNCATE crash if trigger and foreign key.
In cases when TRUNCATE was executed by invoking mysql_delete() rather
than by table recreation (for example, when TRUNCATE was issued on
InnoDB table with is referenced by foreign key) triggers were invoked.
In debug builds this also led to crash because of an assertion, which
assumes that some preliminary actions take place before trigger
invocation, which doesn't happen in case of TRUNCATE.
The fix is not to execute triggers in mysql_delete() when this
function is used by TRUNCATE.
mysql-test/r/trigger-trans.result:
Update result file.
mysql-test/t/trigger-trans.test:
A test case for Bug#34643: TRUNCATE crash if trigger and foreign key.
sql/sql_delete.cc:
Do not process triggers in TRUNCATE.
Diffstat (limited to 'sql/sql_prepare.cc')
0 files changed, 0 insertions, 0 deletions