mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	- Close open unused handlers when a schema error occurs. sql/ha_ndbcluster.cc: When a schema error occurs call close_cached_tables to close any open unused handlers that has opened this table. mysql-test/r/ndb_alter_table2.result: New BitKeeper file ``mysql-test/r/ndb_alter_table2.result'' mysql-test/t/ndb_alter_table2.test: New BitKeeper file ``mysql-test/t/ndb_alter_table2.test''
		
			
				
	
	
		
			43 lines
		
	
	
		
			760 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			760 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| DROP TABLE IF EXISTS t1;
 | |
| CREATE TABLE t1 (
 | |
| a INT NOT NULL PRIMARY KEY,
 | |
| b INT NOT NULL
 | |
| ) ENGINE=ndbcluster;
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (9410,9412);
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (9411,9412);
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (9412,9412);
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (9413,9412);
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (9414,9412);
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (9415,9412);
 | |
| ROLLBACK;
 | |
| ROLLBACK;
 | |
| ROLLBACK;
 | |
| ROLLBACK;
 | |
| ROLLBACK;
 | |
| ROLLBACK;
 | |
| drop table t1;
 | |
| CREATE TABLE t1 (
 | |
| a INT NOT NULL PRIMARY KEY,
 | |
| b INT NOT NULL,
 | |
| c INT NOT NULL
 | |
| ) ENGINE=ndbcluster;
 | |
| select * from t1;
 | |
| ERROR HY000: Got error 241 'Invalid schema object version' from ndbcluster
 | |
| select * from t1;
 | |
| a	b	c
 | |
| select * from t1;
 | |
| a	b	c
 | |
| select * from t1;
 | |
| a	b	c
 | |
| select * from t1;
 | |
| a	b	c
 | |
| select * from t1;
 | |
| a	b	c
 | |
| drop table t1;
 |