mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
c521a51340
- 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''
42 lines
760 B
Text
42 lines
760 B
Text
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;
|