mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #33813: Schema names are case-sensitive in DROP FUNCTION
The parser was not using the correct fully-qualified-name production for DROP FUNCTION. Fixed by copying the production from DROP PROCEDURE. Tested in the windows specific suite to make sure it's tested on a case-insensitive file system.
This commit is contained in:
@@ -19,4 +19,22 @@ 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.
|
||||
|
||||
Reference in New Issue
Block a user