Commit c753bedc authored by Sergei Golubchik's avatar Sergei Golubchik

win64 sysvar portability fixes

parent 943af08c
......@@ -211,7 +211,7 @@ extern void (*error_handler_hook)(uint my_err, const char *str,myf MyFlags);
extern void (*fatal_error_handler_hook)(uint my_err, const char *str,
myf MyFlags);
extern uint my_file_limit;
extern ulong my_thread_stack_size;
extern ulonglong my_thread_stack_size;
extern const char *(*proc_info_hook)(MYSQL_THD, const char *, const char *,
const char *, const unsigned int);
......
......@@ -36,11 +36,11 @@ SELECT `int_key`
FROM CC
WHERE `date_nokey` < `datetime_nokey` XOR '2009-11-25' ) ;
pk
9
2
4
5
6
4
9
Warnings:
Warning 1292 Truncated incorrect INTEGER value: '2009-11-25'
Warning 1292 Truncated incorrect INTEGER value: '2009-11-25'
......
......@@ -38,7 +38,8 @@ select @@global.deadlock_timeout_long;
set session deadlock_timeout_long=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect deadlock_timeout_long value: '18446744073709551615'
select @@session.deadlock_timeout_long;
@@session.deadlock_timeout_long
18446744073709551615
4294967295
SET @@global.deadlock_timeout_long = @start_global_value;
......@@ -38,7 +38,8 @@ select @@global.deadlock_timeout_short;
set session deadlock_timeout_short=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect deadlock_timeout_short value: '18446744073709551615'
select @@session.deadlock_timeout_short;
@@session.deadlock_timeout_short
18446744073709551615
4294967295
SET @@global.deadlock_timeout_short = @start_global_value;
......@@ -35,7 +35,8 @@ select @@global.debug_binlog_fsync_sleep;
set global debug_binlog_fsync_sleep=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect debug_binlog_fsync_sleep value: '18446744073709551615'
select @@global.debug_binlog_fsync_sleep;
@@global.debug_binlog_fsync_sleep
18446744073709551615
4294967295
SET @@global.debug_binlog_fsync_sleep = @start_global_value;
......@@ -40,19 +40,21 @@ SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
1
SET @@global.delayed_insert_limit = 42949672950;
Warnings:
Warning 1292 Truncated incorrect delayed_insert_limit value: '42949672950'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
42949672950
4294967295
SET @@global.delayed_insert_limit = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_limit'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
42949672950
4294967295
SET @@global.delayed_insert_limit = ON;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_limit'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
42949672950
4294967295
'#-------------------FN_DYNVARS_024_05----------------------------#'
SET @@session.delayed_insert_limit = 0;
ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable and should be set with SET GLOBAL
......
......@@ -40,19 +40,21 @@ SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
SET @@global.delayed_queue_size = 42949672950;
Warnings:
Warning 1292 Truncated incorrect delayed_queue_size value: '42949672950'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
42949672950
4294967295
SET @@global.delayed_queue_size = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
42949672950
4294967295
SET @@global.delayed_queue_size = ON;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@delayed_queue_size;
@@delayed_queue_size
42949672950
4294967295
'#-------------------FN_DYNVARS_026_05----------------------------#'
SET @@session.delayed_queue_size = 0;
ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be set with SET GLOBAL
......
......@@ -45,12 +45,12 @@ Warnings:
Warning 1292 Truncated incorrect key_cache_age_threshold value: '42949672951'
SELECT @@global.key_cache_age_threshold;
@@global.key_cache_age_threshold
42949672900
4294967200
SET @@global.key_cache_age_threshold = 10000.01;
ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
SELECT @@global.key_cache_age_threshold;
@@global.key_cache_age_threshold
42949672900
4294967200
SET @@global.key_cache_age_threshold = -1024;
Warnings:
Warning 1292 Truncated incorrect key_cache_age_threshold value: '-1024'
......
......@@ -40,7 +40,8 @@ select @@global.log_slow_rate_limit;
set session log_slow_rate_limit=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect log_slow_rate_limit value: '18446744073709551615'
select @@session.log_slow_rate_limit;
@@session.log_slow_rate_limit
18446744073709551615
4294967295
SET @@global.log_slow_rate_limit = @start_global_value;
......@@ -70,9 +70,11 @@ SELECT @@session.log_warnings;
65550
'#------------------FN_DYNVARS_067_05-----------------------#'
SET @@global.log_warnings = 100000000000;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '100000000000'
SELECT @@global.log_warnings;
@@global.log_warnings
100000000000
4294967295
SET @@global.log_warnings = -1024;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '-1024'
......@@ -90,9 +92,11 @@ SELECT @@global.log_warnings;
@@global.log_warnings
0
SET @@session.log_warnings = 100000000000;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '100000000000'
SELECT @@session.log_warnings;
@@session.log_warnings
100000000000
4294967295
SET @@session.log_warnings = -2;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '-2'
......
SET @start_value = @@global.max_binlog_cache_size;
SELECT @start_value;
@start_value
18446744073709547520
4294963200
'#--------------------FN_DYNVARS_072_01------------------------#'
SET @@global.max_binlog_cache_size = 5000;
Warnings:
......@@ -9,7 +9,7 @@ Warning 1292 Truncated incorrect max_binlog_cache_size value: '5000'
SET @@global.max_binlog_cache_size = DEFAULT;
SELECT @@global.max_binlog_cache_size;
@@global.max_binlog_cache_size
18446744073709547520
4294963200
'#---------------------FN_DYNVARS_072_02-------------------------#'
SET @@global.max_binlog_cache_size = @start_value;
SELECT @@global.max_binlog_cache_size = 4294967295;
......@@ -149,4 +149,4 @@ ERROR 42S22: Unknown column 'max_binlog_cache_size' in 'field list'
SET @@global.max_binlog_cache_size = @start_value;
SELECT @@global.max_binlog_cache_size;
@@global.max_binlog_cache_size
18446744073709547520
4294963200
SET @start_value = @@global.max_binlog_stmt_cache_size;
SELECT @start_value;
@start_value
18446744073709547520
4294963200
'#--------------------FN_DYNVARS_072_01------------------------#'
SET @@global.max_binlog_stmt_cache_size = 5000;
Warnings:
......@@ -9,7 +9,7 @@ Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '5000'
SET @@global.max_binlog_stmt_cache_size = DEFAULT;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
18446744073709547520
4294963200
'#---------------------FN_DYNVARS_072_02-------------------------#'
SET @@global.max_binlog_stmt_cache_size = @start_value;
SELECT @@global.max_binlog_stmt_cache_size = 4294967295;
......@@ -149,4 +149,4 @@ ERROR 42S22: Unknown column 'max_binlog_stmt_cache_size' in 'field list'
SET @@global.max_binlog_stmt_cache_size = @start_value;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
18446744073709547520
4294963200
......@@ -42,14 +42,16 @@ SELECT @@global.max_connect_errors;
@@global.max_connect_errors
1
SET @@global.max_connect_errors = 100000000000;
Warnings:
Warning 1292 Truncated incorrect max_connect_errors value: '100000000000'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
100000000000
4294967295
SET @@global.max_connect_errors = 10000.01;
ERROR 42000: Incorrect argument type to variable 'max_connect_errors'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
100000000000
4294967295
SET @@global.max_connect_errors = -1024;
Warnings:
Warning 1292 Truncated incorrect max_connect_errors value: '-1024'
......@@ -63,19 +65,21 @@ SELECT @@global.max_connect_errors;
@@global.max_connect_errors
1
SET @@global.max_connect_errors = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_connect_errors value: '4294967296'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
4294967296
4294967295
SET @@global.max_connect_errors = ON;
ERROR 42000: Incorrect argument type to variable 'max_connect_errors'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
4294967296
4294967295
SET @@global.max_connect_errors = 'test';
ERROR 42000: Incorrect argument type to variable 'max_connect_errors'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
4294967296
4294967295
'#-------------------FN_DYNVARS_073_05----------------------------#'
SET @@session.max_connect_errors = 4096;
ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable and should be set with SET GLOBAL
......
SET @start_global_value = @@global.max_seeks_for_key;
SELECT @start_global_value;
@start_global_value
18446744073709551615
4294967295
SET @start_session_value = @@session.max_seeks_for_key;
SELECT @start_session_value;
@start_session_value
18446744073709551615
4294967295
'#--------------------FN_DYNVARS_083_01-------------------------#'
SET @@global.max_seeks_for_key = 100;
SET @@global.max_seeks_for_key = DEFAULT;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
18446744073709551615
4294967295
SET @@session.max_seeks_for_key = 200;
SET @@session.max_seeks_for_key = DEFAULT;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
18446744073709551615
4294967295
'#--------------------FN_DYNVARS_083_02-------------------------#'
SET @@global.max_seeks_for_key = DEFAULT;
SELECT @@global.max_seeks_for_key = 4294967295;
@@global.max_seeks_for_key = 4294967295
0
1
SET @@session.max_seeks_for_key = DEFAULT;
SELECT @@session.max_seeks_for_key = 4294967295;
@@session.max_seeks_for_key = 4294967295
0
1
'#--------------------FN_DYNVARS_083_03-------------------------#'
SET @@global.max_seeks_for_key = 1;
SELECT @@global.max_seeks_for_key;
......@@ -82,19 +82,21 @@ SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
SET @@global.max_seeks_for_key = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_seeks_for_key value: '4294967296'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967296
4294967295
SET @@global.max_seeks_for_key = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967296
4294967295
SET @@global.max_seeks_for_key = test;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
4294967296
4294967295
SET @@session.max_seeks_for_key = 0;
Warnings:
Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
......@@ -110,14 +112,16 @@ SELECT @@session.max_seeks_for_key;
SET @@session.max_seeks_for_key = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SET @@session.max_seeks_for_key = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_seeks_for_key value: '4294967296'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967296
4294967295
SET @@session.max_seeks_for_key = test;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
4294967296
4294967295
'#------------------FN_DYNVARS_083_06-----------------------#'
SELECT @@global.max_seeks_for_key = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......@@ -168,8 +172,8 @@ ERROR 42S22: Unknown column 'max_seeks_for_key' in 'field list'
SET @@global.max_seeks_for_key = @start_global_value;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
18446744073709551615
4294967295
SET @@session.max_seeks_for_key = @start_session_value;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
18446744073709551615
4294967295
......@@ -76,9 +76,11 @@ SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
1
SET @@global.max_tmp_tables = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '4294967296'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
4294967296
4294967295
SET @@global.max_tmp_tables = -1;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '-1'
......@@ -86,23 +88,27 @@ SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
1
SET @@global.max_tmp_tables = 429496729500;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '429496729500'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
429496729500
4294967295
SET @@global.max_tmp_tables = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
429496729500
4294967295
SET @@global.max_tmp_tables = test;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
429496729500
4294967295
SET @@session.max_tmp_tables = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '4294967296'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
4294967296
4294967295
SET @@session.max_tmp_tables = -1;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '-1'
......@@ -110,9 +116,11 @@ SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
1
SET @@session.max_tmp_tables = 429496729500;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '429496729500'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
429496729500
4294967295
SET @@session.max_tmp_tables = -001;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '-1'
......@@ -122,14 +130,16 @@ SELECT @@session.max_tmp_tables;
SET @@session.max_tmp_tables = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SET @@session.max_tmp_tables = 10737418241;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '10737418241'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
10737418241
4294967295
SET @@session.max_tmp_tables = test;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
10737418241
4294967295
'#------------------FN_DYNVARS_086_06-----------------------#'
SELECT @@global.max_tmp_tables = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......
SET @start_global_value = @@global.max_write_lock_count;
SELECT @start_global_value;
@start_global_value
18446744073709551615
4294967295
'#--------------------FN_DYNVARS_088_01-------------------------#'
SET @@global.max_write_lock_count = 1000;
SET @@global.max_write_lock_count = DEFAULT;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
18446744073709551615
4294967295
'#--------------------FN_DYNVARS_088_02-------------------------#'
SET @@global.max_write_lock_count = DEFAULT;
SELECT @@global.max_write_lock_count = 4294967295;
@@global.max_write_lock_count = 4294967295
0
1
'#--------------------FN_DYNVARS_088_03-------------------------#'
SET @@global.max_write_lock_count = 1;
SELECT @@global.max_write_lock_count;
......@@ -42,9 +42,11 @@ SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '4294967296'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967296
4294967295
SET @@global.max_write_lock_count = -1;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '-1'
......@@ -52,19 +54,21 @@ SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 429496729500;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '429496729500'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729500
4294967295
SET @@global.max_write_lock_count = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_write_lock_count'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729500
4294967295
SET @@global.max_write_lock_count = test;
ERROR 42000: Incorrect argument type to variable 'max_write_lock_count'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729500
4294967295
'#------------------FN_DYNVARS_088_05-----------------------#'
SELECT @@global.max_write_lock_count = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......@@ -101,4 +105,4 @@ ERROR 42S22: Unknown column 'max_write_lock_count' in 'field list'
SET @@global.max_write_lock_count = @start_global_value;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
18446744073709551615
4294967295
......@@ -88,23 +88,27 @@ SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
0
SET @@global.min_examined_row_limit = 429496729500;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '429496729500'
SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
429496729500
4294967295
SET @@global.min_examined_row_limit = 65530.34;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
429496729500
4294967295
SET @@global.min_examined_row_limit = test;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
429496729500
4294967295
SET @@session.min_examined_row_limit = 4294967296;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '4294967296'
SELECT @@session.min_examined_row_limit;
@@session.min_examined_row_limit
4294967296
4294967295
SET @@session.min_examined_row_limit = -1;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '-1'
......@@ -114,14 +118,16 @@ SELECT @@session.min_examined_row_limit;
SET @@session.min_examined_row_limit = 65530.34;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SET @@session.min_examined_row_limit = 4294967295021;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '4294967295021'
SELECT @@session.min_examined_row_limit;
@@session.min_examined_row_limit
4294967295021
4294967295
SET @@session.min_examined_row_limit = test;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SELECT @@session.min_examined_row_limit;
@@session.min_examined_row_limit
4294967295021
4294967295
'#------------------FN_DYNVARS_089_06-----------------------#'
SELECT @@global.min_examined_row_limit = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......
......@@ -82,23 +82,27 @@ SELECT @@global.net_retry_count;
@@global.net_retry_count
1
SET @@global.net_retry_count = 4294967296;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '4294967296'
SELECT @@global.net_retry_count;
@@global.net_retry_count
4294967296
4294967295
SET @@global.net_retry_count = 429496729500;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '429496729500'
SELECT @@global.net_retry_count;
@@global.net_retry_count
429496729500
4294967295
SET @@global.net_retry_count = 65530.34;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SELECT @@global.net_retry_count;
@@global.net_retry_count
429496729500
4294967295
SET @@global.net_retry_count = test;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SELECT @@global.net_retry_count;
@@global.net_retry_count
429496729500
4294967295
SET @@session.net_retry_count = 0;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '0'
......@@ -114,18 +118,22 @@ SELECT @@session.net_retry_count;
SET @@session.net_retry_count = 65530.34;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SET @@session.net_retry_count = 6555015425;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '6555015425'
SELECT @@session.net_retry_count;
@@session.net_retry_count
6555015425
4294967295
SET @@session.net_retry_count = 4294967296;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '4294967296'
SELECT @@session.net_retry_count;
@@session.net_retry_count
4294967296
4294967295
SET @@session.net_retry_count = test;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SELECT @@session.net_retry_count;
@@session.net_retry_count
4294967296
4294967295
'#------------------FN_DYNVARS_111_06-----------------------#'
SELECT @@global.net_retry_count = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......
......@@ -38,7 +38,8 @@ select @@global.progress_report_time;
set session progress_report_time=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect progress_report_time value: '18446744073709551615'
select @@session.progress_report_time;
@@session.progress_report_time
18446744073709551615
4294967295
SET @@global.progress_report_time = @start_global_value;
......@@ -38,18 +38,22 @@ SELECT @@global.query_cache_limit;
@@global.query_cache_limit
0
SET @@global.query_cache_limit = 4294967296;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '4294967296'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
4294967296
4294967295
SET @@global.query_cache_limit = 10240022115;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '10240022115'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
10240022115
4294967295
SET @@global.query_cache_limit = 10000.01;
ERROR 42000: Incorrect argument type to variable 'query_cache_limit'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
10240022115
4294967295
SET @@global.query_cache_limit = -1024;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '-1024'
......@@ -57,25 +61,27 @@ SELECT @@global.query_cache_limit;
@@global.query_cache_limit
0
SET @@global.query_cache_limit = 42949672950;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '42949672950'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
42949672950
4294967295
SET @@global.query_cache_limit = ON;
ERROR 42000: Incorrect argument type to variable 'query_cache_limit'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
42949672950
4294967295
SET @@global.query_cache_limit = 'test';
ERROR 42000: Incorrect argument type to variable 'query_cache_limit'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
42949672950
4294967295
'#-------------------FN_DYNVARS_131_05----------------------------#'
SET @@session.query_cache_limit = 0;
ERROR HY000: Variable 'query_cache_limit' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@query_cache_limit;
@@query_cache_limit
42949672950
4294967295
'#----------------------FN_DYNVARS_131_06------------------------#'
SELECT @@global.query_cache_limit = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......
......@@ -46,6 +46,8 @@ SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
512
SET @@global.query_cache_min_res_unit = 4294967296;
Warnings:
Warning 1292 Truncated incorrect query_cache_min_res_unit value: '4294967296'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
4294967296
......@@ -65,25 +67,27 @@ SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
512
SET @@global.query_cache_min_res_unit = 42949672950;
Warnings:
Warning 1292 Truncated incorrect query_cache_min_res_unit value: '42949672950'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
42949672952
4294967296
SET @@global.query_cache_min_res_unit = ON;
ERROR 42000: Incorrect argument type to variable 'query_cache_min_res_unit'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
42949672952
4294967296
SET @@global.query_cache_min_res_unit = 'test';
ERROR 42000: Incorrect argument type to variable 'query_cache_min_res_unit'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
42949672952
4294967296
'#-------------------FN_DYNVARS_132_05----------------------------#'
SET @@session.query_cache_min_res_unit = 0;
ERROR HY000: Variable 'query_cache_min_res_unit' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@query_cache_min_res_unit;
@@query_cache_min_res_unit
42949672952
4294967296
'#----------------------FN_DYNVARS_132_06------------------------#'
SELECT @@global.query_cache_min_res_unit = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......
......@@ -86,17 +86,17 @@ Warnings:
Warning 1292 Truncated incorrect range_alloc_block_size value: '42949672951'
SELECT @@global.range_alloc_block_size;
@@global.range_alloc_block_size
42949671936
4294966272
SET @@global.range_alloc_block_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SELECT @@global.range_alloc_block_size;
@@global.range_alloc_block_size
42949671936
4294966272
SET @@global.range_alloc_block_size = test;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SELECT @@global.range_alloc_block_size;
@@global.range_alloc_block_size
42949671936
4294966272
SET @@session.range_alloc_block_size = 0;
Warnings:
Warning 1292 Truncated incorrect range_alloc_block_size value: '0'
......@@ -112,14 +112,16 @@ SELECT @@session.range_alloc_block_size;
SET @@session.range_alloc_block_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SET @@session.range_alloc_block_size = 4294967296;
Warnings:
Warning 1292 Truncated incorrect range_alloc_block_size value: '4294967296'
SELECT @@session.range_alloc_block_size;
@@session.range_alloc_block_size
4294967296
4294966272
SET @@session.range_alloc_block_size = test;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SELECT @@session.range_alloc_block_size;
@@session.range_alloc_block_size
4294967296
4294966272
'#------------------FN_DYNVARS_137_06-----------------------#'
SELECT @@global.range_alloc_block_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
......
......@@ -39,9 +39,11 @@ SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967295
SET @@global.slave_transaction_retries = 2147483649*2;
Warnings:
Warning 1292 Truncated incorrect slave_transaction_retries value: '4294967298'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967298
4294967295
SET @@global.slave_transaction_retries = 4294967295;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
......@@ -61,9 +63,11 @@ SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
0
SET @@global.slave_transaction_retries = 2147483649*2147483649;
Warnings:
Warning 1292 Truncated incorrect slave_transaction_retries value: '4611686022722355201'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4611686022722355201
4294967295
SET @@global.slave_transaction_retries = 65530.34;
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
SET @@global.slave_transaction_retries = '100';
......
......@@ -82,7 +82,7 @@ Warnings:
Warning 1292 Truncated incorrect transaction_alloc_block_size value: '123456789201'
SELECT @@global.transaction_alloc_block_size;
@@global.transaction_alloc_block_size
123456788480
4294966272
SET @@global.transaction_alloc_block_size = ON;
ERROR 42000: Incorrect argument type to variable 'transaction_alloc_block_size'
SET @@global.transaction_alloc_block_size = OFF;
......@@ -114,7 +114,7 @@ Warnings:
Warning 1292 Truncated incorrect transaction_alloc_block_size value: '12345678901'
SELECT @@session.transaction_alloc_block_size;
@@session.transaction_alloc_block_size
12345678848
4294966272
SET @@session.transaction_alloc_block_size = ON;
ERROR 42000: Incorrect argument type to variable 'transaction_alloc_block_size'
SET @@session.transaction_alloc_block_size = OFF;
......
......@@ -39,7 +39,7 @@ static my_bool win32_init_tcp_ip();
my_bool my_init_done= 0;
uint mysys_usage_id= 0; /* Incremented for each my_init() */
ulong my_thread_stack_size= (sizeof(void*) <= 4)? 65536: ((256-16)*1024);
ulonglong my_thread_stack_size= (sizeof(void*) <= 4)? 65536: ((256-16)*1024);
static ulong atoi_octal(const char *str)
{
......
......@@ -473,11 +473,11 @@ uint slave_net_timeout;
ulong slave_exec_mode_options;
ulonglong slave_type_conversions_options;
ulong thread_cache_size=0;
ulong binlog_cache_size=0;
ulong max_binlog_cache_size=0;
ulong binlog_stmt_cache_size=0;
ulong max_binlog_stmt_cache_size=0;
ulong query_cache_size=0;
ulonglong binlog_cache_size=0;
ulonglong max_binlog_cache_size=0;
ulonglong binlog_stmt_cache_size=0;
ulonglong max_binlog_stmt_cache_size=0;
ulonglong query_cache_size=0;
ulong refresh_version; /* Increments on each reload */
query_id_t global_query_id;
my_atomic_rwlock_t global_query_id_lock;
......@@ -2800,7 +2800,7 @@ and this may fail.\n\n");
fprintf(stderr, "thread_count=%u\n", thread_count);
fprintf(stderr, "It is possible that mysqld could use up to \n\
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = %lu K\n\
bytes of memory\n", ((ulong) dflt_key_cache->key_cache_mem_size +
bytes of memory\n", (ulong) (dflt_key_cache->key_cache_mem_size +
(global_system_variables.read_buff_size +
global_system_variables.sortbuff_size) *
(thread_scheduler->max_threads + extra_max_connections) +
......@@ -4885,8 +4885,8 @@ int mysqld_main(int argc, char **argv)
if (stack_size && stack_size < my_thread_stack_size)
{
if (global_system_variables.log_warnings)
sql_print_warning("Asked for %lu thread stack, but got %ld",
my_thread_stack_size, (long) stack_size);
sql_print_warning("Asked for %llu thread stack, but got %zu",
my_thread_stack_size, stack_size);
#if defined(__ia64__) || defined(__ia64)
my_thread_stack_size= stack_size*2;
#else
......
......@@ -151,7 +151,8 @@ extern ulong delayed_insert_limit, delayed_queue_size;
extern ulong delayed_insert_threads, delayed_insert_writes;
extern ulong delayed_rows_in_use,delayed_insert_errors;
extern ulong slave_open_temp_tables;
extern ulong query_cache_size, query_cache_min_res_unit;
extern ulonglong query_cache_size;
extern ulong query_cache_min_res_unit;
extern ulong slow_launch_threads, slow_launch_time;
extern ulong table_cache_size, table_def_size;
extern MYSQL_PLUGIN_IMPORT ulong max_connections;
......@@ -165,8 +166,8 @@ extern int max_user_connections;
extern ulong what_to_log,flush_time;
extern ulong max_prepared_stmt_count, prepared_stmt_count;
extern ulong open_files_limit;
extern ulong binlog_cache_size, binlog_stmt_cache_size;
extern ulong max_binlog_cache_size, max_binlog_stmt_cache_size;
extern ulonglong binlog_cache_size, binlog_stmt_cache_size;
extern ulonglong max_binlog_cache_size, max_binlog_stmt_cache_size;
extern ulong max_binlog_size, max_relay_log_size;
extern ulong opt_binlog_rows_event_max_size;
extern ulong rpl_recovery_rank, thread_cache_size;
......
......@@ -467,11 +467,13 @@ typedef struct system_variables
ulonglong join_buff_space_limit;
ulonglong log_slow_filter;
ulonglong log_slow_verbosity;
ulonglong bulk_insert_buff_size;
ulonglong join_buff_size;
ulonglong sortbuff_size;
ulonglong group_concat_max_len;
ha_rows select_limit;
ha_rows max_join_size;
ulong auto_increment_increment, auto_increment_offset;
ulong bulk_insert_buff_size;
ulong join_buff_size;
ulong lock_wait_timeout;
ulong join_cache_level;
ulong max_allowed_packet;
......@@ -496,7 +498,6 @@ typedef struct system_variables
ulong read_rnd_buff_size;
ulong mrr_buff_size;
ulong div_precincrement;
ulong sortbuff_size;
/* Total size of all buffers used by the subselect_rowid_merge_engine. */
ulong rowid_merge_buff_size;
ulong max_sp_recursion_depth;
......@@ -508,7 +509,6 @@ typedef struct system_variables
ulong trans_alloc_block_size;
ulong trans_prealloc_size;
ulong log_warnings;
ulong group_concat_max_len;
/* Flags for slow log filtering */
ulong log_slow_rate_limit;
ulong binlog_format; ///< binlog format for this thd (see enum_binlog_format)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment