mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	* remove new InnoDB-specific ER_ and HA_ERR_ codes * renamed few old ER_ and HA_ERR_ error messages to be less MyISAM-specific * remove duplicate enum definitions (durability_properties, icp_result) * move new mysql-test include files to their owner suite * rename xtradb.rdiff files to *-disabled * remove mistakenly committed helper perl module * remove long obsolete handler::ha_statistic_increment() method * restore the standard C xid_t structure to not have setters and getters * remove xid_t::reset that was cleaning too much * move MySQL-5.7 ER_ codes where they belong * fir innodb to include service_wsrep.h not internal wsrep headers * update tests and results
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| set @default_storage_engine= @@global.storage_engine;
 | |
| set global storage_engine=myisam;
 | |
| set session storage_engine=myisam;
 | |
| call mtr.add_suppression("Index for table .*crashed' is corrupt; try to repair it");
 | |
| drop table if exists crashed,t2,t3,t4;
 | |
| SET @orig_debug=@@debug;
 | |
| CREATE TABLE crashed (c1 INT);
 | |
| CREATE TABLE t2 (c1 INT);
 | |
| CREATE TABLE t3 (c1 INT);
 | |
| CREATE TABLE t4 (c1 INT) ENGINE=MRG_MYISAM UNION=(crashed,t2,t3) INSERT_METHOD=LAST;
 | |
| INSERT INTO crashed VALUES (10);
 | |
| INSERT INTO t2 VALUES (20);
 | |
| INSERT INTO t3 VALUES (30);
 | |
| LOCK TABLES t3 WRITE, t2 WRITE, t4 WRITE, crashed WRITE;
 | |
| SET GLOBAL debug_dbug="+d,myisam_pretend_crashed_table_on_open";
 | |
| CREATE TRIGGER t1_ai AFTER INSERT ON crashed FOR EACH ROW INSERT INTO t2 VALUES(29);
 | |
| SET GLOBAL debug_dbug=@orig_debug;
 | |
| INSERT INTO t4 VALUES (39);
 | |
| ERROR HY000: Table 'crashed' was not locked with LOCK TABLES
 | |
| INSERT INTO crashed VALUES (11);
 | |
| ERROR HY000: Table 'crashed' was not locked with LOCK TABLES
 | |
| INSERT INTO t2 VALUES (21);
 | |
| INSERT INTO t3 VALUES (31);
 | |
| UNLOCK TABLES;
 | |
| DROP TRIGGER t1_ai;
 | |
| DROP TABLE t4,crashed,t2,t3;
 | |
| set global storage_engine=@default_storage_engine;
 |