32 lines
		
	
	
		
			792 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			792 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Setup
 | |
| --disable_warnings
 | |
| DROP TABLE IF EXISTS test.t1;
 | |
| --enable_warnings
 | |
| CREATE TABLE test.t1(id INT);
 | |
| 
 | |
| # Test that nothing increases COM_LOAD outside of a transaction
 | |
| 
 | |
| SELECT COUNT(*) FROM test.t1;
 | |
| DELETE FROM test.t1;
 | |
| INSERT INTO test.t1 VALUES (1), (2), (3);
 | |
| SELECT COUNT(*) FROM test.t1;
 | |
| UPDATE test.t1 SET id = 0;
 | |
| CREATE TABLE test.new_table(id int) ENGINE=MyISAM;
 | |
| INSERT INTO test.new_table VALUES (1), (2);
 | |
| DROP TABLE test.new_table;
 | |
| 
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| INSERT INTO test.t1 VALUES (1);
 | |
| 
 | |
| SHOW STATUS LIKE 'COM_INSERT';
 | |
| SHOW STATUS LIKE 'COM_LOAD';
 | |
| 
 | |
| # Cleanup
 | |
| DROP TABLE test.t1;
 | 
