mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	This allows one to run the test suite even if any of the following options are changed: - character-set-server - collation-server - join-cache-level - log-basename - max-allowed-packet - optimizer-switch - query-cache-size and query-cache-type - skip-name-resolve - table-definition-cache - table-open-cache - Some innodb options etc Changes: - Don't print out the value of system variables as one can't depend on them to being constants. - Don't set global variables to 'default' as the default may not be the same as the test was started with if there was an additional option file. Instead save original value and reset it at end of test. - Test that depends on the latin1 character set should include default_charset.inc or set the character set to latin1 - Test that depends on the original optimizer switch, should include default_optimizer_switch.inc - Test that depends on the value of a specific system variable should set it in the test (like optimizer_use_condition_selectivity) - Split subselect3.test into subselect3.test and subselect3.inc to make it easier to set and reset system variables. - Added .opt files for test that required specfic options that could be changed by external configuration files. - Fixed result files in rockdsb & tokudb that had not been updated for a while.
		
			
				
	
	
		
			81 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| SET GLOBAL innodb_file_per_table=1;
 | |
| #
 | |
| # Bug#21644827 - FTS, ASSERT !SRV_READ_ONLY_MODE || M_IMPL.M_LOG_MODE ==
 | |
| #                MTR_LOG_NO_REDO
 | |
| #
 | |
| SET GLOBAL innodb_file_per_table=ON;
 | |
| create table t1 (a int not null, d varchar(15) not null, b
 | |
| varchar(198) not null, c char(156),
 | |
| fulltext ftsic(c)) engine=InnoDB
 | |
| row_format=redundant;
 | |
| insert into t1 values(123, 'abcdef', 'jghikl', 'mnop');
 | |
| insert into t1 values(456, 'abcdef', 'jghikl', 'mnop');
 | |
| insert into t1 values(789, 'abcdef', 'jghikl', 'mnop');
 | |
| insert into t1 values(134, 'kasdfsdsadf', 'adfjlasdkfjasd', 'adfsadflkasdasdfljasdf');
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| insert into t1 select * from t1;
 | |
| SET GLOBAL innodb_file_per_table=OFF;
 | |
| create table t2 (a int not null, d varchar(15) not null, b
 | |
| varchar(198) not null, c char(156), fulltext ftsic(c)) engine=InnoDB
 | |
| row_format=redundant;
 | |
| insert into t2 select * from t1;
 | |
| create table t3 (a int not null, d varchar(15) not null, b varchar(198),
 | |
| c varchar(150), index k1(c(99), b(56)), index k2(b(5), c(10))) engine=InnoDB
 | |
| row_format=redundant;
 | |
| insert into t3 values(444, 'dddd', 'bbbbb', 'aaaaa');
 | |
| insert into t3 values(555, 'eeee', 'ccccc', 'aaaaa');
 | |
| SET GLOBAL innodb_fast_shutdown=0;
 | |
| SELECT COUNT(*) FROM t1;
 | |
| COUNT(*)
 | |
| 4096
 | |
| SELECT COUNT(*) FROM t2;
 | |
| COUNT(*)
 | |
| 4096
 | |
| SELECT COUNT(*) FROM t3;
 | |
| COUNT(*)
 | |
| 2
 | |
| TRUNCATE TABLE t1;
 | |
| ERROR HY000: Table 't1' is read only
 | |
| TRUNCATE TABLE t2;
 | |
| ERROR HY000: Table 't2' is read only
 | |
| TRUNCATE TABLE t3;
 | |
| ERROR HY000: Table 't3' is read only
 | |
| TRUNCATE TABLE t1;
 | |
| TRUNCATE TABLE t2;
 | |
| TRUNCATE TABLE t3;
 | |
| corrupted SYS_TABLES.MIX_LEN for test/t1
 | |
| corrupted SYS_TABLES.MIX_LEN for test/t2
 | |
| corrupted SYS_TABLES.MIX_LEN for test/t3
 | |
| TRUNCATE TABLE t1;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist in engine
 | |
| TRUNCATE TABLE t2;
 | |
| TRUNCATE TABLE t3;
 | |
| SELECT COUNT(*) FROM t1;
 | |
| ERROR 42S02: Table 'test.t1' doesn't exist in engine
 | |
| SELECT COUNT(*) FROM t2;
 | |
| COUNT(*)
 | |
| 0
 | |
| SELECT COUNT(*) FROM t3;
 | |
| COUNT(*)
 | |
| 0
 | |
| RENAME TABLE t1 TO tee_one;
 | |
| ERROR HY000: Error on rename of './test/t1' to './test/tee_one' (errno: 155 "The table does not exist in the storage engine")
 | |
| DROP TABLE t1;
 | |
| Warnings:
 | |
| Warning	1932	Table 'test.t1' doesn't exist in engine
 | |
| DROP TABLE t2,t3;
 | |
| FOUND 50 /\[ERROR\] InnoDB: Table `test`\.`t1` in InnoDB data dictionary contains invalid flags\. SYS_TABLES\.TYPE=1 SYS_TABLES\.MIX_LEN=255\b/ in mysqld.1.err
 | |
| ib_buffer_pool
 | |
| ib_logfile0
 | |
| ib_logfile1
 | |
| ibdata1
 | |
| db.opt
 |