Debian Codegraph @

mysql-test/suite/s3/partition_create_fail.test

raw
1 --source include/have_partition.inc
2 --source include/have_s3.inc
3 --source include/have_debug.inc
4 --source include/have_innodb.inc
5 --source include/have_sequence.inc
6 --source create_database.inc
7
8 SET @saved_dbug = @@debug_dbug;
9
10 # Test failure in create of partition table
11
12 CREATE TABLE p0 (
13 c1 int primary key,
14 c2 int DEFAULT NULL
15 ) ENGINE=InnoDB;
16 insert into p0 select seq,seq from seq_1_to_10;
17
18 SET debug_dbug='+d,failed_create_partitioning_metadata';
19
20 --error 1041
21 alter table p0 engine=s3
22 PARTITION BY RANGE (c1)
23 (PARTITION p0 VALUES LESS THAN (100));
24
25 SET debug_dbug=@saved_dbug;
26
27 drop table p0;
28
29 # If something went wrong, then we have a copy of the .frm file in S3 and
30 # the following drop table will not fail
31
32 --replace_result $database s3
33 --error ER_BAD_TABLE_ERROR
34 drop table p0;
35
36 #
37 # clean up
38 #
39 --source drop_database.inc