mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.(none):/opt/local/work/mysql-5.1-runtime client/mysqldump.c: Auto merged mysql-test/r/mysqldump.result: Auto merged mysql-test/t/disabled.def: Auto merged mysql-test/t/mysqldump.test: Auto merged sql/handler.cc: Auto merged sql/lock.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_table.cc: Auto merged sql/table.cc: Auto merged sql/table.h: Auto merged mysql-test/include/mix1.inc: Manual merge. mysql-test/r/innodb_mysql.result: Manual merge.
This commit is contained in:
@ -814,6 +814,34 @@ drop table if exists t1;
|
||||
create table t1 (a int) engine=innodb;
|
||||
alter table t1 alter a set default 1;
|
||||
drop table t1;
|
||||
|
||||
Bug#24918 drop table and lock / inconsistent between
|
||||
perm and temp tables
|
||||
|
||||
Check transactional tables under LOCK TABLES
|
||||
|
||||
drop table if exists t24918, t24918_tmp, t24918_trans, t24918_trans_tmp,
|
||||
t24918_access;
|
||||
create table t24918_access (id int);
|
||||
create table t24918 (id int) engine=myisam;
|
||||
create temporary table t24918_tmp (id int) engine=myisam;
|
||||
create table t24918_trans (id int) engine=innodb;
|
||||
create temporary table t24918_trans_tmp (id int) engine=innodb;
|
||||
lock table t24918 write, t24918_tmp write, t24918_trans write, t24918_trans_tmp write;
|
||||
drop table t24918;
|
||||
select * from t24918_access;
|
||||
ERROR HY000: Table 't24918_access' was not locked with LOCK TABLES
|
||||
drop table t24918_trans;
|
||||
select * from t24918_access;
|
||||
ERROR HY000: Table 't24918_access' was not locked with LOCK TABLES
|
||||
drop table t24918_trans_tmp;
|
||||
select * from t24918_access;
|
||||
ERROR HY000: Table 't24918_access' was not locked with LOCK TABLES
|
||||
drop table t24918_tmp;
|
||||
select * from t24918_access;
|
||||
ERROR HY000: Table 't24918_access' was not locked with LOCK TABLES
|
||||
unlock tables;
|
||||
drop table t24918_access;
|
||||
CREATE TABLE t1 (a int, b int, PRIMARY KEY (a), KEY bkey (b)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1,2),(3,2),(2,2),(4,2),(5,2),(6,2),(7,2),(8,2);
|
||||
INSERT INTO t1 SELECT a + 8, 2 FROM t1;
|
||||
|
Reference in New Issue
Block a user