| Server IP : 45.40.142.9 / Your IP : 216.73.216.250 Web Server : Apache System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : bayspec ( 506) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/mysql-test/suite/ndb/r/ |
Upload File : |
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; @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; @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;