Debian Codegraph @

mysql-test/suite/innodb/t/blob_cmp_empty.test

raw
1 --source include/innodb_row_format.inc
2 --source include/count_sessions.inc
3 --connect(prevent_purge,localhost,root,,)
4 start transaction with consistent snapshot;
5
6 --connection default
7 SET @fill_amount = (@@innodb_page_size / 2 ) + 1;
8 CREATE TABLE t1 (col_text TEXT NOT NULL, KEY (col_text(9))) ENGINE=InnoDB;
9
10 INSERT INTO t1 (col_text) VALUES (REPEAT('x', @fill_amount));
11 UPDATE t1 SET col_text='';
12 UPDATE t1 SET col_text=REPEAT('y', @fill_amount);
13
14 --connect(con1,localhost,root,,)
15 SET @fill_amount = (@@innodb_page_size / 2 ) + 1;
16 BEGIN;
17 INSERT INTO t1 (col_text) VALUES (REPEAT('z', @fill_amount));
18
19 --connection default
20 # If the bug is not fixed, CHECK TABLE will complain about wrong secondary index
21 # rows count
22 CHECK TABLE t1;
23 --disconnect con1
24 --disconnect prevent_purge
25 DROP TABLE t1;
26 --source include/wait_until_count_sessions.inc