Extended vcol.update with checking if statement worked
This commit is contained in:
parent
afbea676de
commit
3e03b3dc15
@ -9,8 +9,20 @@ a b c
|
||||
2 3 4
|
||||
drop table t1;
|
||||
create table t1 (a int, c int as(a), p varchar(20) as(y), y char(20), index (p,c));
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`c` int(11) GENERATED ALWAYS AS (`a`) VIRTUAL,
|
||||
`p` varchar(20) GENERATED ALWAYS AS (`y`) VIRTUAL,
|
||||
`y` char(20) DEFAULT NULL,
|
||||
KEY `p` (`p`,`c`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
insert into t1 (a,y) values(1, "yyy");
|
||||
update t1 set a = 100 where a = 1;
|
||||
check table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
drop table t1;
|
||||
create table t1 (
|
||||
a varchar(10000),
|
||||
|
@ -15,8 +15,10 @@ drop table t1;
|
||||
# this tests TABLE::mark_columns_needed_for_update()
|
||||
#
|
||||
create table t1 (a int, c int as(a), p varchar(20) as(y), y char(20), index (p,c));
|
||||
show create table t1;
|
||||
insert into t1 (a,y) values(1, "yyy");
|
||||
update t1 set a = 100 where a = 1;
|
||||
check table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user