| 1 |
source include/have_innodb.inc; |
| 2 |
|
| 3 |
if (!$PROVIDER_LZ4_SO) { |
| 4 |
skip Requires provider_lz4 plugin; |
| 5 |
} |
| 6 |
|
| 7 |
select plugin_name, plugin_status from information_schema.plugins where plugin_name='provider_lz4'; |
| 8 |
--error ER_WRONG_VALUE_FOR_VAR |
| 9 |
set global innodb_compression_algorithm = lz4; |
| 10 |
install plugin provider_lz4 soname 'provider_lz4'; |
| 11 |
select plugin_name, plugin_status from information_schema.plugins where plugin_name='provider_lz4'; |
| 12 |
set global innodb_compression_algorithm = lz4; |
| 13 |
create table t1 (a int, b text) engine=innodb page_compressed=1; |
| 14 |
insert t1 (a, b) values (0, repeat("abc", 100)); |
| 15 |
insert t1 (a, b) values (1, repeat("def", 1000)); |
| 16 |
insert t1 (a, b) values (2, repeat("ghi", 10000)); |
| 17 |
select a, left(b, 9), length(b) from t1; |
| 18 |
uninstall plugin provider_lz4; |
| 19 |
select plugin_name, plugin_status from information_schema.plugins where plugin_name='provider_lz4'; |
| 20 |
set global innodb_compression_algorithm = default; |
| 21 |
set global innodb_compression_algorithm = lz4; |
| 22 |
set global innodb_compression_algorithm = default; |
| 23 |
select a, left(b, 9), length(b) from t1; |
| 24 |
drop table t1; |