mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
sp-security.result, sp.result, sp-security.test, sp.test:
Test for bug#12812 moved from sp.test to sp-security.test mysql-test/t/sp.test: Test for bug#12812 moved from sp.test to sp-security.test mysql-test/t/sp-security.test: Test for bug#12812 moved from sp.test to sp-security.test mysql-test/r/sp.result: Test for bug#12812 moved from sp.test to sp-security.test mysql-test/r/sp-security.result: Test for bug#12812 moved from sp.test to sp-security.test
This commit is contained in:
parent
11541107b8
commit
ccb796a9ce
4 changed files with 36 additions and 34 deletions
|
|
@ -412,4 +412,28 @@ drop database mysqltest_1;
|
|||
revoke usage on *.* from mysqltest_1@localhost;
|
||||
drop user mysqltest_1@localhost;
|
||||
|
||||
#
|
||||
# BUG#12812 create view calling a function works without execute right
|
||||
# on function
|
||||
delimiter |;
|
||||
--disable_warnings
|
||||
drop function if exists bug12812|
|
||||
--enable_warnings
|
||||
create function bug12812() returns char(2)
|
||||
begin
|
||||
return 'ok';
|
||||
end;
|
||||
create user user_bug12812@localhost IDENTIFIED BY 'ABC'|
|
||||
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
|
||||
connect (test_user_12812,localhost,user_bug12812,ABC,test)|
|
||||
--error 1370
|
||||
SELECT test.bug12812()|
|
||||
--error 1370
|
||||
CREATE VIEW v1 AS SELECT test.bug12812()|
|
||||
# Cleanup
|
||||
connection default|
|
||||
disconnect test_user_12812|
|
||||
DROP USER user_bug12812@localhost|
|
||||
drop function bug12812|
|
||||
delimiter ;|
|
||||
# End of 5.0 bugs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue