Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
258b84d6
Commit
258b84d6
authored
Sep 24, 2004
by
dlenev@brandersnatch.localdomain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For now we will require super privilege for creating/dropping trigger because proper
privilege checking is not in place yet.
parent
8cd9fd44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
sql/sql_trigger.cc
sql/sql_trigger.cc
+8
-1
No files found.
sql/sql_trigger.cc
View file @
258b84d6
...
...
@@ -2,6 +2,7 @@
#include "sp_head.h"
#include "sql_trigger.h"
#include "parse_file.h"
#include "sql_acl.h"
static
const
LEX_STRING
triggers_file_type
=
{(
char
*
)
"TRIGGERS"
,
8
};
...
...
@@ -54,7 +55,13 @@ int mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
if
(
open_and_lock_tables
(
thd
,
tables
))
DBUG_RETURN
(
-
1
);
// TODO: We should check if user has TRIGGER privilege for table here.
/*
TODO: We should check if user has TRIGGER privilege for table here.
Now we just require SUPER privilege for creating/dropping because
we don't have proper privilege checking for triggers in place yet.
*/
if
(
check_global_access
(
thd
,
SUPER_ACL
))
DBUG_RETURN
(
1
);
table
=
tables
->
table
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment