| 1 |
# |
| 2 |
# MDEV-7968 Virtual column set to NULL using load data infile |
| 3 |
# |
| 4 |
create table t1 ( c1 varchar(10), c2 varchar(10), c3 int ); |
| 5 |
insert into t1 values ("a" , "b", 1), ("a" , "b", 2); |
| 6 |
create table t2 like t1 ; |
| 7 |
alter table t2 add column c4 bigint unsigned as (CONV(LEFT(MD5(concat(c1,c2,c3)), 16), 16, 10)) persistent unique key; |
| 8 |
select * into outfile 't1.csv' from t1; |
| 9 |
load data infile 't1.csv' ignore into table t2 ; |
| 10 |
select * from t2; |
| 11 |
insert into t2 (c1,c2,c3) values ("a" , "b", 4); |
| 12 |
select * from t2; |
| 13 |
drop table t1, t2; |