--source include/have_rocksdb.inc

CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO valid_values VALUES(1);
INSERT INTO valid_values VALUES(0);
INSERT INTO valid_values VALUES(222333);

CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO invalid_values VALUES('\'aaa\'');
INSERT INTO invalid_values VALUES('\'bbb\'');

# Attempt to set the value to -1 - this should first truncate to 0 and then generate a warning as
# we can't set it to or from 0
SET @@session.rocksdb_force_index_records_in_range = -1;
SELECT @@session.rocksdb_force_index_records_in_range;

--let $sys_var=ROCKSDB_FORCE_INDEX_RECORDS_IN_RANGE
--let $read_only=0
--let $session=1
--source include/rocksdb_sys_var.inc

DROP TABLE valid_values;
DROP TABLE invalid_values;
