Debian Codegraph @

mysql-test/suite/s3/encryption.test

raw
1 --source include/have_s3.inc
2
3 if (`SELECT COUNT(*)=0 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'file_key_management' AND PLUGIN_STATUS='ACTIVE'`)
4 {
5 --skip Test requires file_key_management plugin
6 }
7
8 #
9 # Create unique database for running the tests
10 #
11 --source create_database.inc
12
13 --echo #
14 --echo # MDEV-20306
15 --echo # Assertion `!(end_of_data > info->scan.dir_end)' failed in
16 --echo # _ma_scan_block_record upon converting table from S3 to Aria
17 --echo # with encryption enabled
18 --echo #
19
20 --disable_warnings
21 drop table if exists t1;
22 --enable_warnings
23
24 CREATE TABLE t1 (a INT) ENGINE=Aria;
25 INSERT INTO t1 VALUES (1);
26 ALTER TABLE t1 ENGINE=S3;
27 select * from t1;
28 show create table t1;
29 ALTER TABLE t1 ENGINE=Aria;
30 select * from t1;
31 DROP TABLE t1;
32
33 #
34 # clean up
35 #
36 --source drop_database.inc