mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-25047: SIGSEGV in mach_read_from_n_little_endian
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>
This commit is contained in:
parent
453bac08c2
commit
f93e087d74
3 changed files with 33 additions and 1 deletions
19
mysql-test/suite/galera/r/galera_virtual_blob.result
Normal file
19
mysql-test/suite/galera/r/galera_virtual_blob.result
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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;
|
||||
10
mysql-test/suite/galera/t/galera_virtual_blob.test
Normal file
10
mysql-test/suite/galera/t/galera_virtual_blob.test
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--source include/galera_cluster.inc
|
||||
|
||||
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;
|
||||
|
||||
--connection node_2
|
||||
SELECT * from t;
|
||||
--connection node_1
|
||||
DROP TABLE t;
|
||||
Loading…
Add table
Add a link
Reference in a new issue