summaryrefslogtreecommitdiff
path: root/sql/sql_trigger.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-03-19 15:25:58 +0100
committerSergei Golubchik <sergii@pisem.net>2013-03-19 15:25:58 +0100
commite73f13a707a2bc8e19c7c1424342eec7545797ae (patch)
treed2b00407e01c05c3b206ba97014bb1f80bd351dc /sql/sql_trigger.cc
parentdb65e4f537c8774b0f6fe92a08cd28905f7b65a9 (diff)
downloadmariadb-git-e73f13a707a2bc8e19c7c1424342eec7545797ae.tar.gz
extend check_global_access() to avoid my_error when it's not needed
(in INFORMATION_SCHEMA).
Diffstat (limited to 'sql/sql_trigger.cc')
-rw-r--r--sql/sql_trigger.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_trigger.cc b/sql/sql_trigger.cc
index aff00f9fcf4..11f2007f0bc 100644
--- a/sql/sql_trigger.cc
+++ b/sql/sql_trigger.cc
@@ -701,10 +701,7 @@ bool Table_triggers_list::create_trigger(THD *thd, TABLE_LIST *tables,
thd->security_ctx->priv_host)))
{
if (check_global_access(thd, SUPER_ACL))
- {
- my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "SUPER");
return TRUE;
- }
}
/*