diff options
author | cmiller@zippy.cornsilk.net <> | 2008-03-05 14:22:52 -0500 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2008-03-05 14:22:52 -0500 |
commit | fe7c9b6f0a61afaae28e27fc21bbfdb66f202b8e (patch) | |
tree | 918b976e2c0bc38130086c500d5afeb1304fe4e6 /mysql-test/r/grant.result | |
parent | ed9361df277676ecd488f1d1f89a986cd751f76b (diff) | |
parent | 8dacb206ae602ecf769a878f10febce46cc91896 (diff) | |
download | mariadb-git-fe7c9b6f0a61afaae28e27fc21bbfdb66f202b8e.tar.gz |
Merge zippy.cornsilk.net:/home/cmiller/work/mysql/bug#33464/my51-bug#33464
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.1-build
Diffstat (limited to 'mysql-test/r/grant.result')
-rw-r--r-- | mysql-test/r/grant.result | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result index c157e1d4706..a56cce50259 100644 --- a/mysql-test/r/grant.result +++ b/mysql-test/r/grant.result @@ -1306,4 +1306,43 @@ DROP DATABASE mysqltest1; RENAME TABLE mysql.procs_gone TO mysql.procs_priv; DROP USER mysqltest_1@localhost; FLUSH PRIVILEGES; +CREATE DATABASE dbbug33464; +CREATE USER 'userbug33464'@'localhost'; +GRANT CREATE ROUTINE ON dbbug33464.* TO 'userbug33464'@'localhost'; + +userbug33464@localhost dbbug33464 +DROP PROCEDURE IF EXISTS sp3; +DROP FUNCTION IF EXISTS fn1; +CREATE PROCEDURE sp3(v1 char(20)) +BEGIN +SELECT * from dbbug33464.t6 where t6.f2= 'xyz'; +END// +CREATE FUNCTION fn1() returns char(50) SQL SECURITY INVOKER +BEGIN +return 1; +END// +CREATE FUNCTION fn2() returns char(50) SQL SECURITY DEFINER +BEGIN +return 2; +END// +USE dbbug33464; + +root@localhost dbbug33464 +SELECT fn1(); +fn1() +1 +SELECT fn2(); +fn2() +2 +DROP USER 'userbug33464'@'localhost'; +DROP FUNCTION fn1; +Warnings: +Warning 1403 There is no such grant defined for user 'userbug33464' on host 'localhost' on routine 'fn1' +DROP FUNCTION fn2; +Warnings: +Warning 1403 There is no such grant defined for user 'userbug33464' on host 'localhost' on routine 'fn2' +DROP PROCEDURE sp3; +DROP USER 'userbug33464'@'localhost'; +use test; +DROP DATABASE dbbug33464; End of 5.1 tests |