-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
mkaruza
authored and
Jan Lindström
committed
Apr 1, 2021
1 parent
453bac0
commit f93e087
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters