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
ff34436a
Commit
ff34436a
authored
Aug 03, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#27230925: HANDLE_FATAL_SIGNAL (SIG=11) IN SHOW_ROUTINE_GRANTS
test case
parent
14ddcb1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/grant.result
mysql-test/r/grant.result
+21
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+21
-0
No files found.
mysql-test/r/grant.result
View file @
ff34436a
...
...
@@ -2581,3 +2581,24 @@ foo@localhost foo@127.0.0.1
# Clean-up
DROP USER foo@'127.0.0.1';
# End of Bug#12766319
create user foo@localhost;
create database foodb;
grant create routine on foodb.* to foo@localhost;
create procedure fooproc() select 'i am fooproc';
show grants;
Grants for foo@localhost
GRANT USAGE ON *.* TO 'foo'@'localhost'
GRANT CREATE ROUTINE ON `foodb`.* TO 'foo'@'localhost'
GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `test`.`fooproc` TO 'foo'@'localhost'
rename table mysql.procs_priv to mysql.procs_priv1;
flush privileges;
ERROR 42S02: Table 'mysql.procs_priv' doesn't exist
show grants for foo@localhost;
Grants for foo@localhost
GRANT USAGE ON *.* TO 'foo'@'localhost'
GRANT CREATE ROUTINE ON `foodb`.* TO 'foo'@'localhost'
GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `test`.`fooproc` TO 'foo'@'localhost'
rename table mysql.procs_priv1 to mysql.procs_priv;
drop user foo@localhost;
drop procedure fooproc;
drop database foodb;
mysql-test/t/grant.test
View file @
ff34436a
...
...
@@ -2244,5 +2244,26 @@ DROP USER foo@'127.0.0.1';
--
echo
# End of Bug#12766319
#
# Bug#27230925: HANDLE_FATAL_SIGNAL (SIG=11) IN SHOW_ROUTINE_GRANTS
#
create
user
foo
@
localhost
;
create
database
foodb
;
grant
create
routine
on
foodb
.*
to
foo
@
localhost
;
connect
con1
,
localhost
,
foo
;
create
procedure
fooproc
()
select
'i am fooproc'
;
show
grants
;
disconnect
con1
;
connection
default
;
rename
table
mysql
.
procs_priv
to
mysql
.
procs_priv1
;
error
ER_NO_SUCH_TABLE
;
flush
privileges
;
show
grants
for
foo
@
localhost
;
rename
table
mysql
.
procs_priv1
to
mysql
.
procs_priv
;
drop
user
foo
@
localhost
;
drop
procedure
fooproc
;
drop
database
foodb
;
# Wait till we reached the initial number of concurrent sessions
--
source
include
/
wait_until_count_sessions
.
inc
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