mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Merging from mysql-5.1 to mysql-5.5.
This commit is contained in:
commit
2f7295575d
4 changed files with 10 additions and 3 deletions
|
@ -70,7 +70,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
|
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
|
||||||
explain select distinct f1, f2 from t1;
|
explain select distinct f1, f2 from t1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary
|
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1(pk int primary key) engine=innodb;
|
create table t1(pk int primary key) engine=innodb;
|
||||||
create view v1 as select pk from t1 where pk < 20;
|
create view v1 as select pk from t1 where pk < 20;
|
||||||
|
|
|
@ -956,7 +956,7 @@ Table Op Msg_type Msg_text
|
||||||
test.t1 check status OK
|
test.t1 check status OK
|
||||||
explain select * from t1 where b like 'adfd%';
|
explain select * from t1 where b like 'adfd%';
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL b NULL NULL NULL 15 Using where
|
1 SIMPLE t1 range b b 769 NULL 11 Using where
|
||||||
drop table t1;
|
drop table t1;
|
||||||
set global innodb_file_per_table=on;
|
set global innodb_file_per_table=on;
|
||||||
set global innodb_file_format='Barracuda';
|
set global innodb_file_format='Barracuda';
|
||||||
|
|
|
@ -343,7 +343,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
|
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
|
||||||
explain select distinct f1, f2 from t1;
|
explain select distinct f1, f2 from t1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary
|
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
|
||||||
drop table t1;
|
drop table t1;
|
||||||
CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),
|
CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),
|
||||||
INDEX (name));
|
INDEX (name));
|
||||||
|
|
|
@ -4140,6 +4140,13 @@ end:
|
||||||
trx->error_state = DB_SUCCESS;
|
trx->error_state = DB_SUCCESS;
|
||||||
trx_general_rollback_for_mysql(trx, NULL);
|
trx_general_rollback_for_mysql(trx, NULL);
|
||||||
trx->error_state = DB_SUCCESS;
|
trx->error_state = DB_SUCCESS;
|
||||||
|
} else {
|
||||||
|
if (old_is_tmp && !new_is_tmp) {
|
||||||
|
/* After ALTER TABLE the table statistics
|
||||||
|
needs to be rebuilt. It will be rebuilt
|
||||||
|
when the table is loaded again. */
|
||||||
|
table->stat_initialized = FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue