config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/ndb/r/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/ndb/r/ndb_global_schema_lock.result

CREATE DATABASE test2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
ALTER DATABASE test2 CHARACTER SET latin2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
DROP DATABASE test2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
CREATE TABLE t1(a int not null primary key) ENGINE ndb;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
RENAME TABLE t1 TO t2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
CREATE TABLE t3 LIKE t2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
ALTER TABLE t3 ADD COLUMN b int default NULL;
Warnings:
Warning	1478	Converted FIXED field 'b' to DYNAMIC to enable on-line ADD COLUMN
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
INSERT INTO t2 VALUES(1);
TRUNCATE TABLE t2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
CREATE TABLE t4 ENGINE=NDB AS SELECT * FROM t2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
DROP TABLE t2;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
DROP TABLE t3, t4;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
CREATE TABLE t10(a int primary key) ENGINE ndb;
LOCK TABLES t10 READ;
CREATE DATABASE test2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
ALTER DATABASE test2 CHARACTER SET latin2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
DROP DATABASE test2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
LOCK TABLES t10 WRITE;
CREATE DATABASE test2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
ALTER DATABASE test2 CHARACTER SET latin2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
DROP DATABASE test2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
UNLOCK TABLES;
LOCK TABLES t10 READ;
CREATE TABLE t1(a int not null primary key);
ERROR HY000: Table 't1' was not locked with LOCK TABLES
RENAME TABLE t10 TO t2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
CREATE TABLE t3 LIKE t10;
ERROR HY000: Table 't3' was not locked with LOCK TABLES
ALTER TABLE t10 ADD COLUMN b int default NULL;
ERROR HY000: Table 't10' was locked with a READ lock and can't be updated
TRUNCATE TABLE t10;
ERROR HY000: Table 't10' was locked with a READ lock and can't be updated
CREATE TABLE t4 AS SELECT * FROM t10;
ERROR HY000: Table 't4' was not locked with LOCK TABLES
DROP TABLE t10;
ERROR HY000: Table 't10' was locked with a READ lock and can't be updated
UNLOCK TABLES;
LOCK TABLES t10 WRITE;
CREATE TABLE t1(a int not null primary key);
ERROR HY000: Table 't1' was not locked with LOCK TABLES
RENAME TABLE t10 TO t2;
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
CREATE TABLE t3 LIKE t10;
ERROR HY000: Table 't3' was not locked with LOCK TABLES
ALTER TABLE t10 ADD COLUMN b int default NULL;
Warnings:
Warning	1478	Converted FIXED field 'b' to DYNAMIC to enable on-line ADD COLUMN
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
TRUNCATE TABLE t10;
@ndb_schema_locks_count:=VARIABLE_VALUE-@ndb_init_schema_locks_count
1
CREATE TABLE t4 AS SELECT * FROM t10;
ERROR HY000: Table 't4' was not locked with LOCK TABLES
DROP TABLE t10;
UNLOCK TABLES;

Man Man