~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/suite/falcon/t/falcon_bug_34617.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
#
 
4
# Bug #34617: Falcon assertion in StorageHandler::addTable, line 622
 
5
# Bug #36927: Falcon: crash altering table's tablespace
 
6
#
 
7
# NOTE: #36927 is a duplicate.
 
8
#
 
9
# See also falcon_bug_33723.test
 
10
# (ALTER TABLE into non-existing Falcon tablespace blocks further ALTERs)
 
11
#
 
12
 
 
13
--echo *** Bug 34617 ***
 
14
 
 
15
# ----------------------------------------------------- #
 
16
# --- Initialisation                                --- #
 
17
# ----------------------------------------------------- #
 
18
let $engine = 'Falcon';
 
19
eval SET @@storage_engine = $engine;
 
20
 
 
21
--disable_warnings
 
22
DROP TABLE IF EXISTS t1;
 
23
--enable_warnings
 
24
 
 
25
CREATE TABLE t1(a INT);
 
26
 
 
27
# ----------------------------------------------------- #
 
28
# --- Test                                          --- #
 
29
# ----------------------------------------------------- #
 
30
 
 
31
## Should fail gracefully
 
32
--error ER_NO_SUCH_TABLESPACE
 
33
ALTER TABLE t1 TABLESPACE nosuchtablespace;
 
34
 
 
35
## Should fail with same error as above
 
36
--error ER_NO_SUCH_TABLESPACE
 
37
ALTER TABLE t1 TABLESPACE nosuchtablespace;
 
38
 
 
39
# ----------------------------------------------------- #
 
40
# --- Final cleanup                                 --- #
 
41
# ----------------------------------------------------- #
 
42
DROP TABLE t1;