-- source include/have_innodb.inc
# This is a debug variable for now
-- source include/have_debug.inc

SET @save_innodb_read_only_compressed=@@GLOBAL.innodb_read_only_compressed;
SELECT @@global.innodb_buffer_pool_evict;

SET GLOBAL innodb_read_only_compressed=ON;
--error ER_UNSUPPORTED_COMPRESSED_TABLE
CREATE TABLE t(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
SET GLOBAL innodb_read_only_compressed=OFF;

CREATE TABLE t(a INT) ENGINE=InnoDB ROW_FORMAT=COMPRESSED;
SET GLOBAL innodb_buffer_pool_evict = 'uncompressed';

# Should always be empty.
SELECT @@global.innodb_buffer_pool_evict;
DROP TABLE t;
SET GLOBAL innodb_read_only_compressed=@save_innodb_read_only_compressed;
