Debian Codegraph @

storage/myisammrg/mysql-test/storage_engine/create_table.rdiff

raw
1 --- create_table.result
2 +++ create_table.reject
3 @@ -4,7 +4,7 @@
4 Table Create Table
5 t1 CREATE TABLE `t1` (
6 `a` int(11) DEFAULT NULL
7 -) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
8 +) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
9 CREATE TABLE IF NOT EXISTS t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
10 Warnings:
11 Note 1050 Table 't1' already exists
12 @@ -13,33 +13,32 @@
13 Table Create Table
14 t2 CREATE TABLE `t2` (
15 `a` int(11) DEFAULT NULL
16 -) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
17 +) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
18 CREATE TEMPORARY TABLE t2 LIKE t1;
19 SHOW CREATE TABLE t2;
20 Table Create Table
21 t2 CREATE TEMPORARY TABLE `t2` (
22 `a` int(11) DEFAULT NULL
23 -) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
24 +) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
25 DROP TEMPORARY TABLE t2;
26 DROP TABLE t2;
27 DROP TABLE IF EXISTS t1;
28 CREATE TABLE t1 ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> AS SELECT 1 UNION SELECT 2;
29 -SHOW CREATE TABLE t1;
30 -Table Create Table
31 -t1 CREATE TABLE `t1` (
32 - `1` int(1) NOT NULL DEFAULT 0
33 -) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
34 -SELECT * FROM t1;
35 -1
36 -1
37 -2
38 -DROP TABLE t1;
39 +ERROR HY000: 'test.t1' is not of type 'BASE TABLE'
40 +# ERROR: Statement ended with errno 1347, errname ER_WRONG_OBJECT (expected to succeed)
41 +# ------------ UNEXPECTED RESULT ------------
42 +# The statement|command finished with ER_WRONG_OBJECT.
43 +# CREATE TABLE .. AS SELECT or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors.
44 +# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
45 +# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
46 +# Also, this problem may cause a chain effect (more errors of different kinds in the test).
47 +# -------------------------------------------
48 SET storage_engine = <STORAGE_ENGINE>;
49 CREATE TABLE t1 (a <INT_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
50 SHOW CREATE TABLE t1;
51 Table Create Table
52 t1 CREATE TABLE `t1` (
53 `a` int(11) DEFAULT NULL
54 -) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1
55 +) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INSERT_METHOD=LAST UNION=(`mrg`.`t1`)
56 FLUSH LOGS;
57 DROP TABLE IF EXISTS t1;