CREATE TABLE valid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO valid_values VALUES(1);
INSERT INTO valid_values VALUES(1024);
CREATE TABLE invalid_values (value varchar(255)) ENGINE=myisam;
INSERT INTO invalid_values VALUES('\'aaa\'');
SET @start_global_value = @@global.ROCKSDB_BULK_LOAD_SIZE;
SELECT @start_global_value;
@start_global_value
1000
SET @start_session_value = @@session.ROCKSDB_BULK_LOAD_SIZE;
SELECT @start_session_value;
@start_session_value
1000
'# Setting to valid values in global scope#'
"Trying to set variable @@global.ROCKSDB_BULK_LOAD_SIZE to 1"
SET @@global.ROCKSDB_BULK_LOAD_SIZE   = 1;
SELECT @@global.ROCKSDB_BULK_LOAD_SIZE;
@@global.ROCKSDB_BULK_LOAD_SIZE
1
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_BULK_LOAD_SIZE = DEFAULT;
SELECT @@global.ROCKSDB_BULK_LOAD_SIZE;
@@global.ROCKSDB_BULK_LOAD_SIZE
1000
"Trying to set variable @@global.ROCKSDB_BULK_LOAD_SIZE to 1024"
SET @@global.ROCKSDB_BULK_LOAD_SIZE   = 1024;
SELECT @@global.ROCKSDB_BULK_LOAD_SIZE;
@@global.ROCKSDB_BULK_LOAD_SIZE
1024
"Setting the global scope variable back to default"
SET @@global.ROCKSDB_BULK_LOAD_SIZE = DEFAULT;
SELECT @@global.ROCKSDB_BULK_LOAD_SIZE;
@@global.ROCKSDB_BULK_LOAD_SIZE
1000
'# Setting to valid values in session scope#'
"Trying to set variable @@session.ROCKSDB_BULK_LOAD_SIZE to 1"
SET @@session.ROCKSDB_BULK_LOAD_SIZE   = 1;
SELECT @@session.ROCKSDB_BULK_LOAD_SIZE;
@@session.ROCKSDB_BULK_LOAD_SIZE
1
"Setting the session scope variable back to default"
SET @@session.ROCKSDB_BULK_LOAD_SIZE = DEFAULT;
SELECT @@session.ROCKSDB_BULK_LOAD_SIZE;
@@session.ROCKSDB_BULK_LOAD_SIZE
1000
"Trying to set variable @@session.ROCKSDB_BULK_LOAD_SIZE to 1024"
SET @@session.ROCKSDB_BULK_LOAD_SIZE   = 1024;
SELECT @@session.ROCKSDB_BULK_LOAD_SIZE;
@@session.ROCKSDB_BULK_LOAD_SIZE
1024
"Setting the session scope variable back to default"
SET @@session.ROCKSDB_BULK_LOAD_SIZE = DEFAULT;
SELECT @@session.ROCKSDB_BULK_LOAD_SIZE;
@@session.ROCKSDB_BULK_LOAD_SIZE
1000
'# Testing with invalid values in global scope #'
"Trying to set variable @@global.ROCKSDB_BULK_LOAD_SIZE to 'aaa'"
SET @@global.ROCKSDB_BULK_LOAD_SIZE   = 'aaa';
Got one of the listed errors
SELECT @@global.ROCKSDB_BULK_LOAD_SIZE;
@@global.ROCKSDB_BULK_LOAD_SIZE
1000
SET @@global.ROCKSDB_BULK_LOAD_SIZE = @start_global_value;
SELECT @@global.ROCKSDB_BULK_LOAD_SIZE;
@@global.ROCKSDB_BULK_LOAD_SIZE
1000
SET @@session.ROCKSDB_BULK_LOAD_SIZE = @start_session_value;
SELECT @@session.ROCKSDB_BULK_LOAD_SIZE;
@@session.ROCKSDB_BULK_LOAD_SIZE
1000
DROP TABLE valid_values;
DROP TABLE invalid_values;
