mirror of
https://github.com/MariaDB/server.git
synced 2025-11-27 05:41:41 +03:00
Virtual column fields are not found in prebuilt data type, so we should match InnoDB fields with `get_innobase_type_from_mysql_type` method. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
20 lines
348 B
Plaintext
20 lines
348 B
Plaintext
CREATE TABLE t (f INT GENERATED ALWAYS AS (a+b)VIRTUAL,a INT,b INT,h BLOB);
|
|
INSERT INTO t (a,b)VALUES(0,0), (0,0), (0,0), (0,0), (0,0);
|
|
SELECT * from t;
|
|
f a b h
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
connection node_2;
|
|
SELECT * from t;
|
|
f a b h
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
0 0 0 NULL
|
|
connection node_1;
|
|
DROP TABLE t;
|