summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorgkodinov/kgeorge@magare.gmz <>2007-11-01 14:42:14 +0200
committergkodinov/kgeorge@magare.gmz <>2007-11-01 14:42:14 +0200
commit447eff2d98af4bd229f71e109ae568d4155c30cf (patch)
tree34b3355266eebc8861aacffbc0116de7ac5f2f19 /sql/sql_show.cc
parent69ed192e7277556f4e2ca487967322be7fe7edf7 (diff)
downloadmariadb-git-447eff2d98af4bd229f71e109ae568d4155c30cf.tar.gz
Bug #31866: MySQL Server crashes on SHOW CREATE TRIGGER statement
SHOW CREATE TRIGGER was not checking for detected errors opening/reading the trigger file. Fixed to return the already generated error.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 049c050c288..1969472dff4 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -6862,6 +6862,9 @@ bool show_create_trigger(THD *thd, const sp_name *trg_name)
{
TABLE_LIST *lst= get_trigger_table(thd, trg_name);
+ if (!lst)
+ return TRUE;
+
/*
Open the table by name in order to load Table_triggers_list object.