summaryrefslogtreecommitdiff
path: root/mysql-test/t/windows.test
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-02-12 11:27:06 +0200
committerGeorgi Kodinov <joro@sun.com>2009-02-12 11:27:06 +0200
commit7df0e72c7ffe41e50da38ff0730c2668156a9f48 (patch)
tree3defd2966e68cfab964e0e708f9878d013d5935e /mysql-test/t/windows.test
parent4568152518d075ec543bcc55b77241e4a5bf7c17 (diff)
parent0669b79363b940c4673d972d1fa8142c2d3e0823 (diff)
downloadmariadb-git-7df0e72c7ffe41e50da38ff0730c2668156a9f48.tar.gz
merged bug 33813 to 5.0-bugteam
Diffstat (limited to 'mysql-test/t/windows.test')
-rwxr-xr-xmysql-test/t/windows.test31
1 files changed, 31 insertions, 0 deletions
diff --git a/mysql-test/t/windows.test b/mysql-test/t/windows.test
index 6e6a7ec93a3..adaf8d3ea17 100755
--- a/mysql-test/t/windows.test
+++ b/mysql-test/t/windows.test
@@ -35,4 +35,35 @@ 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.