Debian Codegraph @

mysql-test/suite/encryption/t/aria_tiny.test

raw
1 --source include/have_file_key_management_plugin.inc
2 --source include/have_sequence.inc
3
4 SET @aria_encrypt= @@aria_encrypt_tables;
5 SET global aria_encrypt_tables=1;
6 #
7 # MDEV-8022 Assertion `rc == 0' failed in ma_encrypt on dropping an encrypted Aria table
8 #
9
10 create table t1 (i int, key(i)) engine=aria;
11 insert into t1 values (1);
12 drop table t1;
13
14 #
15 # MDEV-17913 Encrypted transactional Aria tables remain corrupt after crash
16 # recovery, automatic repair does not work
17 #
18 # We are using a simplifed version of the test here. This works thanks to
19 # the extended check table code that also checks if LSN's are reasonable.
20 #
21
22 create table t1 (a int primary key, b int, c int, key(b),key(c)) engine=aria;
23 alter table t1 disable keys;
24 insert into t1 select seq,seq,seq from seq_1_to_100;
25 alter table t1 enable keys;
26 check table t1;
27 drop table t1;
28
29 --echo #
30 --echo # MDEV CHECK on encrypted Aria table complains about "Wrong LSN"
31 --echo #
32
33 CREATE TABLE t1 (f DATE PRIMARY KEY) ENGINE=Aria;
34 INSERT INTO t1 (f) VALUES ('1995-01-01'),('2000-01-01');
35 DELETE FROM t1 WHERE f = '2000-01-01';
36 OPTIMIZE TABLE t1;
37 CHECK TABLE t1 EXTENDED;
38 DROP TABLE t1;
39
40 #
41 # Cleanup
42 #
43 set global aria_encrypt_tables=@aria_encrypt;