| 1 |
# This file contains test cases for checking the functionality "update by |
| 2 |
# delete + insert". |
| 3 |
|
| 4 |
|
| 5 |
--echo # |
| 6 |
--echo # Bug#14668683 ASSERT REC_GET_DELETED_FLAG(REC, PAGE_IS_COMP(PAGE)) |
| 7 |
--echo # |
| 8 |
|
| 9 |
create table t1(f1 char(1) primary key, f2 int not null, f3 blob) |
| 10 |
engine=innodb; |
| 11 |
show create table t1; |
| 12 |
|
| 13 |
insert into t1 values ('a', 0, repeat('b',8102)); |
| 14 |
select f1 from t1; |
| 15 |
update t1 set f1='A'; |
| 16 |
select f1 from t1; |
| 17 |
drop table t1; |
| 18 |
|
| 19 |
--echo # |
| 20 |
--echo # Another test case |
| 21 |
--echo # |
| 22 |
SET sql_mode = 'NO_ENGINE_SUBSTITUTION'; |
| 23 |
create table t1 (f1 char(1), f2 longblob, f3 blob, primary key(f1)) |
| 24 |
charset=utf8 engine=innodb; |
| 25 |
|
| 26 |
replace into t1 set f1=0xa3; |
| 27 |
select f1 from t1; |
| 28 |
update t1 set f1=0x6a; |
| 29 |
update t1 set f3=repeat(0xb1,8103); |
| 30 |
update t1 set f1=0x4a; |
| 31 |
update t1 set f1=0x82; |
| 32 |
select f1 from t1; |
| 33 |
|
| 34 |
drop table t1; |
| 35 |
SET sql_mode = default; |