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
c6099bac
Commit
c6099bac
authored
Feb 06, 2008
by
unknown
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
9f8fb5ed
3616b913
Changes
3
Show 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 @
c6099bac
...
@@ -1427,4 +1427,9 @@ DROP FUNCTION f1;
...
@@ -1427,4 +1427,9 @@ DROP FUNCTION f1;
DROP TABLE t1;
DROP TABLE t1;
DROP EVENT ev1;
DROP EVENT ev1;
SHOW TABLE TYPES;
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
End of 5.1 tests
mysql-test/t/show_check.test
View file @
c6099bac
...
@@ -1115,5 +1115,24 @@ DROP EVENT ev1;
...
@@ -1115,5 +1115,24 @@ DROP EVENT ev1;
SHOW
TABLE
TYPES
;
SHOW
TABLE
TYPES
;
--
enable_result_log
--
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
--
echo
End
of
5.1
tests
sql/sql_parse.cc
View file @
c6099bac
...
@@ -2271,14 +2271,14 @@ mysql_execute_command(THD *thd)
...
@@ -2271,14 +2271,14 @@ mysql_execute_command(THD *thd)
#endif
/* HAVE_REPLICATION */
#endif
/* HAVE_REPLICATION */
case
SQLCOM_SHOW_ENGINE_STATUS
:
case
SQLCOM_SHOW_ENGINE_STATUS
:
{
{
if
(
check_global_access
(
thd
,
SUPER
_ACL
))
if
(
check_global_access
(
thd
,
PROCESS
_ACL
))
goto
error
;
goto
error
;
res
=
ha_show_status
(
thd
,
lex
->
create_info
.
db_type
,
HA_ENGINE_STATUS
);
res
=
ha_show_status
(
thd
,
lex
->
create_info
.
db_type
,
HA_ENGINE_STATUS
);
break
;
break
;
}
}
case
SQLCOM_SHOW_ENGINE_MUTEX
:
case
SQLCOM_SHOW_ENGINE_MUTEX
:
{
{
if
(
check_global_access
(
thd
,
SUPER
_ACL
))
if
(
check_global_access
(
thd
,
PROCESS
_ACL
))
goto
error
;
goto
error
;
res
=
ha_show_status
(
thd
,
lex
->
create_info
.
db_type
,
HA_ENGINE_MUTEX
);
res
=
ha_show_status
(
thd
,
lex
->
create_info
.
db_type
,
HA_ENGINE_MUTEX
);
break
;
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