mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/12812-bug-5.0-mysql
This commit is contained in:
@ -3206,6 +3206,18 @@ set f1= concat( 'hello', f1 );
|
||||
return f1;
|
||||
end|
|
||||
drop function bug9048|
|
||||
drop function if exists bug12812|
|
||||
create function bug12812() returns char(2)
|
||||
begin
|
||||
return 'ok';
|
||||
end;
|
||||
create user user_bug12812@localhost IDENTIFIED BY 'ABC'|
|
||||
SELECT test.bug12812()|
|
||||
ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
|
||||
CREATE VIEW v1 AS SELECT test.bug12812()|
|
||||
ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
|
||||
DROP USER user_bug12812@localhost|
|
||||
drop function bug12812|
|
||||
drop procedure if exists bug12849_1|
|
||||
create procedure bug12849_1(inout x char) select x into x|
|
||||
set @var='a'|
|
||||
|
@ -4038,6 +4038,27 @@ end|
|
||||
drop function bug9048|
|
||||
|
||||
#
|
||||
# BUG#12812 create view calling a function works without execute right
|
||||
# on function
|
||||
--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|
|
||||
# Bug #12849 Stored Procedure: Crash on procedure call with CHAR type
|
||||
# 'INOUT' parameter
|
||||
#
|
||||
|
Reference in New Issue
Block a user