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
6efa4897
Commit
6efa4897
authored
Feb 06, 2008
by
davi@endora.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into mysql.com:/Users/davi/mysql/mysql-5.1-runtime
parents
3b60dc73
2af5e25c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+5
-0
mysql-test/t/show_check.test
mysql-test/t/show_check.test
+19
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
No files found.
mysql-test/r/show_check.result
View file @
6efa4897
...
...
@@ -1427,4 +1427,9 @@ DROP FUNCTION f1;
DROP TABLE t1;
DROP EVENT ev1;
SHOW TABLE TYPES;
CREATE USER test_u@localhost;
GRANT PROCESS ON *.* TO test_u@localhost;
SHOW ENGINE MYISAM MUTEX;
SHOW ENGINE MYISAM STATUS;
DROP USER test_u@localhost;
End of 5.1 tests
mysql-test/t/show_check.test
View file @
6efa4897
...
...
@@ -1115,5 +1115,24 @@ DROP EVENT ev1;
SHOW
TABLE
TYPES
;
--
enable_result_log
#
# Bug #32710: SHOW INNODB STATUS requires SUPER
#
CREATE
USER
test_u
@
localhost
;
GRANT
PROCESS
ON
*.*
TO
test_u
@
localhost
;
connect
(
conn1
,
localhost
,
test_u
,,);
--
disable_result_log
SHOW
ENGINE
MYISAM
MUTEX
;
SHOW
ENGINE
MYISAM
STATUS
;
--
enable_result_log
disconnect
conn1
;
connection
default
;
DROP
USER
test_u
@
localhost
;
--
echo
End
of
5.1
tests
sql/sql_parse.cc
View file @
6efa4897
...
...
@@ -2271,14 +2271,14 @@ mysql_execute_command(THD *thd)
#endif
/* HAVE_REPLICATION */
case
SQLCOM_SHOW_ENGINE_STATUS
:
{
if
(
check_global_access
(
thd
,
SUPER
_ACL
))
if
(
check_global_access
(
thd
,
PROCESS
_ACL
))
goto
error
;
res
=
ha_show_status
(
thd
,
lex
->
create_info
.
db_type
,
HA_ENGINE_STATUS
);
break
;
}
case
SQLCOM_SHOW_ENGINE_MUTEX
:
{
if
(
check_global_access
(
thd
,
SUPER
_ACL
))
if
(
check_global_access
(
thd
,
PROCESS
_ACL
))
goto
error
;
res
=
ha_show_status
(
thd
,
lex
->
create_info
.
db_type
,
HA_ENGINE_MUTEX
);
break
;
...
...
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