~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/suite/falcon/t/falcon_bug_31110.test

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/have_falcon.inc
 
2
#
 
3
# Bug #31110: falcon: missing engine check while dropping tablespace
 
4
#
 
5
--echo *** Bug #31110 ***
 
6
 
 
7
# ----------------------------------------------------- #
 
8
# --- Initialisation                                --- #
 
9
# ----------------------------------------------------- #
 
10
let $engine = 'Falcon';
 
11
let $other_engine = 'MyISAM';
 
12
eval SET @@storage_engine = $engine;
 
13
 
 
14
--disable_warnings
 
15
DROP TABLE IF EXISTS t1;
 
16
--error 0,ER_NO_SUCH_TABLESPACE
 
17
eval DROP TABLESPACE ts1 ENGINE $engine;
 
18
--enable_warnings
 
19
 
 
20
 
 
21
# ----------------------------------------------------- #
 
22
# --- Test                                          --- #
 
23
# ----------------------------------------------------- #
 
24
--error ER_ILLEGAL_HA_CREATE_OPTION
 
25
eval CREATE TABLESPACE ts1 ADD DATAFILE 'ts1.fts' ENGINE $other_engine;
 
26
 
 
27
# ----------------------------------------------------- #
 
28
# --- Check                                         --- #
 
29
# ----------------------------------------------------- #
 
30
# No check applicable here.
 
31
#SELECT count(*) FROM t1;
 
32
 
 
33
# ----------------------------------------------------- #
 
34
# --- Final cleanup                                 --- #
 
35
# ----------------------------------------------------- #
 
36
# No cleanup necessary in this case.
 
37
#DROP TABLE t1;