diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2009-08-14 00:49:28 +0500 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2009-08-14 00:49:28 +0500 |
commit | 3b1280fa7eb411fdeaf60cbf023ff2580caecce7 (patch) | |
tree | dbcd2c58adcc0e19afc8c2b044950d3b8fac0e39 /sql/sql_show.cc | |
parent | fce4fa362c5234f1e85212060f61b842844192b7 (diff) | |
download | mariadb-git-3b1280fa7eb411fdeaf60cbf023ff2580caecce7.tar.gz |
Fix for bug #46614: Assertion in show_create_trigger()
on SHOW CREATE TRIGGER + MERGE table
Problem: SHOW CREATE TRIGGER erroneously relies on fact
that we have the only underlying table for a trigger
(wrong for merge tables).
Fix: remove erroneous assert().
mysql-test/r/merge.result:
Fix for bug #46614: Assertion in show_create_trigger()
on SHOW CREATE TRIGGER + MERGE table
- test result.
mysql-test/t/merge.test:
Fix for bug #46614: Assertion in show_create_trigger()
on SHOW CREATE TRIGGER + MERGE table
- test case.
sql/sql_show.cc:
Fix for bug #46614: Assertion in show_create_trigger()
on SHOW CREATE TRIGGER + MERGE table
- unnecessary assert() removed as we may have more than 1
tables open e.g. for a merge table.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index ae75609e2b6..5c2c351652b 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -7071,8 +7071,6 @@ bool show_create_trigger(THD *thd, const sp_name *trg_name) /* Perform closing actions and return error status. */ } - DBUG_ASSERT(num_tables == 1); - Table_triggers_list *triggers= lst->table->triggers; if (!triggers) |