summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/innodb/t/dropdb.test
blob: f27aede78ec441d2880c2a72ec0ef935bfd31d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--source include/have_innodb.inc

SET NAMES utf8;
call mtr.add_suppression("Invalid .old.. table or database name");

--echo #
--echo # Bug #19929435 DROP DATABASE HANGS WITH MALFORMED TABLE
--echo #

set session default_storage_engine=innodb;
create database `b`;
use `b`;
--error ER_WRONG_TABLE_NAME
create table `#mysql50#q.q` select 1;
create table `#mysql50#q·q` select 1;
drop database `b`;

--echo #
--echo # MDEV-27336 Crash on DROP DATABASE due to out-of-bounds result
--echo # from InnoDB SUBSTR() function
--echo #
USE test;
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
CREATE TABLE t2(a INT PRIMARY KEY REFERENCES t1(a)) ENGINE=InnoDB;
CREATE DATABASE somewhat_longer_name_to_cause_trouble;
DROP DATABASE somewhat_longer_name_to_cause_trouble;
DROP TABLE t2,t1;