diff options
Diffstat (limited to '')
-rw-r--r-- | storage/rocksdb/mysql-test/rocksdb_sys_vars/t/rocksdb_strict_collation_exceptions_basic.test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/storage/rocksdb/mysql-test/rocksdb_sys_vars/t/rocksdb_strict_collation_exceptions_basic.test b/storage/rocksdb/mysql-test/rocksdb_sys_vars/t/rocksdb_strict_collation_exceptions_basic.test new file mode 100644 index 00000000..4eb96488 --- /dev/null +++ b/storage/rocksdb/mysql-test/rocksdb_sys_vars/t/rocksdb_strict_collation_exceptions_basic.test @@ -0,0 +1,35 @@ +--source include/have_rocksdb.inc + +# We cannot use the rocskdb_sys_var.inc script as some of the strings we set +# need to be quoted and that doesn't work with this script. Run through +# valid options by hand. + +SET @start_global_value = @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; +SELECT @start_global_value; + +--echo "Trying to set @session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS to simple table name." +SET @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = mytable; +SELECT @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; + +--echo "Trying to set @session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS to regex table name(s)." +SET @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = "t.*"; +SELECT @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; + +--echo "Trying to set @session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS to multiple regex table names." +SET @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = "s.*,t.*"; +SELECT @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; + +--echo "Trying to set @session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS to empty." +SET @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = ""; +SELECT @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; + +--echo "Trying to set @session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS to default." +SET @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = DEFAULT; +SELECT @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; + +--echo "Trying to set @session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS to 444. It should fail because it is not session." +--Error ER_GLOBAL_VARIABLE +SET @@session.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = 444; + +SET @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS = @start_global_value; +SELECT @@global.ROCKSDB_STRICT_COLLATION_EXCEPTIONS; |