mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
0669b79363
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. mysql-test/r/windows.result: Bug #33813: test case mysql-test/t/windows.test: Bug #33813: test case sql/sql_yacc.yy: Bug #33813: use the correct production for the name in DROP PROCEDURE
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
use lpt1;
|
|
ERROR 42000: Unknown database 'lpt1'
|
|
use com1;
|
|
ERROR 42000: Unknown database 'com1'
|
|
use prn;
|
|
ERROR 42000: Unknown database 'prn'
|
|
create table nu (a int);
|
|
drop table nu;
|
|
drop table if exists t1;
|
|
CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM;
|
|
Warnings:
|
|
Warning 0 DATA DIRECTORY option ignored
|
|
Warning 0 INDEX DIRECTORY option ignored
|
|
drop table t1;
|
|
CREATE TABLE t1 (a int, b int);
|
|
INSERT INTO t1 VALUES (1,1);
|
|
EXPLAIN SELECT * FROM t1 WHERE b = (SELECT max(2));
|
|
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.
|