diff options
author | Georgi Kodinov <joro@sun.com> | 2009-02-12 11:52:01 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-02-12 11:52:01 +0200 |
commit | ccca4feca8c4134ef00ca1acaba32ff553c4c947 (patch) | |
tree | 56ed03b2498008b29f1067508a635d28bb21c0e3 /mysql-test | |
parent | b8149f09d6e6ebaa31ced521ba7a9a4eca71715c (diff) | |
parent | 7df0e72c7ffe41e50da38ff0730c2668156a9f48 (diff) | |
download | mariadb-git-ccca4feca8c4134ef00ca1acaba32ff553c4c947.tar.gz |
merged bug 33813 to 5.1-bugteam
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/windows.result | 18 | ||||
-rwxr-xr-x | mysql-test/t/windows.test | 31 |
2 files changed, 49 insertions, 0 deletions
diff --git a/mysql-test/r/windows.result b/mysql-test/r/windows.result index d056bde4dca..4e0d73ea0eb 100644 --- a/mysql-test/r/windows.result +++ b/mysql-test/r/windows.result @@ -19,6 +19,24 @@ id select_type table type possible_keys key key_len ref rows Extra 1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables 2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used DROP TABLE t1; +CREATE DATABASE `TESTDB`; +USE `TESTDB`; +CREATE FUNCTION test_fn() RETURNS INTEGER +BEGIN +DECLARE rId bigint; +RETURN rId; +END +// +CREATE FUNCTION test_fn2() RETURNS INTEGER +BEGIN +DECLARE rId bigint; +RETURN rId; +END +// +DROP FUNCTION `TESTDB`.`test_fn`; +DROP FUNCTION `testdb`.`test_fn2`; +USE test; +DROP DATABASE `TESTDB`; End of 5.0 tests. drop procedure if exists proc_1; create procedure proc_1() install plugin my_plug soname '\\root\\some_plugin.dll'; diff --git a/mysql-test/t/windows.test b/mysql-test/t/windows.test index 6871caaa756..89cd2ed19e8 100755 --- a/mysql-test/t/windows.test +++ b/mysql-test/t/windows.test @@ -35,6 +35,37 @@ CREATE TABLE t1 (a int, b int); INSERT INTO t1 VALUES (1,1); EXPLAIN SELECT * FROM t1 WHERE b = (SELECT max(2)); DROP TABLE t1; +# +# Bug #33813: Schema names are case-sensitive in DROP FUNCTION +# + +CREATE DATABASE `TESTDB`; + +USE `TESTDB`; +DELIMITER //; + +CREATE FUNCTION test_fn() RETURNS INTEGER +BEGIN +DECLARE rId bigint; +RETURN rId; +END +// + +CREATE FUNCTION test_fn2() RETURNS INTEGER +BEGIN +DECLARE rId bigint; +RETURN rId; +END +// + +DELIMITER ;// + +DROP FUNCTION `TESTDB`.`test_fn`; +DROP FUNCTION `testdb`.`test_fn2`; + +USE test; +DROP DATABASE `TESTDB`; + --echo End of 5.0 tests. --disable_warnings |