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
931cf68b
Commit
931cf68b
authored
Nov 30, 2006
by
kostja@bodhi.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A post-merge fix: fix the failing trigger-grant.test.
parent
bdf6d15f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
sql/sql_trigger.cc
sql/sql_trigger.cc
+16
-16
No files found.
sql/sql_trigger.cc
View file @
931cf68b
...
...
@@ -199,22 +199,6 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
DBUG_RETURN
(
TRUE
);
}
/*
Check that the user has TRIGGER privilege on the subject table.
*/
{
bool
err_status
;
TABLE_LIST
**
save_query_tables_own_last
=
thd
->
lex
->
query_tables_own_last
;
thd
->
lex
->
query_tables_own_last
=
0
;
err_status
=
check_table_access
(
thd
,
TRIGGER_ACL
,
tables
,
0
);
thd
->
lex
->
query_tables_own_last
=
save_query_tables_own_last
;
if
(
err_status
)
DBUG_RETURN
(
TRUE
);
}
/*
There is no DETERMINISTIC clause for triggers, so can't check it.
But a trigger can in theory be used to do nasty things (if it supported
...
...
@@ -268,6 +252,22 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
}
}
/*
Check that the user has TRIGGER privilege on the subject table.
*/
{
bool
err_status
;
TABLE_LIST
**
save_query_tables_own_last
=
thd
->
lex
->
query_tables_own_last
;
thd
->
lex
->
query_tables_own_last
=
0
;
err_status
=
check_table_access
(
thd
,
TRIGGER_ACL
,
tables
,
0
);
thd
->
lex
->
query_tables_own_last
=
save_query_tables_own_last
;
if
(
err_status
)
goto
end
;
}
/* We should have only one table in table list. */
DBUG_ASSERT
(
tables
->
next_global
==
0
);
...
...
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