13 changed files with 91 additions and 17 deletions
-
2innobase/buf/buf0buf.c
-
2innobase/dict/dict0dict.c
-
13innobase/include/buf0buf.h
-
2innobase/include/srv0srv.h
-
1innobase/include/trx0undo.h
-
2innobase/srv/srv0srv.c
-
8innobase/trx/trx0trx.c
-
29innobase/trx/trx0undo.c
-
6mysql-test/r/innodb-autoinc-optimize.result
-
1mysql-test/r/innodb_bug35220.result
-
16mysql-test/t/innodb-autoinc-optimize.test
-
16mysql-test/t/innodb_bug35220.test
-
10sql/ha_innodb.cc
@ -0,0 +1,6 @@ |
|||
drop table if exists t1; |
|||
create table t1(a int not null auto_increment primary key) engine=innodb; |
|||
insert into t1 set a = -1; |
|||
optimize table t1; |
|||
Table Op Msg_type Msg_text |
|||
test.t1 optimize status OK |
|||
@ -0,0 +1 @@ |
|||
SET storage_engine=InnoDB; |
|||
@ -0,0 +1,16 @@ |
|||
-- source include/have_innodb.inc |
|||
# embedded server ignores 'delayed', so skip this |
|||
-- source include/not_embedded.inc |
|||
|
|||
--disable_warnings |
|||
drop table if exists t1; |
|||
--enable_warnings |
|||
|
|||
# |
|||
# Bug 34286 |
|||
# |
|||
create table t1(a int not null auto_increment primary key) engine=innodb; |
|||
insert into t1 set a = -1; |
|||
# NOTE: The database needs to be shutdown and restarted (here) for |
|||
# the test to work. It's included for reference only. |
|||
optimize table t1; |
|||
@ -0,0 +1,16 @@ |
|||
# |
|||
# Bug#35220 ALTER TABLE too picky on reserved word "foreign" |
|||
# http://bugs.mysql.com/35220 |
|||
# |
|||
|
|||
-- source include/have_innodb.inc |
|||
|
|||
SET storage_engine=InnoDB; |
|||
|
|||
# we care only that the following SQL commands do not produce errors |
|||
-- disable_query_log |
|||
-- disable_result_log |
|||
|
|||
CREATE TABLE bug35220 (foreign_col INT, dummy_cant_delete_all_columns INT); |
|||
ALTER TABLE bug35220 DROP foreign_col; |
|||
DROP TABLE bug35220; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue