mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Bug#35275 INFORMATION_SCHEMA.TABLES.CREATE_OPTIONS omits KEY_BLOCK_SIZE
Added KEY_BLOCK_SIZE option to I_S.TABLES.CREATE_OPTIONS field
This commit is contained in:
parent
50f4e85720
commit
5fdd9c99c2
3 changed files with 17 additions and 0 deletions
|
@ -1707,4 +1707,9 @@ where a.VARIABLE_NAME = b.VARIABLE_NAME;
|
||||||
a.VARIABLE_VALUE - b.VARIABLE_VALUE
|
a.VARIABLE_VALUE - b.VARIABLE_VALUE
|
||||||
2
|
2
|
||||||
drop table t0;
|
drop table t0;
|
||||||
|
CREATE TABLE t1(a INT) KEY_BLOCK_SIZE=1;
|
||||||
|
SELECT CREATE_OPTIONS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1';
|
||||||
|
CREATE_OPTIONS
|
||||||
|
KEY_BLOCK_SIZE=1
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.1 tests.
|
End of 5.1 tests.
|
||||||
|
|
|
@ -1383,4 +1383,11 @@ select a.VARIABLE_VALUE - b.VARIABLE_VALUE from t0 b, information_schema.global_
|
||||||
where a.VARIABLE_NAME = b.VARIABLE_NAME;
|
where a.VARIABLE_NAME = b.VARIABLE_NAME;
|
||||||
drop table t0;
|
drop table t0;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#35275 INFORMATION_SCHEMA.TABLES.CREATE_OPTIONS omits KEY_BLOCK_SIZE
|
||||||
|
#
|
||||||
|
CREATE TABLE t1(a INT) KEY_BLOCK_SIZE=1;
|
||||||
|
SELECT CREATE_OPTIONS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME='t1';
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo End of 5.1 tests.
|
--echo End of 5.1 tests.
|
||||||
|
|
|
@ -3589,6 +3589,11 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables,
|
||||||
(share->transactional == HA_CHOICE_YES ? "1" : "0"),
|
(share->transactional == HA_CHOICE_YES ? "1" : "0"),
|
||||||
NullS);
|
NullS);
|
||||||
}
|
}
|
||||||
|
if (share->key_block_size)
|
||||||
|
{
|
||||||
|
ptr= strmov(ptr, " KEY_BLOCK_SIZE=");
|
||||||
|
ptr= longlong10_to_str(share->key_block_size, ptr, 10);
|
||||||
|
}
|
||||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||||
if (is_partitioned)
|
if (is_partitioned)
|
||||||
ptr= strmov(ptr, " partitioned");
|
ptr= strmov(ptr, " partitioned");
|
||||||
|
|
Loading…
Reference in a new issue