mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 04:46:15 +01:00 
			
		
		
		
	* format error messages (spaces, "bytes") * speed up "length too large" test from 12s to 70ms * fix it for --parallel * fix "named pipe" test to actually test a named pipe * add the standard header to tests, enable result log * fix for ASAN * read loop to workaround small (64K) pipe buffer size * clarified error message for the file too large
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
#
 | 
						|
# MDEV-9158 file_key_management should support reading from a named pipe
 | 
						|
#
 | 
						|
select seq,md5(seq)
 | 
						|
into outfile 'MYSQLTEST_VARDIR/tmp/fifo-key.txt'
 | 
						|
          fields terminated by ';'
 | 
						|
     from seq_1_to_20000;
 | 
						|
INSTALL SONAME 'file_key_management';
 | 
						|
Warnings:
 | 
						|
Note	1	Read from MYSQLTEST_VARDIR/tmp/fifo.key, read bytes: 768894, max key file size: 1048576 bytes
 | 
						|
CREATE TABLE t1(c1 BIGINT NOT NULL, b CHAR(200)) ENGINE=INNODB ENCRYPTED=YES ENCRYPTION_KEY_ID=1;
 | 
						|
SHOW CREATE TABLE t1;
 | 
						|
Table	Create Table
 | 
						|
t1	CREATE TABLE `t1` (
 | 
						|
  `c1` bigint(20) NOT NULL,
 | 
						|
  `b` char(200) DEFAULT NULL
 | 
						|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=1
 | 
						|
INSERT t1 VALUES (12345, REPEAT('1234567890', 20));
 | 
						|
ALTER TABLE t1 ENCRYPTION_KEY_ID=2;
 | 
						|
SHOW CREATE TABLE t1;
 | 
						|
Table	Create Table
 | 
						|
t1	CREATE TABLE `t1` (
 | 
						|
  `c1` bigint(20) NOT NULL,
 | 
						|
  `b` char(200) DEFAULT NULL
 | 
						|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=2
 | 
						|
ALTER TABLE t1 ENCRYPTION_KEY_ID=3;
 | 
						|
SHOW CREATE TABLE t1;
 | 
						|
Table	Create Table
 | 
						|
t1	CREATE TABLE `t1` (
 | 
						|
  `c1` bigint(20) NOT NULL,
 | 
						|
  `b` char(200) DEFAULT NULL
 | 
						|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci `ENCRYPTED`=YES `ENCRYPTION_KEY_ID`=3
 | 
						|
# Reset mysqld
 | 
						|
DROP TABLE t1;
 | 
						|
UNINSTALL SONAME 'file_key_management';
 | 
						|
Warnings:
 | 
						|
Warning	1620	Plugin is busy and will be uninstalled on shutdown
 | 
						|
# restart
 |