Debian Codegraph @

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

raw
1 --- vcol.result
2 +++ vcol.reject
3 @@ -1,69 +1,12 @@
4 DROP TABLE IF EXISTS t1;
5 CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1)) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
6 -SHOW COLUMNS IN t1;
7 -Field Type Null Key Default Extra
8 -a int(11) # #
9 -b int(11) # # VIRTUAL GENERATED
10 -INSERT INTO t1 (a) VALUES (1),(2);
11 -INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
12 -Warnings:
13 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
14 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
15 -SELECT a,b FROM t1;
16 -a b
17 -1 2
18 -2 3
19 -3 4
20 -4 5
21 -DROP TABLE t1;
22 -CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1) PERSISTENT) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
23 -SHOW COLUMNS IN t1;
24 -Field Type Null Key Default Extra
25 -a int(11) # #
26 -b int(11) # # STORED GENERATED
27 -INSERT INTO t1 (a) VALUES (1),(2);
28 -INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
29 -Warnings:
30 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
31 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
32 -SELECT a,b FROM t1;
33 -a b
34 -1 2
35 -2 3
36 -3 4
37 -4 5
38 -DROP TABLE t1;
39 -CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> GENERATED ALWAYS AS (a+1) VIRTUAL) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
40 -SHOW COLUMNS IN t1;
41 -Field Type Null Key Default Extra
42 -a int(11) # #
43 -b int(11) # # VIRTUAL GENERATED
44 -INSERT INTO t1 (a) VALUES (1),(2);
45 -INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
46 -Warnings:
47 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
48 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
49 -SELECT a,b FROM t1;
50 -a b
51 -1 2
52 -2 3
53 -3 4
54 -4 5
55 -DROP TABLE t1;
56 -CREATE TABLE t1 (a <INT_COLUMN>, b <INT_COLUMN> AS (a+1) PERSISTENT) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
57 -SHOW COLUMNS IN t1;
58 -Field Type Null Key Default Extra
59 -a int(11) # #
60 -b int(11) # # STORED GENERATED
61 -INSERT INTO t1 (a) VALUES (1),(2);
62 -INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
63 -Warnings:
64 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
65 -Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
66 -SELECT a,b FROM t1;
67 -a b
68 -1 2
69 -2 3
70 -3 4
71 -4 5
72 -DROP TABLE t1;
73 +ERROR HY000: MRG_MyISAM storage engine does not support generated columns
74 +# ERROR: Statement ended with errno 1910, errname ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS (expected to succeed)
75 +# ------------ UNEXPECTED RESULT ------------
76 +# [ CREATE TABLE t1 (a INT(11) /*!*/ /*Custom column options*/, b INT(11) /*!*/ /*Custom column options*/ GENERATED ALWAYS AS (a+1)) ENGINE=MRG_MYISAM /*!*/ /*Custom table options*/ UNION(mrg.t1) INSERT_METHOD=LAST ]
77 +# The statement|command finished with ER_UNSUPPORTED_ENGINE_FOR_GENERATED_COLUMNS.
78 +# Virtual columns or the mix could be unsupported|malfunctioning, or the problem was caused by previous errors.
79 +# You can change the engine code, or create an rdiff, or disable the test by adding it to disabled.def.
80 +# Further in this test, the message might sometimes be suppressed; a part of the test might be skipped.
81 +# Also, this problem may cause a chain effect (more errors of different kinds in the test).
82 +# -------------------------------------------