Below is the list of changes that have just been committed into a local
5.1 repository of hhunger. When hhunger does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2008-05-06 15:00:47+02:00, hhunger@stripped +169 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
BitKeeper/etc/ignore@stripped, 2008-05-06 15:00:38+02:00, hhunger@stripped +21 -0
Added mysql-test/t/init_connect_func.test
mysql-test/t/innodb_flush_log_at_trx_commit_func.test
mysql-test/t/max_connections_func.test mysql-test/t/max_error_count_func.test
mysql-test/t/max_heap_table_size_func.test mysql-test/t/rpl_sql_log_bin_func.test
mysql-test/t/rpl_sql_slave_skip_counter_func.test mysql-test/t/storage_engine_func.test
mysql-test/r/init_connect_func.result
mysql-test/r/innodb_flush_log_at_trx_commit_func.result
mysql-test/r/max_connections_func.result mysql-test/r/max_error_count_func.result
mysql-test/r/max_heap_table_size_func.result mysql-test/r/rpl_sql_log_bin_func.result
mysql-test/r/rpl_sql_slave_skip_counter_func.result
mysql-test/r/storage_engine_func.result mysql-test/pst.log mysql-test/t-fix.reg
mysql-test/t.log mysql-test/t.reg mysql-test/tps.reg to the ignore list
mysql-test/include/have_32bit.inc@stripped, 2008-05-06 15:00:38+02:00, hhunger@stripped
+16 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/include/have_32bit.inc@stripped, 2008-05-06 15:00:38+02:00, hhunger@stripped
+0 -0
mysql-test/include/have_64bit.inc@stripped, 2008-05-06 15:00:38+02:00, hhunger@stripped
+14 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/include/have_64bit.inc@stripped, 2008-05-06 15:00:38+02:00, hhunger@stripped
+0 -0
mysql-test/include/load_sysvars.inc@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +2 -2
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/binlog_cache_size_basic.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +102 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/binlog_cache_size_basic.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/r/binlog_cache_size_basic_64.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +100 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/binlog_cache_size_basic_64.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/r/bulk_insert_buffer_size_basic.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +154 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/bulk_insert_buffer_size_basic.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/r/bulk_insert_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +150 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/bulk_insert_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/r/delayed_insert_limit_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +112 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/delayed_insert_limit_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/delayed_insert_limit_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +110 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/delayed_insert_limit_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/delayed_queue_size_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +110 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/delayed_queue_size_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/delayed_queue_size_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +108 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/delayed_queue_size_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/flush_time_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +111 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/flush_time_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/innodb_concurrency_tickets_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +100 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/innodb_concurrency_tickets_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/innodb_concurrency_tickets_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +98 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/innodb_concurrency_tickets_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/innodb_max_purge_lag_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +94 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/innodb_max_purge_lag_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/innodb_max_purge_lag_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +92 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/innodb_max_purge_lag_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/innodb_sync_spin_loops_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +94 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/innodb_sync_spin_loops_basic.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/innodb_sync_spin_loops_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +92 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/innodb_sync_spin_loops_basic_64.result@stripped, 2008-05-06 15:00:31+02:00,
hhunger@stripped +0 -0
mysql-test/r/join_buffer_size_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +198 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/join_buffer_size_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/join_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +194 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/join_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_buffer_size_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +111 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_buffer_size_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +109 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_cache_age_threshold_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +126 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_cache_age_threshold_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_cache_age_threshold_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +126 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_cache_age_threshold_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_cache_block_size_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +142 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_cache_block_size_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_cache_block_size_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +142 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_cache_block_size_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_cache_division_limit_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +139 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_cache_division_limit_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/key_cache_division_limit_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +139 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/key_cache_division_limit_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/log_warnings_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +162 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/log_warnings_basic.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/log_warnings_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +158 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/log_warnings_basic_64.result@stripped, 2008-05-06 15:00:32+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_binlog_cache_size_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +145 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_binlog_cache_size_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_binlog_cache_size_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +141 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_binlog_cache_size_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_connect_errors_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +137 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_connect_errors_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_connect_errors_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +133 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_connect_errors_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_heap_table_size_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +196 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_heap_table_size_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_heap_table_size_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +196 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_heap_table_size_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_seeks_for_key_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +180 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_seeks_for_key_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_seeks_for_key_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +176 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_seeks_for_key_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_tmp_tables_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +197 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_tmp_tables_basic.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_tmp_tables_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +187 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_tmp_tables_basic_64.result@stripped, 2008-05-06 15:00:33+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_write_lock_count_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +108 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_write_lock_count_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/max_write_lock_count_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +104 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/max_write_lock_count_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/min_examined_row_limit_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +180 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/min_examined_row_limit_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/min_examined_row_limit_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +174 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/min_examined_row_limit_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/multi_range_count_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +192 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/multi_range_count_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/multi_range_count_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +184 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/multi_range_count_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/myisam_max_sort_file_size_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +114 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/myisam_max_sort_file_size_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/myisam_max_sort_file_size_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +114 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/myisam_max_sort_file_size_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/myisam_repair_threads_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +180 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/myisam_repair_threads_basic.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/myisam_repair_threads_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +178 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/myisam_repair_threads_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/myisam_sort_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +182 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/myisam_sort_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:34+02:00,
hhunger@stripped +0 -0
mysql-test/r/net_retry_count_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +192 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/net_retry_count_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/net_retry_count_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +184 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/net_retry_count_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_alloc_block_size_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +203 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_alloc_block_size_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_alloc_block_size_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +199 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_alloc_block_size_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_cache_limit_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +126 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_cache_limit_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_cache_limit_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +120 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_cache_limit_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_cache_min_res_unit_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +134 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_cache_min_res_unit_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_cache_min_res_unit_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +130 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_cache_min_res_unit_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_cache_size_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +138 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_cache_size_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_cache_size_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +134 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_cache_size_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_prealloc_size_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +192 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_prealloc_size_basic.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/query_prealloc_size_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +190 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/query_prealloc_size_basic_64.result@stripped, 2008-05-06 15:00:35+02:00,
hhunger@stripped +0 -0
mysql-test/r/range_alloc_block_size_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +182 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/range_alloc_block_size_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/range_alloc_block_size_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +178 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/range_alloc_block_size_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/rpl_recovery_rank_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +110 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/rpl_recovery_rank_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/server_id_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +115 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/server_id_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/server_id_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +113 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/server_id_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/slave_transaction_retries_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +119 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/slave_transaction_retries_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/slave_transaction_retries_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +115 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/slave_transaction_retries_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/sort_buffer_size_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +193 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/sort_buffer_size_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/sort_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +189 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/sort_buffer_size_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/sync_binlog_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +105 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/sync_binlog_basic.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/sync_binlog_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +105 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/sync_binlog_basic_64.result@stripped, 2008-05-06 15:00:36+02:00,
hhunger@stripped +0 -0
mysql-test/r/timestamp_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +73 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/timestamp_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/timestamp_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +73 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/timestamp_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/tmp_table_size_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +172 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/tmp_table_size_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/tmp_table_size_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +172 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/tmp_table_size_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/transaction_alloc_block_size_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +180 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/transaction_alloc_block_size_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/transaction_alloc_block_size_basic_64.result@stripped, 2008-05-06
15:00:37+02:00, hhunger@stripped +176 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/transaction_alloc_block_size_basic_64.result@stripped, 2008-05-06
15:00:37+02:00, hhunger@stripped +0 -0
mysql-test/r/transaction_prealloc_size_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +172 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/transaction_prealloc_size_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/transaction_prealloc_size_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +170 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/transaction_prealloc_size_basic_64.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/wait_timeout_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +129 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/wait_timeout_basic.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/wait_timeout_basic_32.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +130 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/wait_timeout_basic_32.result@stripped, 2008-05-06 15:00:37+02:00,
hhunger@stripped +0 -0
mysql-test/r/wait_timeout_basic_64.result@stripped, 2008-05-06 15:00:38+02:00,
hhunger@stripped +129 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/r/wait_timeout_basic_64.result@stripped, 2008-05-06 15:00:38+02:00,
hhunger@stripped +0 -0
mysql-test/t/binlog_cache_size_basic.test@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +156 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/binlog_cache_size_basic.test@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +0 -0
mysql-test/t/binlog_cache_size_basic_64.test@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +156 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/binlog_cache_size_basic_64.test@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +0 -0
mysql-test/t/bulk_insert_buffer_size_basic.test@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +204 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/bulk_insert_buffer_size_basic.test@stripped, 2008-05-06 15:00:22+02:00,
hhunger@stripped +0 -0
mysql-test/t/bulk_insert_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +204 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/bulk_insert_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/delayed_insert_limit_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +168 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/delayed_insert_limit_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/delayed_insert_limit_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +168 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/delayed_insert_limit_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/delayed_queue_size_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +164 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/delayed_queue_size_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/delayed_queue_size_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +164 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/delayed_queue_size_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/flush_time_basic.test@stripped, 2008-05-06 15:00:23+02:00, hhunger@stripped
+177 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/flush_time_basic.test@stripped, 2008-05-06 15:00:23+02:00, hhunger@stripped
+0 -0
mysql-test/t/innodb_concurrency_tickets_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +147 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/innodb_concurrency_tickets_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/innodb_concurrency_tickets_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +147 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/innodb_concurrency_tickets_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/innodb_max_purge_lag_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +147 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/innodb_max_purge_lag_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/innodb_max_purge_lag_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +147 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/innodb_max_purge_lag_basic_64.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/innodb_sync_spin_loops_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +142 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/innodb_sync_spin_loops_basic.test@stripped, 2008-05-06 15:00:23+02:00,
hhunger@stripped +0 -0
mysql-test/t/innodb_sync_spin_loops_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +142 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/innodb_sync_spin_loops_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/join_buffer_size_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +218 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/join_buffer_size_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/join_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +218 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/join_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_buffer_size_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_buffer_size_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +189 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_cache_age_threshold_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +182 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_cache_age_threshold_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_cache_age_threshold_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +182 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_cache_age_threshold_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_cache_block_size_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +187 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_cache_block_size_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_cache_block_size_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +187 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_cache_block_size_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_cache_division_limit_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +186 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_cache_division_limit_basic.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/key_cache_division_limit_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +186 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/key_cache_division_limit_basic_64.test@stripped, 2008-05-06 15:00:24+02:00,
hhunger@stripped +0 -0
mysql-test/t/log_warnings_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +211 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/log_warnings_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/log_warnings_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +211 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/log_warnings_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_binlog_cache_size_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_binlog_cache_size_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_binlog_cache_size_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_binlog_cache_size_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_connect_errors_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +184 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_connect_errors_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_connect_errors_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +184 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_connect_errors_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_heap_table_size_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +223 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_heap_table_size_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_heap_table_size_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +223 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_heap_table_size_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_seeks_for_key_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +214 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_seeks_for_key_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_seeks_for_key_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +214 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_seeks_for_key_basic_64.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_tmp_tables_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +229 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_tmp_tables_basic.test@stripped, 2008-05-06 15:00:25+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_tmp_tables_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +229 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_tmp_tables_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_write_lock_count_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +159 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_write_lock_count_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/max_write_lock_count_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +159 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/max_write_lock_count_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/min_examined_row_limit_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +220 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/min_examined_row_limit_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/min_examined_row_limit_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +220 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/min_examined_row_limit_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/multi_range_count_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +221 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/multi_range_count_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/multi_range_count_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +221 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/multi_range_count_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/myisam_max_sort_file_size_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +185 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/myisam_max_sort_file_size_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/myisam_max_sort_file_size_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +185 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/myisam_max_sort_file_size_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/myisam_repair_threads_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +243 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/myisam_repair_threads_basic.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/myisam_repair_threads_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +243 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/myisam_repair_threads_basic_64.test@stripped, 2008-05-06 15:00:26+02:00,
hhunger@stripped +0 -0
mysql-test/t/myisam_sort_buffer_size_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +241 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/myisam_sort_buffer_size_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/myisam_sort_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +241 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/myisam_sort_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/net_retry_count_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +218 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/net_retry_count_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/net_retry_count_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +218 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/net_retry_count_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_alloc_block_size_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +226 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_alloc_block_size_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_alloc_block_size_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +226 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_alloc_block_size_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_cache_limit_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +179 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_cache_limit_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_cache_limit_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +179 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_cache_limit_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_cache_min_res_unit_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_cache_min_res_unit_basic.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_cache_min_res_unit_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_cache_min_res_unit_basic_64.test@stripped, 2008-05-06 15:00:27+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_cache_size_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +176 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_cache_size_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_cache_size_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +186 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_cache_size_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_prealloc_size_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +240 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_prealloc_size_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/query_prealloc_size_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +240 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/query_prealloc_size_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/range_alloc_block_size_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +209 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/range_alloc_block_size_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/range_alloc_block_size_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +209 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/range_alloc_block_size_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/rpl_recovery_rank_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +173 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/rpl_recovery_rank_basic.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/rpl_recovery_rank_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +173 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/rpl_recovery_rank_basic_64.test@stripped, 2008-05-06 15:00:28+02:00,
hhunger@stripped +0 -0
mysql-test/t/server_id_basic.test@stripped, 2008-05-06 15:00:29+02:00, hhunger@stripped
+188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/server_id_basic.test@stripped, 2008-05-06 15:00:29+02:00, hhunger@stripped
+0 -0
mysql-test/t/server_id_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +188 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/server_id_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/slave_transaction_retries_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +189 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/slave_transaction_retries_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/slave_transaction_retries_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +189 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/slave_transaction_retries_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/sort_buffer_size_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +214 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/sort_buffer_size_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/sort_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +214 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/sort_buffer_size_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/sync_binlog_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +157 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/sync_binlog_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/sync_binlog_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +157 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/sync_binlog_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/timestamp_basic.test@stripped, 2008-05-06 15:00:29+02:00, hhunger@stripped
+163 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/timestamp_basic.test@stripped, 2008-05-06 15:00:29+02:00, hhunger@stripped
+0 -0
mysql-test/t/timestamp_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +163 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/timestamp_basic_64.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/tmp_table_size_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +234 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/tmp_table_size_basic.test@stripped, 2008-05-06 15:00:29+02:00,
hhunger@stripped +0 -0
mysql-test/t/tmp_table_size_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +234 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/tmp_table_size_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/t/transaction_alloc_block_size_basic.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +241 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/transaction_alloc_block_size_basic.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/t/transaction_alloc_block_size_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +241 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/transaction_alloc_block_size_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/t/transaction_prealloc_size_basic.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +230 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/transaction_prealloc_size_basic.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/t/transaction_prealloc_size_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +230 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/transaction_prealloc_size_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/t/wait_timeout_basic.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +219 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/wait_timeout_basic.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
mysql-test/t/wait_timeout_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +219 -0
Fix for bug#365522: distinguish between 32 and 64 bit tests.
mysql-test/t/wait_timeout_basic_64.test@stripped, 2008-05-06 15:00:30+02:00,
hhunger@stripped +0 -0
diff -Nrup a/BitKeeper/etc/ignore b/BitKeeper/etc/ignore
--- a/BitKeeper/etc/ignore 2008-04-23 11:58:37 +02:00
+++ b/BitKeeper/etc/ignore 2008-05-06 15:00:38 +02:00
@@ -3024,3 +3024,24 @@ win/vs8cache.txt
ylwrap
zlib/*.ds?
zlib/*.vcproj
+mysql-test/t/init_connect_func.test
+mysql-test/t/innodb_flush_log_at_trx_commit_func.test
+mysql-test/t/max_connections_func.test
+mysql-test/t/max_error_count_func.test
+mysql-test/t/max_heap_table_size_func.test
+mysql-test/t/rpl_sql_log_bin_func.test
+mysql-test/t/rpl_sql_slave_skip_counter_func.test
+mysql-test/t/storage_engine_func.test
+mysql-test/r/init_connect_func.result
+mysql-test/r/innodb_flush_log_at_trx_commit_func.result
+mysql-test/r/max_connections_func.result
+mysql-test/r/max_error_count_func.result
+mysql-test/r/max_heap_table_size_func.result
+mysql-test/r/rpl_sql_log_bin_func.result
+mysql-test/r/rpl_sql_slave_skip_counter_func.result
+mysql-test/r/storage_engine_func.result
+mysql-test/pst.log
+mysql-test/t-fix.reg
+mysql-test/t.log
+mysql-test/t.reg
+mysql-test/tps.reg
diff -Nrup a/mysql-test/include/have_32bit.inc b/mysql-test/include/have_32bit.inc
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/include/have_32bit.inc 2008-05-06 15:00:38 +02:00
@@ -0,0 +1,16 @@
+# Created by Horst Hunger 2008-04-15
+# see also have_64bit.inc
+
+--disable_query_log
+--disable_warnings
+let $save = `select @@global.sort_buffer_size`;
+set @@global.sort_buffer_size = 4294967296;
+let $mach32 = `select @@global.sort_buffer_size <= 4294967295`;
+eval set @@global.sort_buffer_size = $save;
+--enable_warnings
+--enable_query_log
+if (!$mach32)
+{
+ skip need a 32 bit machine;
+}
+
diff -Nrup a/mysql-test/include/have_64bit.inc b/mysql-test/include/have_64bit.inc
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/include/have_64bit.inc 2008-05-06 15:00:38 +02:00
@@ -0,0 +1,14 @@
+# Created by Horst Hunger 2008-04-15
+# see also have_32bit.inc
+
+--disable_query_log
+let $save = `select @@session.sort_buffer_size`;
+SET @@session.sort_buffer_size = 4294967296;
+let $mach64 = `select @@session.sort_buffer_size > 4294967295`;
+eval set @@session.sort_buffer_size = $save;
+--enable_query_log
+if (!$mach64)
+{
+ skip need a 64 bit machine;
+}
+
diff -Nrup a/mysql-test/include/load_sysvars.inc b/mysql-test/include/load_sysvars.inc
--- a/mysql-test/include/load_sysvars.inc 2008-04-10 15:12:29 +02:00
+++ b/mysql-test/include/load_sysvars.inc 2008-05-06 15:00:22 +02:00
@@ -3,12 +3,12 @@
# default, minimum and maximum values
#
-
+#select @@version_compile_os;
if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows")`)
{
--source include/windows_sys_vars.inc
}
-if (`select convert(@@version_compile_os using latin1) IN
("suse-linux-gnu","redhat-linux-gnu","pc-solaris2.10")`)
+if (!`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows")`)
{
--source include/linux_sys_vars.inc
}
diff -Nrup a/mysql-test/r/binlog_cache_size_basic.result
b/mysql-test/r/binlog_cache_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/binlog_cache_size_basic.result 2008-05-06 15:00:30 +02:00
@@ -0,0 +1,102 @@
+SET @start_value = @@global.binlog_cache_size;
+SELECT @start_value;
+@start_value
+32768
+'#--------------------FN_DYNVARS_006_01------------------------#'
+SET @@global.binlog_cache_size = 100;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '100'
+SET @@global.binlog_cache_size = DEFAULT;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+32768
+'#---------------------FN_DYNVARS_006_02-------------------------#'
+SET @@global.binlog_cache_size = @start_value;
+SELECT @@global.binlog_cache_size = 32768;
+@@global.binlog_cache_size = 32768
+1
+'#--------------------FN_DYNVARS_006_03------------------------#'
+SET @@global.binlog_cache_size = 4096;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = 4294967295;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4294963200
+SET @@global.binlog_cache_size = 10000;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+8192
+SET @@global.binlog_cache_size = 21221204;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+21217280
+'Bug: Invalid values are coming in variable on assigning valid values'
+'#--------------------FN_DYNVARS_006_04-------------------------#'
+SET @@global.binlog_cache_size = 1024;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '1024'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
+SET @@global.binlog_cache_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '0'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = 42949672950;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '42949672950'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4294963200
+'Bug: Errors are not coming on assigning invalid values to variable'
+SET @@global.binlog_cache_size = ON;
+ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
+SET @@global.binlog_cache_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
+'#-------------------FN_DYNVARS_006_05----------------------------#'
+SET @@session.binlog_cache_size = 0;
+ERROR HY000: Variable 'binlog_cache_size' is a GLOBAL variable and should be set with SET
GLOBAL
+'#----------------------FN_DYNVARS_006_06------------------------#'
+SELECT @@global.binlog_cache_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='binlog_cache_size';
+@@global.binlog_cache_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_006_07----------------------#'
+SET @@global.binlog_cache_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '1'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '0'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+'Bug: Errors are not coming on assigning TRUE/FALSE to variable'
+'#---------------------FN_DYNVARS_006_08----------------------#'
+SET @@global.binlog_cache_size = 1;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '1'
+SELECT @@binlog_cache_size = @@global.binlog_cache_size;
+@@binlog_cache_size = @@global.binlog_cache_size
+1
+'#---------------------FN_DYNVARS_006_09----------------------#'
+SET binlog_cache_size = 1;
+ERROR HY000: Variable 'binlog_cache_size' is a GLOBAL variable and should be set with SET
GLOBAL
+SET global.binlog_cache_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'binlog_cache_size = 1' at
line 1
+SELECT global.binlog_cache_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT binlog_cache_size = @@session.binlog_cache_size;
+ERROR 42S22: Unknown column 'binlog_cache_size' in 'field list'
+SET @@global.binlog_cache_size = @start_value;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+32768
diff -Nrup a/mysql-test/r/binlog_cache_size_basic_64.result
b/mysql-test/r/binlog_cache_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/binlog_cache_size_basic_64.result 2008-05-06 15:00:30 +02:00
@@ -0,0 +1,100 @@
+SET @start_value = @@global.binlog_cache_size;
+SELECT @start_value;
+@start_value
+32768
+'#--------------------FN_DYNVARS_006_01------------------------#'
+SET @@global.binlog_cache_size = 100;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '100'
+SET @@global.binlog_cache_size = DEFAULT;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+32768
+'#---------------------FN_DYNVARS_006_02-------------------------#'
+SET @@global.binlog_cache_size = @start_value;
+SELECT @@global.binlog_cache_size = 32768;
+@@global.binlog_cache_size = 32768
+1
+'#--------------------FN_DYNVARS_006_03------------------------#'
+SET @@global.binlog_cache_size = 4096;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = 4294967295;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4294963200
+SET @@global.binlog_cache_size = 10000;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+8192
+SET @@global.binlog_cache_size = 21221204;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+21217280
+'Bug: Invalid values are coming in variable on assigning valid values'
+'#--------------------FN_DYNVARS_006_04-------------------------#'
+SET @@global.binlog_cache_size = 1024;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '1024'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
+SET @@global.binlog_cache_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '0'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = 42949672950;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+42949668864
+'Bug: Errors are not coming on assigning invalid values to variable'
+SET @@global.binlog_cache_size = ON;
+ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
+SET @@global.binlog_cache_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'binlog_cache_size'
+'#-------------------FN_DYNVARS_006_05----------------------------#'
+SET @@session.binlog_cache_size = 0;
+ERROR HY000: Variable 'binlog_cache_size' is a GLOBAL variable and should be set with SET
GLOBAL
+'#----------------------FN_DYNVARS_006_06------------------------#'
+SELECT @@global.binlog_cache_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='binlog_cache_size';
+@@global.binlog_cache_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_006_07----------------------#'
+SET @@global.binlog_cache_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '1'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+SET @@global.binlog_cache_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '0'
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+4096
+'Bug: Errors are not coming on assigning TRUE/FALSE to variable'
+'#---------------------FN_DYNVARS_006_08----------------------#'
+SET @@global.binlog_cache_size = 1;
+Warnings:
+Warning 1292 Truncated incorrect binlog_cache_size value: '1'
+SELECT @@binlog_cache_size = @@global.binlog_cache_size;
+@@binlog_cache_size = @@global.binlog_cache_size
+1
+'#---------------------FN_DYNVARS_006_09----------------------#'
+SET binlog_cache_size = 1;
+ERROR HY000: Variable 'binlog_cache_size' is a GLOBAL variable and should be set with SET
GLOBAL
+SET global.binlog_cache_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'binlog_cache_size = 1' at
line 1
+SELECT global.binlog_cache_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT binlog_cache_size = @@session.binlog_cache_size;
+ERROR 42S22: Unknown column 'binlog_cache_size' in 'field list'
+SET @@global.binlog_cache_size = @start_value;
+SELECT @@global.binlog_cache_size;
+@@global.binlog_cache_size
+32768
diff -Nrup a/mysql-test/r/bulk_insert_buffer_size_basic.result
b/mysql-test/r/bulk_insert_buffer_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/bulk_insert_buffer_size_basic.result 2008-05-06 15:00:30 +02:00
@@ -0,0 +1,154 @@
+SET @start_global_value = @@global.bulk_insert_buffer_size;
+SELECT @start_global_value;
+@start_global_value
+8388608
+SET @start_session_value = @@session.bulk_insert_buffer_size;
+SELECT @start_session_value;
+@start_session_value
+8388608
+'#--------------------FN_DYNVARS_007_01-------------------------#'
+SET @@global.bulk_insert_buffer_size = 100;
+SET @@global.bulk_insert_buffer_size = DEFAULT;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+8388608
+SET @@session.bulk_insert_buffer_size = 200;
+SET @@session.bulk_insert_buffer_size = DEFAULT;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+8388608
+'#--------------------FN_DYNVARS_007_02-------------------------#'
+SET @@global.bulk_insert_buffer_size = @start_global_value;
+SELECT @@global.bulk_insert_buffer_size = 8388608;
+@@global.bulk_insert_buffer_size = 8388608
+1
+SET @@session.bulk_insert_buffer_size = @start_session_value;
+SELECT @@session.bulk_insert_buffer_size = 8388608;
+@@session.bulk_insert_buffer_size = 8388608
+1
+'#--------------------FN_DYNVARS_007_03-------------------------#'
+SET @@global.bulk_insert_buffer_size = 0;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+0
+SET @@global.bulk_insert_buffer_size = 1;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+1
+SET @@global.bulk_insert_buffer_size = 4294967295;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+4294967295
+SET @@global.bulk_insert_buffer_size = 429496;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+429496
+'#--------------------FN_DYNVARS_007_04-------------------------#'
+SET @@session.bulk_insert_buffer_size = 0;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+0
+SET @@session.bulk_insert_buffer_size = 1;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+1
+SET @@session.bulk_insert_buffer_size = 4294967295;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+4294967295
+SET @@session.bulk_insert_buffer_size = 429496;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+429496
+'#------------------FN_DYNVARS_007_05-----------------------#'
+SET @@global.bulk_insert_buffer_size = 42949672950;
+Warnings:
+Warning 1292 Truncated incorrect bulk_insert_buffer_size value: '42949672950'
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+4294967295
+SET @@global.bulk_insert_buffer_size = -1024;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+0
+SET @@global.bulk_insert_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@global.bulk_insert_buffer_size = ON;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@global.bulk_insert_buffer_size = 429496.10;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@session.bulk_insert_buffer_size = 42949672950;
+Warnings:
+Warning 1292 Truncated incorrect bulk_insert_buffer_size value: '42949672950'
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+4294967295
+SET @@session.bulk_insert_buffer_size = -2;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+0
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@session.bulk_insert_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@session.bulk_insert_buffer_size = 429496.10;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+'#------------------FN_DYNVARS_007_06-----------------------#'
+SELECT @@global.bulk_insert_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='bulk_insert_buffer_size';
+@@global.bulk_insert_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_007_07-----------------------#'
+SELECT @@session.bulk_insert_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='bulk_insert_buffer_size';
+@@session.bulk_insert_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_007_08-----------------------#'
+SET @@global.bulk_insert_buffer_size = TRUE;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+1
+SET @@global.bulk_insert_buffer_size = FALSE;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+0
+SET @@session.bulk_insert_buffer_size = TRUE;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+1
+SET @@session.bulk_insert_buffer_size = FALSE;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+0
+'#---------------------FN_DYNVARS_007_09----------------------#'
+SET @@bulk_insert_buffer_size = 100;
+SELECT @@bulk_insert_buffer_size = @@local.bulk_insert_buffer_size;
+@@bulk_insert_buffer_size = @@local.bulk_insert_buffer_size
+1
+SELECT @@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
+@@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size
+1
+'#---------------------FN_DYNVARS_007_10----------------------#'
+SET bulk_insert_buffer_size = 1;
+SELECT @@bulk_insert_buffer_size;
+@@bulk_insert_buffer_size
+1
+SET local.bulk_insert_buffer_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'bulk_insert_buffer_size = 1'
at line 1
+SELECT local.bulk_insert_buffer_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET session.bulk_insert_buffer_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'bulk_insert_buffer_size = 1'
at line 1
+SELECT session.bulk_insert_buffer_size;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
+ERROR 42S22: Unknown column 'bulk_insert_buffer_size' in 'field list'
+SET @@global.bulk_insert_buffer_size = @start_global_value;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+8388608
+SET @@session.bulk_insert_buffer_size = @start_session_value;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+8388608
diff -Nrup a/mysql-test/r/bulk_insert_buffer_size_basic_64.result
b/mysql-test/r/bulk_insert_buffer_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/bulk_insert_buffer_size_basic_64.result 2008-05-06 15:00:30 +02:00
@@ -0,0 +1,150 @@
+SET @start_global_value = @@global.bulk_insert_buffer_size;
+SELECT @start_global_value;
+@start_global_value
+8388608
+SET @start_session_value = @@session.bulk_insert_buffer_size;
+SELECT @start_session_value;
+@start_session_value
+8388608
+'#--------------------FN_DYNVARS_007_01-------------------------#'
+SET @@global.bulk_insert_buffer_size = 100;
+SET @@global.bulk_insert_buffer_size = DEFAULT;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+8388608
+SET @@session.bulk_insert_buffer_size = 200;
+SET @@session.bulk_insert_buffer_size = DEFAULT;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+8388608
+'#--------------------FN_DYNVARS_007_02-------------------------#'
+SET @@global.bulk_insert_buffer_size = @start_global_value;
+SELECT @@global.bulk_insert_buffer_size = 8388608;
+@@global.bulk_insert_buffer_size = 8388608
+1
+SET @@session.bulk_insert_buffer_size = @start_session_value;
+SELECT @@session.bulk_insert_buffer_size = 8388608;
+@@session.bulk_insert_buffer_size = 8388608
+1
+'#--------------------FN_DYNVARS_007_03-------------------------#'
+SET @@global.bulk_insert_buffer_size = 0;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+0
+SET @@global.bulk_insert_buffer_size = 1;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+1
+SET @@global.bulk_insert_buffer_size = 4294967295;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+4294967295
+SET @@global.bulk_insert_buffer_size = 429496;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+429496
+'#--------------------FN_DYNVARS_007_04-------------------------#'
+SET @@session.bulk_insert_buffer_size = 0;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+0
+SET @@session.bulk_insert_buffer_size = 1;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+1
+SET @@session.bulk_insert_buffer_size = 4294967295;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+4294967295
+SET @@session.bulk_insert_buffer_size = 429496;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+429496
+'#------------------FN_DYNVARS_007_05-----------------------#'
+SET @@global.bulk_insert_buffer_size = 42949672950;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+42949672950
+SET @@global.bulk_insert_buffer_size = -1024;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+0
+SET @@global.bulk_insert_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@global.bulk_insert_buffer_size = ON;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@global.bulk_insert_buffer_size = 429496.10;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@session.bulk_insert_buffer_size = 42949672950;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+42949672950
+SET @@session.bulk_insert_buffer_size = -2;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+0
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@session.bulk_insert_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+SET @@session.bulk_insert_buffer_size = 429496.10;
+ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
+'#------------------FN_DYNVARS_007_06-----------------------#'
+SELECT @@global.bulk_insert_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='bulk_insert_buffer_size';
+@@global.bulk_insert_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_007_07-----------------------#'
+SELECT @@session.bulk_insert_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='bulk_insert_buffer_size';
+@@session.bulk_insert_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_007_08-----------------------#'
+SET @@global.bulk_insert_buffer_size = TRUE;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+1
+SET @@global.bulk_insert_buffer_size = FALSE;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+0
+SET @@session.bulk_insert_buffer_size = TRUE;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+1
+SET @@session.bulk_insert_buffer_size = FALSE;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+0
+'#---------------------FN_DYNVARS_007_09----------------------#'
+SET @@bulk_insert_buffer_size = 100;
+SELECT @@bulk_insert_buffer_size = @@local.bulk_insert_buffer_size;
+@@bulk_insert_buffer_size = @@local.bulk_insert_buffer_size
+1
+SELECT @@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
+@@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size
+1
+'#---------------------FN_DYNVARS_007_10----------------------#'
+SET bulk_insert_buffer_size = 1;
+SELECT @@bulk_insert_buffer_size;
+@@bulk_insert_buffer_size
+1
+SET local.bulk_insert_buffer_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'bulk_insert_buffer_size = 1'
at line 1
+SELECT local.bulk_insert_buffer_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET session.bulk_insert_buffer_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'bulk_insert_buffer_size = 1'
at line 1
+SELECT session.bulk_insert_buffer_size;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
+ERROR 42S22: Unknown column 'bulk_insert_buffer_size' in 'field list'
+SET @@global.bulk_insert_buffer_size = @start_global_value;
+SELECT @@global.bulk_insert_buffer_size;
+@@global.bulk_insert_buffer_size
+8388608
+SET @@session.bulk_insert_buffer_size = @start_session_value;
+SELECT @@session.bulk_insert_buffer_size;
+@@session.bulk_insert_buffer_size
+8388608
diff -Nrup a/mysql-test/r/delayed_insert_limit_basic.result
b/mysql-test/r/delayed_insert_limit_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/delayed_insert_limit_basic.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,112 @@
+SET @start_value = @@global.delayed_insert_limit;
+SELECT @start_value;
+@start_value
+100
+'#--------------------FN_DYNVARS_024_01------------------------#'
+SET @@global.delayed_insert_limit = 100;
+SET @@global.delayed_insert_limit = DEFAULT;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+100
+'#---------------------FN_DYNVARS_024_02-------------------------#'
+SET @@global.delayed_insert_limit = @start_value;
+SELECT @@global.delayed_insert_limit = 100;
+@@global.delayed_insert_limit = 100
+1
+'#--------------------FN_DYNVARS_024_03------------------------#'
+SET @@global.delayed_insert_limit = 10000;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+10000
+SET @@global.delayed_insert_limit = 4294967295;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+4294967295
+SET @@global.delayed_insert_limit = 1;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+'#--------------------FN_DYNVARS_024_04-------------------------#'
+SET @@global.delayed_insert_limit = 0;
+Warnings:
+Warning 1292 Truncated incorrect delayed_insert_limit value: '0'
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+SET @@global.delayed_insert_limit = -1024;
+Warnings:
+Warning 1292 Truncated incorrect delayed_insert_limit value: '0'
+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
+4294967295
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+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
+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
+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
+SELECT @@Session.delayed_insert_limit;
+ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable
+'#----------------------FN_DYNVARS_024_06------------------------#'
+SELECT @@global.delayed_insert_limit =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='delayed_insert_limit';
+@@global.delayed_insert_limit =
+VARIABLE_VALUE
+1
+SELECT @@delayed_insert_limit =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='delayed_insert_limit';
+@@delayed_insert_limit =
+VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_024_07----------------------#'
+SET @@global.delayed_insert_limit = TRUE;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+SET @@global.delayed_insert_limit = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect delayed_insert_limit value: '0'
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+'#---------------------FN_DYNVARS_024_08----------------------#'
+SET @@global.delayed_insert_limit = 1;
+SELECT @@delayed_insert_limit = @@global.delayed_insert_limit;
+@@delayed_insert_limit = @@global.delayed_insert_limit
+1
+'#---------------------FN_DYNVARS_024_09----------------------#'
+SET delayed_insert_limit = 1;
+ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@delayed_insert_limit;
+@@delayed_insert_limit
+1
+SET local.delayed_insert_limit = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_insert_limit = 1' at
line 1
+SELECT local.delayed_insert_limit;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.delayed_insert_limit = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_insert_limit = 1' at
line 1
+SELECT global.delayed_insert_limit;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT delayed_insert_limit = @@session.delayed_insert_limit;
+ERROR 42S22: Unknown column 'delayed_insert_limit' in 'field list'
+SET @@global.delayed_insert_limit = @start_value;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+100
diff -Nrup a/mysql-test/r/delayed_insert_limit_basic_64.result
b/mysql-test/r/delayed_insert_limit_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/delayed_insert_limit_basic_64.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,110 @@
+SET @start_value = @@global.delayed_insert_limit;
+SELECT @start_value;
+@start_value
+100
+'#--------------------FN_DYNVARS_024_01------------------------#'
+SET @@global.delayed_insert_limit = 100;
+SET @@global.delayed_insert_limit = DEFAULT;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+100
+'#---------------------FN_DYNVARS_024_02-------------------------#'
+SET @@global.delayed_insert_limit = @start_value;
+SELECT @@global.delayed_insert_limit = 100;
+@@global.delayed_insert_limit = 100
+1
+'#--------------------FN_DYNVARS_024_03------------------------#'
+SET @@global.delayed_insert_limit = 10000;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+10000
+SET @@global.delayed_insert_limit = 4294967295;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+4294967295
+SET @@global.delayed_insert_limit = 1;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+'#--------------------FN_DYNVARS_024_04-------------------------#'
+SET @@global.delayed_insert_limit = 0;
+Warnings:
+Warning 1292 Truncated incorrect delayed_insert_limit value: '0'
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+SET @@global.delayed_insert_limit = -1024;
+Warnings:
+Warning 1292 Truncated incorrect delayed_insert_limit value: '0'
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+SET @@global.delayed_insert_limit = 42949672950;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+42949672950
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+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
+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
+'#-------------------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
+SELECT @@Session.delayed_insert_limit;
+ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable
+'#----------------------FN_DYNVARS_024_06------------------------#'
+SELECT @@global.delayed_insert_limit =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='delayed_insert_limit';
+@@global.delayed_insert_limit =
+VARIABLE_VALUE
+1
+SELECT @@delayed_insert_limit =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='delayed_insert_limit';
+@@delayed_insert_limit =
+VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_024_07----------------------#'
+SET @@global.delayed_insert_limit = TRUE;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+SET @@global.delayed_insert_limit = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect delayed_insert_limit value: '0'
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+1
+'#---------------------FN_DYNVARS_024_08----------------------#'
+SET @@global.delayed_insert_limit = 1;
+SELECT @@delayed_insert_limit = @@global.delayed_insert_limit;
+@@delayed_insert_limit = @@global.delayed_insert_limit
+1
+'#---------------------FN_DYNVARS_024_09----------------------#'
+SET delayed_insert_limit = 1;
+ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@delayed_insert_limit;
+@@delayed_insert_limit
+1
+SET local.delayed_insert_limit = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_insert_limit = 1' at
line 1
+SELECT local.delayed_insert_limit;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.delayed_insert_limit = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_insert_limit = 1' at
line 1
+SELECT global.delayed_insert_limit;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT delayed_insert_limit = @@session.delayed_insert_limit;
+ERROR 42S22: Unknown column 'delayed_insert_limit' in 'field list'
+SET @@global.delayed_insert_limit = @start_value;
+SELECT @@global.delayed_insert_limit;
+@@global.delayed_insert_limit
+100
diff -Nrup a/mysql-test/r/delayed_queue_size_basic.result
b/mysql-test/r/delayed_queue_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/delayed_queue_size_basic.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,110 @@
+SET @start_value = @@global.delayed_queue_size;
+SELECT @start_value;
+@start_value
+1000
+'#--------------------FN_DYNVARS_026_01------------------------#'
+SET @@global.delayed_queue_size = 100;
+SET @@global.delayed_queue_size = DEFAULT;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1000
+'#---------------------FN_DYNVARS_026_02-------------------------#'
+SET @@global.delayed_queue_size = @start_value;
+SELECT @@global.delayed_queue_size = 1000;
+@@global.delayed_queue_size = 1000
+1
+'#--------------------FN_DYNVARS_026_03------------------------#'
+SET @@global.delayed_queue_size = 10000;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+10000
+SET @@global.delayed_queue_size = 4294967295;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+4294967295
+SET @@global.delayed_queue_size = 1;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+'#--------------------FN_DYNVARS_026_04-------------------------#'
+SET @@global.delayed_queue_size = 0;
+Warnings:
+Warning 1292 Truncated incorrect delayed_queue_size value: '0'
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+SET @@global.delayed_queue_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect delayed_queue_size value: '0'
+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
+4294967295
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+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
+4294967295
+SET @@global.delayed_queue_size = ON;
+ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
+SELECT @@delayed_queue_size;
+@@delayed_queue_size
+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
+SELECT @@session.delayed_queue_size;
+ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable
+'#----------------------FN_DYNVARS_026_06------------------------#'
+SELECT @@global.delayed_queue_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='delayed_queue_size';
+@@global.delayed_queue_size = VARIABLE_VALUE
+1
+SELECT @@delayed_queue_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='delayed_queue_size';
+@@delayed_queue_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_026_07----------------------#'
+SET @@global.delayed_queue_size = TRUE;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+SET @@global.delayed_queue_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect delayed_queue_size value: '0'
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+'#---------------------FN_DYNVARS_026_08----------------------#'
+SET @@global.delayed_queue_size = 1;
+SELECT @@delayed_queue_size = @@global.delayed_queue_size;
+@@delayed_queue_size = @@global.delayed_queue_size
+1
+'#---------------------FN_DYNVARS_026_09----------------------#'
+SET delayed_queue_size = 1;
+ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@delayed_queue_size;
+@@delayed_queue_size
+1
+SET local.delayed_queue_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_queue_size = 1' at
line 1
+SELECT local.delayed_queue_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.delayed_queue_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_queue_size = 1' at
line 1
+SELECT global.delayed_queue_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT delayed_queue_size = @@session.delayed_queue_size;
+ERROR 42S22: Unknown column 'delayed_queue_size' in 'field list'
+SET @@global.delayed_queue_size = @start_value;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1000
diff -Nrup a/mysql-test/r/delayed_queue_size_basic_64.result
b/mysql-test/r/delayed_queue_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/delayed_queue_size_basic_64.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,108 @@
+SET @start_value = @@global.delayed_queue_size;
+SELECT @start_value;
+@start_value
+1000
+'#--------------------FN_DYNVARS_026_01------------------------#'
+SET @@global.delayed_queue_size = 100;
+SET @@global.delayed_queue_size = DEFAULT;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1000
+'#---------------------FN_DYNVARS_026_02-------------------------#'
+SET @@global.delayed_queue_size = @start_value;
+SELECT @@global.delayed_queue_size = 1000;
+@@global.delayed_queue_size = 1000
+1
+'#--------------------FN_DYNVARS_026_03------------------------#'
+SET @@global.delayed_queue_size = 10000;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+10000
+SET @@global.delayed_queue_size = 4294967295;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+4294967295
+SET @@global.delayed_queue_size = 1;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+'#--------------------FN_DYNVARS_026_04-------------------------#'
+SET @@global.delayed_queue_size = 0;
+Warnings:
+Warning 1292 Truncated incorrect delayed_queue_size value: '0'
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+SET @@global.delayed_queue_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect delayed_queue_size value: '0'
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+SET @@global.delayed_queue_size = 42949672950;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+42949672950
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+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
+SET @@global.delayed_queue_size = ON;
+ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
+SELECT @@delayed_queue_size;
+@@delayed_queue_size
+42949672950
+'#-------------------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
+SELECT @@session.delayed_queue_size;
+ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable
+'#----------------------FN_DYNVARS_026_06------------------------#'
+SELECT @@global.delayed_queue_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='delayed_queue_size';
+@@global.delayed_queue_size = VARIABLE_VALUE
+1
+SELECT @@delayed_queue_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='delayed_queue_size';
+@@delayed_queue_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_026_07----------------------#'
+SET @@global.delayed_queue_size = TRUE;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+SET @@global.delayed_queue_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect delayed_queue_size value: '0'
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1
+'#---------------------FN_DYNVARS_026_08----------------------#'
+SET @@global.delayed_queue_size = 1;
+SELECT @@delayed_queue_size = @@global.delayed_queue_size;
+@@delayed_queue_size = @@global.delayed_queue_size
+1
+'#---------------------FN_DYNVARS_026_09----------------------#'
+SET delayed_queue_size = 1;
+ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@delayed_queue_size;
+@@delayed_queue_size
+1
+SET local.delayed_queue_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_queue_size = 1' at
line 1
+SELECT local.delayed_queue_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.delayed_queue_size = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'delayed_queue_size = 1' at
line 1
+SELECT global.delayed_queue_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT delayed_queue_size = @@session.delayed_queue_size;
+ERROR 42S22: Unknown column 'delayed_queue_size' in 'field list'
+SET @@global.delayed_queue_size = @start_value;
+SELECT @@global.delayed_queue_size;
+@@global.delayed_queue_size
+1000
diff -Nrup a/mysql-test/r/flush_time_basic.result b/mysql-test/r/flush_time_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/flush_time_basic.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,111 @@
+SET @start_value = @@global.flush_time;
+'#--------------------FN_DYNVARS_031_01------------------------#'
+SET @@global.flush_time = 99;
+SET @@global.flush_time = DEFAULT;
+'#---------------------FN_DYNVARS_031_02-------------------------#'
+SET @@global.flush_time = DEFAULT;
+SELECT @@global.flush_time = @default_flush_time;
+@@global.flush_time = @default_flush_time
+1
+'#--------------------FN_DYNVARS_031_03------------------------#'
+SET @@global.flush_time = 0;
+SELECT @@global.flush_time;
+@@global.flush_time
+0
+SET @@global.flush_time = 1099;
+SELECT @@global.flush_time;
+@@global.flush_time
+1099
+SET @@global.flush_time = 1800;
+SELECT @@global.flush_time;
+@@global.flush_time
+1800
+SET @@global.flush_time = 65535;
+SELECT @@global.flush_time;
+@@global.flush_time
+65535
+'#--------------------FN_DYNVARS_031_04-------------------------#'
+SET @@global.flush_time = -1;
+SELECT @@global.flush_time;
+@@global.flush_time
+0
+SET @@global.flush_time = 100000000000;
+Warnings:
+Warning 1292 Truncated incorrect flush_time value: '100000000000'
+SELECT @@global.flush_time;
+@@global.flush_time
+31536000
+SET @@global.flush_time = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'flush_time'
+SELECT @@global.flush_time;
+@@global.flush_time
+31536000
+SET @@global.flush_time = -1024;
+SELECT @@global.flush_time;
+@@global.flush_time
+0
+SET @@global.flush_time = 42949672950;
+Warnings:
+Warning 1292 Truncated incorrect flush_time value: '42949672950'
+SELECT @@global.flush_time;
+@@global.flush_time
+31536000
+'Bug#34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.flush_time = ON;
+ERROR 42000: Incorrect argument type to variable 'flush_time'
+SELECT @@global.flush_time;
+@@global.flush_time
+31536000
+SET @@global.flush_time = 'test';
+ERROR 42000: Incorrect argument type to variable 'flush_time'
+SELECT @@global.flush_time;
+@@global.flush_time
+31536000
+'#-------------------FN_DYNVARS_031_05----------------------------#'
+SET @@session.flush_time = 0;
+ERROR HY000: Variable 'flush_time' is a GLOBAL variable and should be set with SET GLOBAL
+SELECT @@flush_time;
+@@flush_time
+31536000
+'#----------------------FN_DYNVARS_031_06------------------------#'
+SELECT @@global.flush_time = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='flush_time';
+@@global.flush_time = VARIABLE_VALUE
+1
+SELECT @@flush_time = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='flush_time';
+@@flush_time = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_031_07----------------------#'
+SET @@global.flush_time = TRUE;
+SELECT @@global.flush_time;
+@@global.flush_time
+1
+SET @@global.flush_time = FALSE;
+SELECT @@global.flush_time;
+@@global.flush_time
+0
+'#---------------------FN_DYNVARS_031_08----------------------#'
+SET @@global.flush_time = 1;
+SELECT @@flush_time = @@global.flush_time;
+@@flush_time = @@global.flush_time
+1
+'#---------------------FN_DYNVARS_031_09----------------------#'
+SET flush_time = 1;
+ERROR HY000: Variable 'flush_time' is a GLOBAL variable and should be set with SET GLOBAL
+SELECT @@flush_time;
+@@flush_time
+1
+SET local.flush_time = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'flush_time = 1' at line 1
+SELECT local.flush_time;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.flush_time = 1;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'flush_time = 1' at line 1
+SELECT global.flush_time;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT flush_time = @@session.flush_time;
+ERROR 42S22: Unknown column 'flush_time' in 'field list'
+SET @@global.flush_time = @start_value;
diff -Nrup a/mysql-test/r/innodb_concurrency_tickets_basic.result
b/mysql-test/r/innodb_concurrency_tickets_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/innodb_concurrency_tickets_basic.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,100 @@
+SET @global_start_value = @@global.innodb_concurrency_tickets;
+SELECT @global_start_value;
+@global_start_value
+500
+'#--------------------FN_DYNVARS_046_01------------------------#'
+SET @@global.innodb_concurrency_tickets = 0;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '0'
+SET @@global.innodb_concurrency_tickets = DEFAULT;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+500
+'#---------------------FN_DYNVARS_046_02-------------------------#'
+SET innodb_concurrency_tickets = 1;
+ERROR HY000: Variable 'innodb_concurrency_tickets' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@innodb_concurrency_tickets;
+@@innodb_concurrency_tickets
+500
+SELECT local.innodb_concurrency_tickets;
+ERROR 42S02: Unknown table 'local' in field list
+SET global innodb_concurrency_tickets = 0;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '0'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+'#--------------------FN_DYNVARS_046_03------------------------#'
+SET @@global.innodb_concurrency_tickets = 1;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+SET @@global.innodb_concurrency_tickets = 1000;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1000
+SET @@global.innodb_concurrency_tickets = 4294967295;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+4294967295
+'#--------------------FN_DYNVARS_046_04-------------------------#'
+SET @@global.innodb_concurrency_tickets = -1;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '18446744073709551615'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+4294967295
+SET @@global.innodb_concurrency_tickets = "T";
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+4294967295
+SET @@global.innodb_concurrency_tickets = "Y";
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+4294967295
+SET @@global.innodb_concurrency_tickets = 1001;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+'#----------------------FN_DYNVARS_046_05------------------------#'
+SELECT @@global.innodb_concurrency_tickets =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_concurrency_tickets';
+@@global.innodb_concurrency_tickets =
+VARIABLE_VALUE
+1
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_concurrency_tickets';
+VARIABLE_VALUE
+1001
+'#---------------------FN_DYNVARS_046_06-------------------------#'
+SET @@global.innodb_concurrency_tickets = OFF;
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+SET @@global.innodb_concurrency_tickets = ON;
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+'#---------------------FN_DYNVARS_046_07----------------------#'
+SET @@global.innodb_concurrency_tickets = TRUE;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+SET @@global.innodb_concurrency_tickets = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '0'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+SET @@global.innodb_concurrency_tickets = @global_start_value;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+500
diff -Nrup a/mysql-test/r/innodb_concurrency_tickets_basic_64.result
b/mysql-test/r/innodb_concurrency_tickets_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/innodb_concurrency_tickets_basic_64.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,98 @@
+SET @global_start_value = @@global.innodb_concurrency_tickets;
+SELECT @global_start_value;
+@global_start_value
+500
+'#--------------------FN_DYNVARS_046_01------------------------#'
+SET @@global.innodb_concurrency_tickets = 0;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '0'
+SET @@global.innodb_concurrency_tickets = DEFAULT;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+500
+'#---------------------FN_DYNVARS_046_02-------------------------#'
+SET innodb_concurrency_tickets = 1;
+ERROR HY000: Variable 'innodb_concurrency_tickets' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@innodb_concurrency_tickets;
+@@innodb_concurrency_tickets
+500
+SELECT local.innodb_concurrency_tickets;
+ERROR 42S02: Unknown table 'local' in field list
+SET global innodb_concurrency_tickets = 0;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '0'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+'#--------------------FN_DYNVARS_046_03------------------------#'
+SET @@global.innodb_concurrency_tickets = 1;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+SET @@global.innodb_concurrency_tickets = 1000;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1000
+SET @@global.innodb_concurrency_tickets = 4294967295;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+4294967295
+'#--------------------FN_DYNVARS_046_04-------------------------#'
+SET @@global.innodb_concurrency_tickets = -1;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+18446744073709551615
+SET @@global.innodb_concurrency_tickets = "T";
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+18446744073709551615
+SET @@global.innodb_concurrency_tickets = "Y";
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+18446744073709551615
+SET @@global.innodb_concurrency_tickets = 1001;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+'#----------------------FN_DYNVARS_046_05------------------------#'
+SELECT @@global.innodb_concurrency_tickets =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_concurrency_tickets';
+@@global.innodb_concurrency_tickets =
+VARIABLE_VALUE
+1
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_concurrency_tickets';
+VARIABLE_VALUE
+1001
+'#---------------------FN_DYNVARS_046_06-------------------------#'
+SET @@global.innodb_concurrency_tickets = OFF;
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+SET @@global.innodb_concurrency_tickets = ON;
+ERROR 42000: Incorrect argument type to variable 'innodb_concurrency_tickets'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1001
+'#---------------------FN_DYNVARS_046_07----------------------#'
+SET @@global.innodb_concurrency_tickets = TRUE;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+SET @@global.innodb_concurrency_tickets = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect concurrency_tickets value: '0'
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+1
+SET @@global.innodb_concurrency_tickets = @global_start_value;
+SELECT @@global.innodb_concurrency_tickets;
+@@global.innodb_concurrency_tickets
+500
diff -Nrup a/mysql-test/r/innodb_max_purge_lag_basic.result
b/mysql-test/r/innodb_max_purge_lag_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/innodb_max_purge_lag_basic.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,94 @@
+SET @global_start_value = @@global.innodb_max_purge_lag;
+SELECT @global_start_value;
+@global_start_value
+0
+'#--------------------FN_DYNVARS_046_01------------------------#'
+SET @@global.innodb_max_purge_lag = 0;
+SET @@global.innodb_max_purge_lag = DEFAULT;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+'#---------------------FN_DYNVARS_046_02-------------------------#'
+SET innodb_max_purge_lag = 1;
+ERROR HY000: Variable 'innodb_max_purge_lag' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@innodb_max_purge_lag;
+@@innodb_max_purge_lag
+0
+SELECT local.innodb_max_purge_lag;
+ERROR 42S02: Unknown table 'local' in field list
+SET global innodb_max_purge_lag = 0;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+'#--------------------FN_DYNVARS_046_03------------------------#'
+SET @@global.innodb_max_purge_lag = 0;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+SET @@global.innodb_max_purge_lag = 1;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1
+SET @@global.innodb_max_purge_lag = 4294967295;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+4294967295
+'#--------------------FN_DYNVARS_046_04-------------------------#'
+SET @@global.innodb_max_purge_lag = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_purge_lag value: '18446744073709551615'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+4294967295
+SET @@global.innodb_max_purge_lag = "T";
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+4294967295
+SET @@global.innodb_max_purge_lag = "Y";
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+4294967295
+SET @@global.innodb_max_purge_lag = 1001;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+'#----------------------FN_DYNVARS_046_05------------------------#'
+SELECT @@global.innodb_max_purge_lag =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_max_purge_lag';
+@@global.innodb_max_purge_lag =
+VARIABLE_VALUE
+1
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_max_purge_lag';
+VARIABLE_VALUE
+1001
+'#---------------------FN_DYNVARS_046_06-------------------------#'
+SET @@global.innodb_max_purge_lag = OFF;
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+SET @@global.innodb_max_purge_lag = ON;
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+'#---------------------FN_DYNVARS_046_07----------------------#'
+SET @@global.innodb_max_purge_lag = TRUE;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1
+SET @@global.innodb_max_purge_lag = FALSE;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+SET @@global.innodb_max_purge_lag = @global_start_value;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
diff -Nrup a/mysql-test/r/innodb_max_purge_lag_basic_64.result
b/mysql-test/r/innodb_max_purge_lag_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/innodb_max_purge_lag_basic_64.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,92 @@
+SET @global_start_value = @@global.innodb_max_purge_lag;
+SELECT @global_start_value;
+@global_start_value
+0
+'#--------------------FN_DYNVARS_046_01------------------------#'
+SET @@global.innodb_max_purge_lag = 0;
+SET @@global.innodb_max_purge_lag = DEFAULT;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+'#---------------------FN_DYNVARS_046_02-------------------------#'
+SET innodb_max_purge_lag = 1;
+ERROR HY000: Variable 'innodb_max_purge_lag' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@innodb_max_purge_lag;
+@@innodb_max_purge_lag
+0
+SELECT local.innodb_max_purge_lag;
+ERROR 42S02: Unknown table 'local' in field list
+SET global innodb_max_purge_lag = 0;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+'#--------------------FN_DYNVARS_046_03------------------------#'
+SET @@global.innodb_max_purge_lag = 0;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+SET @@global.innodb_max_purge_lag = 1;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1
+SET @@global.innodb_max_purge_lag = 4294967295;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+4294967295
+'#--------------------FN_DYNVARS_046_04-------------------------#'
+SET @@global.innodb_max_purge_lag = -1;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+18446744073709551615
+SET @@global.innodb_max_purge_lag = "T";
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+18446744073709551615
+SET @@global.innodb_max_purge_lag = "Y";
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+18446744073709551615
+SET @@global.innodb_max_purge_lag = 1001;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+'#----------------------FN_DYNVARS_046_05------------------------#'
+SELECT @@global.innodb_max_purge_lag =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_max_purge_lag';
+@@global.innodb_max_purge_lag =
+VARIABLE_VALUE
+1
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_max_purge_lag';
+VARIABLE_VALUE
+1001
+'#---------------------FN_DYNVARS_046_06-------------------------#'
+SET @@global.innodb_max_purge_lag = OFF;
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+SET @@global.innodb_max_purge_lag = ON;
+ERROR 42000: Incorrect argument type to variable 'innodb_max_purge_lag'
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1001
+'#---------------------FN_DYNVARS_046_07----------------------#'
+SET @@global.innodb_max_purge_lag = TRUE;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+1
+SET @@global.innodb_max_purge_lag = FALSE;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
+SET @@global.innodb_max_purge_lag = @global_start_value;
+SELECT @@global.innodb_max_purge_lag;
+@@global.innodb_max_purge_lag
+0
diff -Nrup a/mysql-test/r/innodb_sync_spin_loops_basic.result
b/mysql-test/r/innodb_sync_spin_loops_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/innodb_sync_spin_loops_basic.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,94 @@
+SET @global_start_value = @@global.innodb_sync_spin_loops;
+SELECT @global_start_value;
+@global_start_value
+20
+'#--------------------FN_DYNVARS_046_01------------------------#'
+SET @@global.innodb_sync_spin_loops = 0;
+SET @@global.innodb_sync_spin_loops = DEFAULT;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+20
+'#---------------------FN_DYNVARS_046_02-------------------------#'
+SET innodb_sync_spin_loops = 1;
+ERROR HY000: Variable 'innodb_sync_spin_loops' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@innodb_sync_spin_loops;
+@@innodb_sync_spin_loops
+20
+SELECT local.innodb_sync_spin_loops;
+ERROR 42S02: Unknown table 'local' in field list
+SET global innodb_sync_spin_loops = 0;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+0
+'#--------------------FN_DYNVARS_046_03------------------------#'
+SET @@global.innodb_sync_spin_loops = 0;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+0
+SET @@global.innodb_sync_spin_loops = 1;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1
+SET @@global.innodb_sync_spin_loops = 1000;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1000
+'#--------------------FN_DYNVARS_046_04-------------------------#'
+SET @@global.innodb_sync_spin_loops = -1;
+Warnings:
+Warning 1292 Truncated incorrect sync_spin_loops value: '18446744073709551615'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+4294967295
+SET @@global.innodb_sync_spin_loops = "T";
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+4294967295
+SET @@global.innodb_sync_spin_loops = "Y";
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+4294967295
+SET @@global.innodb_sync_spin_loops = 1001;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+'#----------------------FN_DYNVARS_046_05------------------------#'
+SELECT @@global.innodb_sync_spin_loops =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_sync_spin_loops';
+@@global.innodb_sync_spin_loops =
+VARIABLE_VALUE
+1
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_sync_spin_loops';
+VARIABLE_VALUE
+1001
+'#---------------------FN_DYNVARS_046_06-------------------------#'
+SET @@global.innodb_sync_spin_loops = OFF;
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+SET @@global.innodb_sync_spin_loops = ON;
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+'#---------------------FN_DYNVARS_046_07----------------------#'
+SET @@global.innodb_sync_spin_loops = TRUE;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1
+SET @@global.innodb_sync_spin_loops = FALSE;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+0
+SET @@global.innodb_sync_spin_loops = @global_start_value;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+20
diff -Nrup a/mysql-test/r/innodb_sync_spin_loops_basic_64.result
b/mysql-test/r/innodb_sync_spin_loops_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/innodb_sync_spin_loops_basic_64.result 2008-05-06 15:00:31 +02:00
@@ -0,0 +1,92 @@
+SET @global_start_value = @@global.innodb_sync_spin_loops;
+SELECT @global_start_value;
+@global_start_value
+20
+'#--------------------FN_DYNVARS_046_01------------------------#'
+SET @@global.innodb_sync_spin_loops = 0;
+SET @@global.innodb_sync_spin_loops = DEFAULT;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+20
+'#---------------------FN_DYNVARS_046_02-------------------------#'
+SET innodb_sync_spin_loops = 1;
+ERROR HY000: Variable 'innodb_sync_spin_loops' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@innodb_sync_spin_loops;
+@@innodb_sync_spin_loops
+20
+SELECT local.innodb_sync_spin_loops;
+ERROR 42S02: Unknown table 'local' in field list
+SET global innodb_sync_spin_loops = 0;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+0
+'#--------------------FN_DYNVARS_046_03------------------------#'
+SET @@global.innodb_sync_spin_loops = 0;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+0
+SET @@global.innodb_sync_spin_loops = 1;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1
+SET @@global.innodb_sync_spin_loops = 1000;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1000
+'#--------------------FN_DYNVARS_046_04-------------------------#'
+SET @@global.innodb_sync_spin_loops = -1;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+18446744073709551615
+SET @@global.innodb_sync_spin_loops = "T";
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+18446744073709551615
+SET @@global.innodb_sync_spin_loops = "Y";
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+18446744073709551615
+SET @@global.innodb_sync_spin_loops = 1001;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+'#----------------------FN_DYNVARS_046_05------------------------#'
+SELECT @@global.innodb_sync_spin_loops =
+VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_sync_spin_loops';
+@@global.innodb_sync_spin_loops =
+VARIABLE_VALUE
+1
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='innodb_sync_spin_loops';
+VARIABLE_VALUE
+1001
+'#---------------------FN_DYNVARS_046_06-------------------------#'
+SET @@global.innodb_sync_spin_loops = OFF;
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+SET @@global.innodb_sync_spin_loops = ON;
+ERROR 42000: Incorrect argument type to variable 'innodb_sync_spin_loops'
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1001
+'#---------------------FN_DYNVARS_046_07----------------------#'
+SET @@global.innodb_sync_spin_loops = TRUE;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+1
+SET @@global.innodb_sync_spin_loops = FALSE;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+0
+SET @@global.innodb_sync_spin_loops = @global_start_value;
+SELECT @@global.innodb_sync_spin_loops;
+@@global.innodb_sync_spin_loops
+20
diff -Nrup a/mysql-test/r/join_buffer_size_basic.result
b/mysql-test/r/join_buffer_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/join_buffer_size_basic.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,198 @@
+SET @start_global_value = @@global.join_buffer_size;
+SELECT @start_global_value;
+@start_global_value
+131072
+SET @start_session_value = @@session.join_buffer_size;
+SELECT @start_session_value;
+@start_session_value
+131072
+'#--------------------FN_DYNVARS_053_01-------------------------#'
+SET @@global.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SET @@global.join_buffer_size = DEFAULT;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+131072
+SET @@session.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SET @@session.join_buffer_size = DEFAULT;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+131072
+'#--------------------FN_DYNVARS_053_02-------------------------#'
+SET @@global.join_buffer_size = DEFAULT;
+SELECT @@global.join_buffer_size = 131072;
+@@global.join_buffer_size = 131072
+1
+SET @@session.join_buffer_size = DEFAULT;
+SELECT @@session.join_buffer_size = 131072;
+@@session.join_buffer_size = 131072
+1
+'#--------------------FN_DYNVARS_053_03-------------------------#'
+SET @@global.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = 65536;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+65536
+SET @@global.join_buffer_size = 4294967295;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+4294963200
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+'#--------------------FN_DYNVARS_053_04-------------------------#'
+SET @@session.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = 65536;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+65536
+SET @@session.join_buffer_size = 4294967295;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+4294963200
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+'#------------------FN_DYNVARS_053_05-----------------------#'
+SET @@global.join_buffer_size = 0;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = 8199;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8199'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = 42949672951;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '42949672951'
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+4294963200
+SET @@global.join_buffer_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+4294963200
+SET @@global.join_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+4294963200
+SET @@session.join_buffer_size = 0;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = -2;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = 8199;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8199'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = 42949672951;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '42949672951'
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+4294963200
+SET @@session.join_buffer_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+4294963200
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@session.join_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+4294963200
+'#------------------FN_DYNVARS_053_06-----------------------#'
+SELECT @@global.join_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='join_buffer_size';
+@@global.join_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_053_07-----------------------#'
+SELECT @@session.join_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='join_buffer_size';
+@@session.join_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_053_08-----------------------#'
+SET @@global.join_buffer_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '1'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+'Bug: Errors are not coming on assigning TRUE/FALSE to variable';
+'#---------------------FN_DYNVARS_001_09----------------------#'
+SET @@global.join_buffer_size = 10;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '10'
+SELECT @@join_buffer_size = @@global.join_buffer_size;
+@@join_buffer_size = @@global.join_buffer_size
+0
+'#---------------------FN_DYNVARS_001_10----------------------#'
+SET @@join_buffer_size = 100;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '100'
+SELECT @@join_buffer_size = @@local.join_buffer_size;
+@@join_buffer_size = @@local.join_buffer_size
+1
+SELECT @@local.join_buffer_size = @@session.join_buffer_size;
+@@local.join_buffer_size = @@session.join_buffer_size
+1
+'#---------------------FN_DYNVARS_001_11----------------------#'
+SET join_buffer_size = 1;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '1'
+SELECT @@join_buffer_size=8200 OR @@join_buffer_size= 8228;
+@@join_buffer_size=8200 OR @@join_buffer_size= 8228
+1
+SELECT local.join_buffer_size;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.join_buffer_size;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT join_buffer_size = @@session.join_buffer_size;
+ERROR 42S22: Unknown column 'join_buffer_size' in 'field list'
+SET @@global.join_buffer_size = @start_global_value;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+131072
+SET @@session.join_buffer_size = @start_session_value;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+131072
diff -Nrup a/mysql-test/r/join_buffer_size_basic_64.result
b/mysql-test/r/join_buffer_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/join_buffer_size_basic_64.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,194 @@
+SET @start_global_value = @@global.join_buffer_size;
+SELECT @start_global_value;
+@start_global_value
+131072
+SET @start_session_value = @@session.join_buffer_size;
+SELECT @start_session_value;
+@start_session_value
+131072
+'#--------------------FN_DYNVARS_053_01-------------------------#'
+SET @@global.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SET @@global.join_buffer_size = DEFAULT;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+131072
+SET @@session.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SET @@session.join_buffer_size = DEFAULT;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+131072
+'#--------------------FN_DYNVARS_053_02-------------------------#'
+SET @@global.join_buffer_size = DEFAULT;
+SELECT @@global.join_buffer_size = 131072;
+@@global.join_buffer_size = 131072
+1
+SET @@session.join_buffer_size = DEFAULT;
+SELECT @@session.join_buffer_size = 131072;
+@@session.join_buffer_size = 131072
+1
+'#--------------------FN_DYNVARS_053_03-------------------------#'
+SET @@global.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = 65536;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+65536
+SET @@global.join_buffer_size = 4294967295;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+4294963200
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+'#--------------------FN_DYNVARS_053_04-------------------------#'
+SET @@session.join_buffer_size = 8200;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8200'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = 65536;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+65536
+SET @@session.join_buffer_size = 4294967295;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+4294963200
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+'#------------------FN_DYNVARS_053_05-----------------------#'
+SET @@global.join_buffer_size = 0;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = 8199;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8199'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = 42949672951;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+42949668864
+SET @@global.join_buffer_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+42949668864
+SET @@global.join_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+42949668864
+SET @@session.join_buffer_size = 0;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = -2;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = 8199;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '8199'
+SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
+@@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228
+1
+SET @@session.join_buffer_size = 42949672951;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+42949668864
+SET @@session.join_buffer_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+42949668864
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@session.join_buffer_size = test;
+ERROR 42000: Incorrect argument type to variable 'join_buffer_size'
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+42949668864
+'#------------------FN_DYNVARS_053_06-----------------------#'
+SELECT @@global.join_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='join_buffer_size';
+@@global.join_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_053_07-----------------------#'
+SELECT @@session.join_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='join_buffer_size';
+@@session.join_buffer_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_053_08-----------------------#'
+SET @@global.join_buffer_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '1'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+SET @@global.join_buffer_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '0'
+SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
+@@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228
+1
+'Bug: Errors are not coming on assigning TRUE/FALSE to variable';
+'#---------------------FN_DYNVARS_001_09----------------------#'
+SET @@global.join_buffer_size = 10;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '10'
+SELECT @@join_buffer_size = @@global.join_buffer_size;
+@@join_buffer_size = @@global.join_buffer_size
+0
+'#---------------------FN_DYNVARS_001_10----------------------#'
+SET @@join_buffer_size = 100;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '100'
+SELECT @@join_buffer_size = @@local.join_buffer_size;
+@@join_buffer_size = @@local.join_buffer_size
+1
+SELECT @@local.join_buffer_size = @@session.join_buffer_size;
+@@local.join_buffer_size = @@session.join_buffer_size
+1
+'#---------------------FN_DYNVARS_001_11----------------------#'
+SET join_buffer_size = 1;
+Warnings:
+Warning 1292 Truncated incorrect join_buffer_size value: '1'
+SELECT @@join_buffer_size=8200 OR @@join_buffer_size= 8228;
+@@join_buffer_size=8200 OR @@join_buffer_size= 8228
+1
+SELECT local.join_buffer_size;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.join_buffer_size;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT join_buffer_size = @@session.join_buffer_size;
+ERROR 42S22: Unknown column 'join_buffer_size' in 'field list'
+SET @@global.join_buffer_size = @start_global_value;
+SELECT @@global.join_buffer_size;
+@@global.join_buffer_size
+131072
+SET @@session.join_buffer_size = @start_session_value;
+SELECT @@session.join_buffer_size;
+@@session.join_buffer_size
+131072
diff -Nrup a/mysql-test/r/key_buffer_size_basic.result
b/mysql-test/r/key_buffer_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_buffer_size_basic.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,111 @@
+SET @start_value = @@global.key_buffer_size;
+SELECT @start_value;
+@start_value
+1048576
+'#--------------------FN_DYNVARS_055_01------------------------#'
+SET @@global.key_buffer_size = 99;
+SET @@global.key_buffer_size = DEFAULT;
+ERROR 42000: Variable 'key_buffer_size' doesn't have a default value
+'Bug# 34878: This variable has default value according to documentation';
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+'#---------------------FN_DYNVARS_055_02-------------------------#'
+SET @@global.key_buffer_size = @start_value;
+SELECT @@global.key_buffer_size = @start_value;
+@@global.key_buffer_size = @start_value
+1
+'#--------------------FN_DYNVARS_055_03------------------------#'
+SET @@global.key_buffer_size = @min_key_buffer_size;
+SELECT @@global.key_buffer_size= @min_key_buffer_size;
+@@global.key_buffer_size= @min_key_buffer_size
+1
+SET @@global.key_buffer_size = 1800;
+Warnings:
+Warning 1292 Truncated incorrect key_buffer_size value: '1800'
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+SET @@global.key_buffer_size = 65535;
+SELECT @@global.key_buffer_size;
+@@global.key_buffer_size
+61440
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+'#--------------------FN_DYNVARS_055_04-------------------------#'
+SET @@global.key_buffer_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
+SELECT @@global.key_buffer_size;
+@@global.key_buffer_size
+61440
+SET @@global.key_buffer_size = 4;
+Warnings:
+Warning 1292 Truncated incorrect key_buffer_size value: '4'
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@global.key_buffer_size = ON;
+ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+SET @@global.key_buffer_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+'#-------------------FN_DYNVARS_055_05----------------------------#'
+SET @@session.key_buffer_size = 0;
+ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET
GLOBAL
+SELECT @@key_buffer_size = @min_key_buffer_size;
+@@key_buffer_size = @min_key_buffer_size
+1
+'#----------------------FN_DYNVARS_055_06------------------------#'
+SELECT @@global.key_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_buffer_size';
+@@global.key_buffer_size = VARIABLE_VALUE
+1
+SELECT @@key_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_buffer_size';
+@@key_buffer_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_055_07----------------------#'
+SET @@global.key_buffer_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect key_buffer_size value: '1'
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+SET @@global.key_buffer_size = FALSE;
+Warnings:
+Warning 1438 Cannot drop default keycache
+SELECT @@global.key_buffer_size = @min_key_buffer_size;
+@@global.key_buffer_size = @min_key_buffer_size
+1
+'#---------------------FN_DYNVARS_055_08----------------------#'
+SET @@global.key_buffer_size = @min_key_buffer_size;
+SELECT @@key_buffer_size = @@global.key_buffer_size;
+@@key_buffer_size = @@global.key_buffer_size
+1
+'#---------------------FN_DYNVARS_055_09----------------------#'
+SET key_buffer_size = @min_key_buffer_size;
+ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET
GLOBAL
+SELECT @@key_buffer_size = @min_key_buffer_size;
+@@key_buffer_size = @min_key_buffer_size
+1
+SET local.key_buffer_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line
1
+SELECT local.key_buffer_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_buffer_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line
1
+SELECT global.key_buffer_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_buffer_size = @@session.key_buffer_size;
+ERROR 42S22: Unknown column 'key_buffer_size' in 'field list'
+SET @@global.key_buffer_size = @start_value;
+SELECT @@global.key_buffer_size;
+@@global.key_buffer_size
+1048576
diff -Nrup a/mysql-test/r/key_buffer_size_basic_64.result
b/mysql-test/r/key_buffer_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_buffer_size_basic_64.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,109 @@
+1048576;
+36;
+'#--------------------FN_DYNVARS_055_01------------------------#'
+SET @@global.key_buffer_size = 99;
+SET @@global.key_buffer_size = DEFAULT;
+ERROR 42000: Variable 'key_buffer_size' doesn't have a default value
+'Bug# 34878: This variable has default value according to documentation';
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+'#---------------------FN_DYNVARS_055_02-------------------------#'
+SET @@global.key_buffer_size = 1048576;
+SELECT @@global.key_buffer_size = 1048576;
+@@global.key_buffer_size = 1048576
+1
+'#--------------------FN_DYNVARS_055_03------------------------#'
+SET @@global.key_buffer_size = 36;
+SELECT @@global.key_buffer_size= 36;
+@@global.key_buffer_size= 36
+1
+SET @@global.key_buffer_size = 1800;
+Warnings:
+Warning 1292 Truncated incorrect key_buffer_size value: '1800'
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+SET @@global.key_buffer_size = 65535;
+SELECT @@global.key_buffer_size;
+@@global.key_buffer_size
+61440
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+'#--------------------FN_DYNVARS_055_04-------------------------#'
+SET @@global.key_buffer_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
+SELECT @@global.key_buffer_size;
+@@global.key_buffer_size
+61440
+SET @@global.key_buffer_size = 4;
+Warnings:
+Warning 1292 Truncated incorrect key_buffer_size value: '4'
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@global.key_buffer_size = ON;
+ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+SET @@global.key_buffer_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+'#-------------------FN_DYNVARS_055_05----------------------------#'
+SET @@session.key_buffer_size = 0;
+ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET
GLOBAL
+SELECT @@key_buffer_size = 36;
+@@key_buffer_size = 36
+1
+'#----------------------FN_DYNVARS_055_06------------------------#'
+SELECT @@global.key_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_buffer_size';
+@@global.key_buffer_size = VARIABLE_VALUE
+1
+SELECT @@key_buffer_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_buffer_size';
+@@key_buffer_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_055_07----------------------#'
+SET @@global.key_buffer_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect key_buffer_size value: '1'
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+SET @@global.key_buffer_size = FALSE;
+Warnings:
+Warning 1438 Cannot drop default keycache
+SELECT @@global.key_buffer_size = 36;
+@@global.key_buffer_size = 36
+1
+'#---------------------FN_DYNVARS_055_08----------------------#'
+SET @@global.key_buffer_size = 36;
+SELECT @@key_buffer_size = @@global.key_buffer_size;
+@@key_buffer_size = @@global.key_buffer_size
+1
+'#---------------------FN_DYNVARS_055_09----------------------#'
+SET key_buffer_size = 36;
+ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET
GLOBAL
+SELECT @@key_buffer_size = 36;
+@@key_buffer_size = 36
+1
+SET local.key_buffer_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line
1
+SELECT local.key_buffer_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_buffer_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line
1
+SELECT global.key_buffer_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_buffer_size = @@session.key_buffer_size;
+ERROR 42S22: Unknown column 'key_buffer_size' in 'field list'
+SET @@global.key_buffer_size = 1048576;
+SELECT @@global.key_buffer_size;
+@@global.key_buffer_size
+1048576
diff -Nrup a/mysql-test/r/key_cache_age_threshold_basic.result
b/mysql-test/r/key_cache_age_threshold_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_cache_age_threshold_basic.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,126 @@
+SET @start_value = @@global.key_cache_age_threshold;
+SELECT @start_value;
+@start_value
+300
+'#--------------------FN_DYNVARS_056_01------------------------#'
+SET @@global.key_cache_age_threshold = 99;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '99'
+SET @@global.key_cache_age_threshold = DEFAULT;
+ERROR 42000: Variable 'key_cache_age_threshold' doesn't have a default value
+'Bug# 34878: This variable has default value according to documentation';
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'#---------------------FN_DYNVARS_056_02-------------------------#'
+SET @@global.key_cache_age_threshold = @start_value;
+SELECT @@global.key_cache_age_threshold = 300;
+@@global.key_cache_age_threshold = 300
+1
+'#--------------------FN_DYNVARS_056_03------------------------#'
+SET @@global.key_cache_age_threshold = 100;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+SET @@global.key_cache_age_threshold = 4294967295;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+4294967200
+SET @@global.key_cache_age_threshold = 1800;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+1800
+SET @@global.key_cache_age_threshold = 65535;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+65500
+'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of
Memory Warnings are coming';
+'#--------------------FN_DYNVARS_056_04-------------------------#'
+SET @@global.key_cache_age_threshold = -1;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+4294967200
+SET @@global.key_cache_age_threshold = 42949672951;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+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
+4294967200
+SET @@global.key_cache_age_threshold = -1024;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+4294966200
+SET @@global.key_cache_age_threshold = 99;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '99'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.key_cache_age_threshold = ON;
+ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+SET @@global.key_cache_age_threshold = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'#-------------------FN_DYNVARS_056_05----------------------------#'
+SET @@session.key_cache_age_threshold = 0;
+ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@session.key_cache_age_threshold;
+ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable
+'#----------------------FN_DYNVARS_056_06------------------------#'
+SELECT @@global.key_cache_age_threshold = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_cache_age_threshold';
+@@global.key_cache_age_threshold = VARIABLE_VALUE
+1
+SELECT @@key_cache_age_threshold = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_cache_age_threshold';
+@@key_cache_age_threshold = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_056_07----------------------#'
+SET @@global.key_cache_age_threshold = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '1'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+SET @@global.key_cache_age_threshold = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '0'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'#---------------------FN_DYNVARS_056_08----------------------#'
+SET @@global.key_cache_age_threshold = 101;
+SELECT @@key_cache_age_threshold = @@global.key_cache_age_threshold;
+@@key_cache_age_threshold = @@global.key_cache_age_threshold
+1
+'#---------------------FN_DYNVARS_056_09----------------------#'
+SET key_cache_age_threshold = 8000;
+ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@key_cache_age_threshold;
+@@key_cache_age_threshold
+100
+SET local.key_cache_age_threshold = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_age_threshold = 10'
at line 1
+SELECT local.key_cache_age_threshold;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_cache_age_threshold = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_age_threshold = 10'
at line 1
+SELECT global.key_cache_age_threshold;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_cache_age_threshold = @@session.key_cache_age_threshold;
+ERROR 42S22: Unknown column 'key_cache_age_threshold' in 'field list'
+SET @@global.key_cache_age_threshold = @start_value;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+300
diff -Nrup a/mysql-test/r/key_cache_age_threshold_basic_64.result
b/mysql-test/r/key_cache_age_threshold_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_cache_age_threshold_basic_64.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,126 @@
+SET @start_value = @@global.key_cache_age_threshold;
+SELECT @start_value;
+@start_value
+300
+'#--------------------FN_DYNVARS_056_01------------------------#'
+SET @@global.key_cache_age_threshold = 99;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '99'
+SET @@global.key_cache_age_threshold = DEFAULT;
+ERROR 42000: Variable 'key_cache_age_threshold' doesn't have a default value
+'Bug# 34878: This variable has default value according to documentation';
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'#---------------------FN_DYNVARS_056_02-------------------------#'
+SET @@global.key_cache_age_threshold = @start_value;
+SELECT @@global.key_cache_age_threshold = 300;
+@@global.key_cache_age_threshold = 300
+1
+'#--------------------FN_DYNVARS_056_03------------------------#'
+SET @@global.key_cache_age_threshold = 100;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+SET @@global.key_cache_age_threshold = 4294967295;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+4294967200
+SET @@global.key_cache_age_threshold = 1800;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+1800
+SET @@global.key_cache_age_threshold = 65535;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+65500
+'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of
Memory Warnings are coming';
+'#--------------------FN_DYNVARS_056_04-------------------------#'
+SET @@global.key_cache_age_threshold = -1;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+18446744073709551600
+SET @@global.key_cache_age_threshold = 42949672951;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+42949672900
+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
+SET @@global.key_cache_age_threshold = -1024;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+18446744073709550500
+SET @@global.key_cache_age_threshold = 99;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '99'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.key_cache_age_threshold = ON;
+ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+SET @@global.key_cache_age_threshold = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'#-------------------FN_DYNVARS_056_05----------------------------#'
+SET @@session.key_cache_age_threshold = 0;
+ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@session.key_cache_age_threshold;
+ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable
+'#----------------------FN_DYNVARS_056_06------------------------#'
+SELECT @@global.key_cache_age_threshold = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_cache_age_threshold';
+@@global.key_cache_age_threshold = VARIABLE_VALUE
+1
+SELECT @@key_cache_age_threshold = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_cache_age_threshold';
+@@key_cache_age_threshold = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_056_07----------------------#'
+SET @@global.key_cache_age_threshold = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '1'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+SET @@global.key_cache_age_threshold = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_age_threshold value: '0'
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+100
+'#---------------------FN_DYNVARS_056_08----------------------#'
+SET @@global.key_cache_age_threshold = 101;
+SELECT @@key_cache_age_threshold = @@global.key_cache_age_threshold;
+@@key_cache_age_threshold = @@global.key_cache_age_threshold
+1
+'#---------------------FN_DYNVARS_056_09----------------------#'
+SET key_cache_age_threshold = 8000;
+ERROR HY000: Variable 'key_cache_age_threshold' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@key_cache_age_threshold;
+@@key_cache_age_threshold
+100
+SET local.key_cache_age_threshold = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_age_threshold = 10'
at line 1
+SELECT local.key_cache_age_threshold;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_cache_age_threshold = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_age_threshold = 10'
at line 1
+SELECT global.key_cache_age_threshold;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_cache_age_threshold = @@session.key_cache_age_threshold;
+ERROR 42S22: Unknown column 'key_cache_age_threshold' in 'field list'
+SET @@global.key_cache_age_threshold = @start_value;
+SELECT @@global.key_cache_age_threshold;
+@@global.key_cache_age_threshold
+300
diff -Nrup a/mysql-test/r/key_cache_block_size_basic.result
b/mysql-test/r/key_cache_block_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_cache_block_size_basic.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,142 @@
+SET @start_value = @@global.key_cache_block_size;
+SELECT @start_value;
+@start_value
+1024
+'#--------------------FN_DYNVARS_057_01------------------------#'
+SET @@global.key_cache_block_size = 600;
+SET @@global.key_cache_block_size = DEFAULT;
+ERROR 42000: Variable 'key_cache_block_size' doesn't have a default value
+'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of
Memory Warnings are coming';
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+'#---------------------FN_DYNVARS_057_02-------------------------#'
+SET @@global.key_cache_block_size = @start_value;
+SELECT @@global.key_cache_block_size = 1024;
+@@global.key_cache_block_size = 1024
+1
+'#--------------------FN_DYNVARS_057_03------------------------#'
+SET @@global.key_cache_block_size = 1024;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+1024
+SET @@global.key_cache_block_size = 16384;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 1800;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+1536
+SET @@global.key_cache_block_size = 16383;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+15872
+'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of
Memory Warnings are coming';
+'#--------------------FN_DYNVARS_057_04-------------------------#'
+SET @@global.key_cache_block_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '4294967295'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 42949672951;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '4294967287'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'key_cache_block_size'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '4294966272'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 256;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '256'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+SET @@global.key_cache_block_size = 511;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '511'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+SET @@global.key_cache_block_size = 16385;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '16385'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.key_cache_block_size = ON;
+ERROR 42000: Incorrect argument type to variable 'key_cache_block_size'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_cache_block_size'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+'#-------------------FN_DYNVARS_057_05----------------------------#'
+SET @@session.key_cache_block_size = 0;
+ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@session.key_cache_block_size;
+ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable
+'#----------------------FN_DYNVARS_057_06------------------------#'
+SELECT @@global.key_cache_block_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_cache_block_size';
+@@global.key_cache_block_size = VARIABLE_VALUE
+1
+SELECT @@key_cache_block_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_cache_block_size';
+@@key_cache_block_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_057_07----------------------#'
+SET @@global.key_cache_block_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '1'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+SET @@global.key_cache_block_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '0'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+'#---------------------FN_DYNVARS_057_08----------------------#'
+SET @@global.key_cache_block_size = 1024;
+SELECT @@key_cache_block_size = @@global.key_cache_block_size;
+@@key_cache_block_size = @@global.key_cache_block_size
+1
+'#---------------------FN_DYNVARS_057_09----------------------#'
+SET key_cache_block_size = 8000;
+ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@key_cache_block_size;
+@@key_cache_block_size
+1024
+SET local.key_cache_block_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_block_size = 10' at
line 1
+SELECT local.key_cache_block_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_cache_block_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_block_size = 10' at
line 1
+SELECT global.key_cache_block_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_cache_block_size = @@session.key_cache_block_size;
+ERROR 42S22: Unknown column 'key_cache_block_size' in 'field list'
+SET @@global.key_cache_block_size = @start_value;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+1024
diff -Nrup a/mysql-test/r/key_cache_block_size_basic_64.result
b/mysql-test/r/key_cache_block_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_cache_block_size_basic_64.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,142 @@
+SET @start_value = @@global.key_cache_block_size;
+SELECT @start_value;
+@start_value
+1024
+'#--------------------FN_DYNVARS_057_01------------------------#'
+SET @@global.key_cache_block_size = 600;
+SET @@global.key_cache_block_size = DEFAULT;
+ERROR 42000: Variable 'key_cache_block_size' doesn't have a default value
+'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of
Memory Warnings are coming';
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+'#---------------------FN_DYNVARS_057_02-------------------------#'
+SET @@global.key_cache_block_size = @start_value;
+SELECT @@global.key_cache_block_size = 1024;
+@@global.key_cache_block_size = 1024
+1
+'#--------------------FN_DYNVARS_057_03------------------------#'
+SET @@global.key_cache_block_size = 1024;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+1024
+SET @@global.key_cache_block_size = 16384;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 1800;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+1536
+SET @@global.key_cache_block_size = 16383;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+15872
+'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of
Memory Warnings are coming';
+'#--------------------FN_DYNVARS_057_04-------------------------#'
+SET @@global.key_cache_block_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '18446744073709551615'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 42949672951;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '42949672951'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'key_cache_block_size'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '18446744073709550592'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 256;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '256'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+SET @@global.key_cache_block_size = 511;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '511'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+SET @@global.key_cache_block_size = 16385;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '16385'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.key_cache_block_size = ON;
+ERROR 42000: Incorrect argument type to variable 'key_cache_block_size'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+SET @@global.key_cache_block_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_cache_block_size'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+16384
+'#-------------------FN_DYNVARS_057_05----------------------------#'
+SET @@session.key_cache_block_size = 0;
+ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@session.key_cache_block_size;
+ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable
+'#----------------------FN_DYNVARS_057_06------------------------#'
+SELECT @@global.key_cache_block_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_cache_block_size';
+@@global.key_cache_block_size = VARIABLE_VALUE
+1
+SELECT @@key_cache_block_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_cache_block_size';
+@@key_cache_block_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_057_07----------------------#'
+SET @@global.key_cache_block_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '1'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+SET @@global.key_cache_block_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_block_size value: '0'
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+512
+'#---------------------FN_DYNVARS_057_08----------------------#'
+SET @@global.key_cache_block_size = 1024;
+SELECT @@key_cache_block_size = @@global.key_cache_block_size;
+@@key_cache_block_size = @@global.key_cache_block_size
+1
+'#---------------------FN_DYNVARS_057_09----------------------#'
+SET key_cache_block_size = 8000;
+ERROR HY000: Variable 'key_cache_block_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@key_cache_block_size;
+@@key_cache_block_size
+1024
+SET local.key_cache_block_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_block_size = 10' at
line 1
+SELECT local.key_cache_block_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_cache_block_size = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_block_size = 10' at
line 1
+SELECT global.key_cache_block_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_cache_block_size = @@session.key_cache_block_size;
+ERROR 42S22: Unknown column 'key_cache_block_size' in 'field list'
+SET @@global.key_cache_block_size = @start_value;
+SELECT @@global.key_cache_block_size;
+@@global.key_cache_block_size
+1024
diff -Nrup a/mysql-test/r/key_cache_division_limit_basic.result
b/mysql-test/r/key_cache_division_limit_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_cache_division_limit_basic.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,139 @@
+SET @start_value = @@global.key_cache_division_limit;
+SELECT @start_value;
+@start_value
+100
+'#--------------------FN_DYNVARS_058_01------------------------#'
+SET @@global.key_cache_division_limit = 50;
+SET @@global.key_cache_division_limit = DEFAULT;
+ERROR 42000: Variable 'key_cache_division_limit' doesn't have a default value
+'Bug# 34878: This variable has default value according to documentation';
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+50
+'#---------------------FN_DYNVARS_058_02-------------------------#'
+SET @@global.key_cache_division_limit = @start_value;
+SELECT @@global.key_cache_division_limit = 100;
+@@global.key_cache_division_limit = 100
+1
+'#--------------------FN_DYNVARS_058_03------------------------#'
+SET @@global.key_cache_division_limit = 1;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+SET @@global.key_cache_division_limit = 50;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+50
+SET @@global.key_cache_division_limit = 99;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+99
+SET @@global.key_cache_division_limit = 2;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+2
+'#--------------------FN_DYNVARS_058_04-------------------------#'
+SET @@global.key_cache_division_limit = -1;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '4294967295'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 101;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '101'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'key_cache_division_limit'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = -1024;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '4294966272'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 0;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '0'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+SET @@global.key_cache_division_limit = 200;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '200'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 65535;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '65535'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.key_cache_division_limit = ON;
+ERROR 42000: Incorrect argument type to variable 'key_cache_division_limit'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_cache_division_limit'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+'#-------------------FN_DYNVARS_058_05----------------------------#'
+SET @@session.key_cache_division_limit = 0;
+ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@session.key_cache_division_limit;
+ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable
+'#----------------------FN_DYNVARS_058_06------------------------#'
+SELECT @@global.key_cache_division_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_cache_division_limit';
+@@global.key_cache_division_limit = VARIABLE_VALUE
+1
+SELECT @@key_cache_division_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_cache_division_limit';
+@@key_cache_division_limit = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_058_07----------------------#'
+SET @@global.key_cache_division_limit = TRUE;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+SET @@global.key_cache_division_limit = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '0'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+'#---------------------FN_DYNVARS_058_08----------------------#'
+SET @@global.key_cache_division_limit = 90;
+SELECT @@key_cache_division_limit = @@global.key_cache_division_limit;
+@@key_cache_division_limit = @@global.key_cache_division_limit
+1
+'#---------------------FN_DYNVARS_058_09----------------------#'
+SET key_cache_division_limit = 80;
+ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@key_cache_division_limit;
+@@key_cache_division_limit
+90
+SET local.key_cache_division_limit = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_division_limit =
10' at line 1
+SELECT local.key_cache_division_limit;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_cache_division_limit = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_division_limit =
10' at line 1
+SELECT global.key_cache_division_limit;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_cache_division_limit = @@session.key_cache_division_limit;
+ERROR 42S22: Unknown column 'key_cache_division_limit' in 'field list'
+SET @@global.key_cache_division_limit = @start_value;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
diff -Nrup a/mysql-test/r/key_cache_division_limit_basic_64.result
b/mysql-test/r/key_cache_division_limit_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/key_cache_division_limit_basic_64.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,139 @@
+SET @start_value = @@global.key_cache_division_limit;
+SELECT @start_value;
+@start_value
+100
+'#--------------------FN_DYNVARS_058_01------------------------#'
+SET @@global.key_cache_division_limit = 50;
+SET @@global.key_cache_division_limit = DEFAULT;
+ERROR 42000: Variable 'key_cache_division_limit' doesn't have a default value
+'Bug# 34878: This variable has default value according to documentation';
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+50
+'#---------------------FN_DYNVARS_058_02-------------------------#'
+SET @@global.key_cache_division_limit = @start_value;
+SELECT @@global.key_cache_division_limit = 100;
+@@global.key_cache_division_limit = 100
+1
+'#--------------------FN_DYNVARS_058_03------------------------#'
+SET @@global.key_cache_division_limit = 1;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+SET @@global.key_cache_division_limit = 50;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+50
+SET @@global.key_cache_division_limit = 99;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+99
+SET @@global.key_cache_division_limit = 2;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+2
+'#--------------------FN_DYNVARS_058_04-------------------------#'
+SET @@global.key_cache_division_limit = -1;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '18446744073709551615'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 101;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '101'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'key_cache_division_limit'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = -1024;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '18446744073709550592'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 0;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '0'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+SET @@global.key_cache_division_limit = 200;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '200'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 65535;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '65535'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+'Bug # 34837: Errors are not coming on assigning invalid values to variable'
+SET @@global.key_cache_division_limit = ON;
+ERROR 42000: Incorrect argument type to variable 'key_cache_division_limit'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+SET @@global.key_cache_division_limit = 'test';
+ERROR 42000: Incorrect argument type to variable 'key_cache_division_limit'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
+'#-------------------FN_DYNVARS_058_05----------------------------#'
+SET @@session.key_cache_division_limit = 0;
+ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@session.key_cache_division_limit;
+ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable
+'#----------------------FN_DYNVARS_058_06------------------------#'
+SELECT @@global.key_cache_division_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='key_cache_division_limit';
+@@global.key_cache_division_limit = VARIABLE_VALUE
+1
+SELECT @@key_cache_division_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='key_cache_division_limit';
+@@key_cache_division_limit = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_058_07----------------------#'
+SET @@global.key_cache_division_limit = TRUE;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+SET @@global.key_cache_division_limit = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect key_cache_division_limit value: '0'
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+1
+'#---------------------FN_DYNVARS_058_08----------------------#'
+SET @@global.key_cache_division_limit = 90;
+SELECT @@key_cache_division_limit = @@global.key_cache_division_limit;
+@@key_cache_division_limit = @@global.key_cache_division_limit
+1
+'#---------------------FN_DYNVARS_058_09----------------------#'
+SET key_cache_division_limit = 80;
+ERROR HY000: Variable 'key_cache_division_limit' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT @@key_cache_division_limit;
+@@key_cache_division_limit
+90
+SET local.key_cache_division_limit = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_division_limit =
10' at line 1
+SELECT local.key_cache_division_limit;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.key_cache_division_limit = 10;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'key_cache_division_limit =
10' at line 1
+SELECT global.key_cache_division_limit;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT key_cache_division_limit = @@session.key_cache_division_limit;
+ERROR 42S22: Unknown column 'key_cache_division_limit' in 'field list'
+SET @@global.key_cache_division_limit = @start_value;
+SELECT @@global.key_cache_division_limit;
+@@global.key_cache_division_limit
+100
diff -Nrup a/mysql-test/r/log_warnings_basic.result
b/mysql-test/r/log_warnings_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/log_warnings_basic.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,162 @@
+SET @start_global_value = @@global.log_warnings;
+SELECT @start_global_value;
+@start_global_value
+1
+SET @start_session_value = @@session.log_warnings;
+SELECT @start_session_value;
+@start_session_value
+1
+'#--------------------FN_DYNVARS_067_01-------------------------#'
+SET @@global.log_warnings = 100;
+SET @@global.log_warnings = DEFAULT;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@session.log_warnings = 200;
+SET @@session.log_warnings = DEFAULT;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+1
+'#--------------------FN_DYNVARS_067_02-------------------------#'
+SET @@global.log_warnings = DEFAULT;
+SELECT @@global.log_warnings = 1;
+@@global.log_warnings = 1
+1
+SET @@session.log_warnings = DEFAULT;
+SELECT @@session.log_warnings = 1;
+@@session.log_warnings = 1
+1
+'#--------------------FN_DYNVARS_067_03-------------------------#'
+SET @@global.log_warnings = 0;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@global.log_warnings = 1;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@global.log_warnings = 60020;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+60020
+SET @@global.log_warnings = 65535;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+65535
+SET @@global.log_warnings = 65536;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+65536
+'#--------------------FN_DYNVARS_067_04-------------------------#'
+SET @@session.log_warnings = 0;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+0
+SET @@session.log_warnings = 1;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+1
+SET @@session.log_warnings = 50050;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+50050
+SET @@session.log_warnings = 65535;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+65535
+SET @@session.log_warnings = 65550;
+SELECT @@session.log_warnings;
+@@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
+4294967295
+SET @@global.log_warnings = -1024;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@global.log_warnings = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@global.log_warnings = test;
+ERROR 42000: Incorrect argument type to variable 'log_warnings'
+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
+4294967295
+SET @@session.log_warnings = -2;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+0
+SET @@session.log_warnings = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.log_warnings = test;
+ERROR 42000: Incorrect argument type to variable 'log_warnings'
+SELECT @@session.log_warnings;
+@@session.log_warnings
+0
+'#------------------FN_DYNVARS_067_06-----------------------#'
+SELECT @@global.log_warnings = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='log_warnings';
+@@global.log_warnings = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_067_07-----------------------#'
+SELECT @@session.log_warnings = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='log_warnings';
+@@session.log_warnings = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_067_08-----------------------#'
+SET @@global.log_warnings = TRUE;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@global.log_warnings = FALSE;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+'#---------------------FN_DYNVARS_067_09----------------------#'
+SET @@global.log_warnings = 10;
+SELECT @@log_warnings = @@global.log_warnings;
+@@log_warnings = @@global.log_warnings
+0
+'#---------------------FN_DYNVARS_067_10----------------------#'
+SET @@log_warnings = 100;
+SELECT @@log_warnings = @@local.log_warnings;
+@@log_warnings = @@local.log_warnings
+1
+SELECT @@local.log_warnings = @@session.log_warnings;
+@@local.log_warnings = @@session.log_warnings
+1
+'#---------------------FN_DYNVARS_067_11----------------------#'
+SET log_warnings = 1;
+SELECT @@log_warnings;
+@@log_warnings
+1
+SELECT local.log_warnings;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.log_warnings;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT log_warnings = @@session.log_warnings;
+ERROR 42S22: Unknown column 'log_warnings' in 'field list'
+SET @@global.log_warnings = @start_global_value;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@session.log_warnings = @start_session_value;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+1
diff -Nrup a/mysql-test/r/log_warnings_basic_64.result
b/mysql-test/r/log_warnings_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/log_warnings_basic_64.result 2008-05-06 15:00:32 +02:00
@@ -0,0 +1,158 @@
+SET @start_global_value = @@global.log_warnings;
+SELECT @start_global_value;
+@start_global_value
+1
+SET @start_session_value = @@session.log_warnings;
+SELECT @start_session_value;
+@start_session_value
+1
+'#--------------------FN_DYNVARS_067_01-------------------------#'
+SET @@global.log_warnings = 100;
+SET @@global.log_warnings = DEFAULT;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@session.log_warnings = 200;
+SET @@session.log_warnings = DEFAULT;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+1
+'#--------------------FN_DYNVARS_067_02-------------------------#'
+SET @@global.log_warnings = DEFAULT;
+SELECT @@global.log_warnings = 1;
+@@global.log_warnings = 1
+1
+SET @@session.log_warnings = DEFAULT;
+SELECT @@session.log_warnings = 1;
+@@session.log_warnings = 1
+1
+'#--------------------FN_DYNVARS_067_03-------------------------#'
+SET @@global.log_warnings = 0;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@global.log_warnings = 1;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@global.log_warnings = 60020;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+60020
+SET @@global.log_warnings = 65535;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+65535
+SET @@global.log_warnings = 65536;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+65536
+'#--------------------FN_DYNVARS_067_04-------------------------#'
+SET @@session.log_warnings = 0;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+0
+SET @@session.log_warnings = 1;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+1
+SET @@session.log_warnings = 50050;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+50050
+SET @@session.log_warnings = 65535;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+65535
+SET @@session.log_warnings = 65550;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+65550
+'#------------------FN_DYNVARS_067_05-----------------------#'
+SET @@global.log_warnings = 100000000000;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+100000000000
+SET @@global.log_warnings = -1024;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@global.log_warnings = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@global.log_warnings = test;
+ERROR 42000: Incorrect argument type to variable 'log_warnings'
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+SET @@session.log_warnings = 100000000000;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+100000000000
+SET @@session.log_warnings = -2;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+0
+SET @@session.log_warnings = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.log_warnings = test;
+ERROR 42000: Incorrect argument type to variable 'log_warnings'
+SELECT @@session.log_warnings;
+@@session.log_warnings
+0
+'#------------------FN_DYNVARS_067_06-----------------------#'
+SELECT @@global.log_warnings = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='log_warnings';
+@@global.log_warnings = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_067_07-----------------------#'
+SELECT @@session.log_warnings = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='log_warnings';
+@@session.log_warnings = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_067_08-----------------------#'
+SET @@global.log_warnings = TRUE;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@global.log_warnings = FALSE;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+0
+'#---------------------FN_DYNVARS_067_09----------------------#'
+SET @@global.log_warnings = 10;
+SELECT @@log_warnings = @@global.log_warnings;
+@@log_warnings = @@global.log_warnings
+0
+'#---------------------FN_DYNVARS_067_10----------------------#'
+SET @@log_warnings = 100;
+SELECT @@log_warnings = @@local.log_warnings;
+@@log_warnings = @@local.log_warnings
+1
+SELECT @@local.log_warnings = @@session.log_warnings;
+@@local.log_warnings = @@session.log_warnings
+1
+'#---------------------FN_DYNVARS_067_11----------------------#'
+SET log_warnings = 1;
+SELECT @@log_warnings;
+@@log_warnings
+1
+SELECT local.log_warnings;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.log_warnings;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT log_warnings = @@session.log_warnings;
+ERROR 42S22: Unknown column 'log_warnings' in 'field list'
+SET @@global.log_warnings = @start_global_value;
+SELECT @@global.log_warnings;
+@@global.log_warnings
+1
+SET @@session.log_warnings = @start_session_value;
+SELECT @@session.log_warnings;
+@@session.log_warnings
+1
diff -Nrup a/mysql-test/r/max_binlog_cache_size_basic.result
b/mysql-test/r/max_binlog_cache_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_binlog_cache_size_basic.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,145 @@
+SET @start_value = @@global.max_binlog_cache_size;
+SELECT @start_value;
+@start_value
+4294967295
+'#--------------------FN_DYNVARS_072_01------------------------#'
+SET @@global.max_binlog_cache_size = 5000;
+SET @@global.max_binlog_cache_size = DEFAULT;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+'#---------------------FN_DYNVARS_072_02-------------------------#'
+SET @@global.max_binlog_cache_size = @start_value;
+SELECT @@global.max_binlog_cache_size = 4294967295;
+@@global.max_binlog_cache_size = 4294967295
+0
+'Bug# 34876: Incorrect Default Value is assigned to variable';
+'#--------------------FN_DYNVARS_072_03------------------------#'
+SET @@global.max_binlog_cache_size = 4096;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 4294967295;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = 4294967294;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = 4097;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 65535;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+61440
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#--------------------FN_DYNVARS_072_04-------------------------#'
+SET @@global.max_binlog_cache_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '0'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 100000000000;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '100000000000'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '0'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 1024;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '1024'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 4294967296;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '4294967296'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = 4095;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '4095'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@global.max_binlog_cache_size = ON;
+ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+'#-------------------FN_DYNVARS_072_05----------------------------#'
+SET @@session.max_binlog_cache_size = 4096;
+ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@session.max_binlog_cache_size;
+ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable
+'#----------------------FN_DYNVARS_072_06------------------------#'
+SELECT @@global.max_binlog_cache_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_binlog_cache_size';
+@@global.max_binlog_cache_size = VARIABLE_VALUE
+1
+SELECT @@max_binlog_cache_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_binlog_cache_size';
+@@max_binlog_cache_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_072_07----------------------#'
+SET @@global.max_binlog_cache_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '1'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '0'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+'#---------------------FN_DYNVARS_072_08----------------------#'
+SET @@global.max_binlog_cache_size = 5000;
+SELECT @@max_binlog_cache_size = @@global.max_binlog_cache_size;
+@@max_binlog_cache_size = @@global.max_binlog_cache_size
+1
+'#---------------------FN_DYNVARS_072_09----------------------#'
+SET max_binlog_cache_size = 6000;
+ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@max_binlog_cache_size;
+@@max_binlog_cache_size
+4096
+SET local.max_binlog_cache_size = 7000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_binlog_cache_size = 7000'
at line 1
+SELECT local.max_binlog_cache_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.max_binlog_cache_size = 8000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_binlog_cache_size = 8000'
at line 1
+SELECT global.max_binlog_cache_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT max_binlog_cache_size = @@session.max_binlog_cache_size;
+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
+4294963200
diff -Nrup a/mysql-test/r/max_binlog_cache_size_basic_64.result
b/mysql-test/r/max_binlog_cache_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_binlog_cache_size_basic_64.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,141 @@
+SET @start_value = @@global.max_binlog_cache_size;
+SELECT @start_value;
+@start_value
+18446744073709551615
+'#--------------------FN_DYNVARS_072_01------------------------#'
+SET @@global.max_binlog_cache_size = 5000;
+SET @@global.max_binlog_cache_size = DEFAULT;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+18446744073709547520
+'#---------------------FN_DYNVARS_072_02-------------------------#'
+SET @@global.max_binlog_cache_size = @start_value;
+SELECT @@global.max_binlog_cache_size = 4294967295;
+@@global.max_binlog_cache_size = 4294967295
+0
+'Bug# 34876: Incorrect Default Value is assigned to variable';
+'#--------------------FN_DYNVARS_072_03------------------------#'
+SET @@global.max_binlog_cache_size = 4096;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 4294967295;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = 4294967294;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294963200
+SET @@global.max_binlog_cache_size = 4097;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 65535;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+61440
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#--------------------FN_DYNVARS_072_04-------------------------#'
+SET @@global.max_binlog_cache_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '0'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 100000000000;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+99999997952
+SET @@global.max_binlog_cache_size = 10000.01;
+ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+99999997952
+SET @@global.max_binlog_cache_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '0'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 1024;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '1024'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 4294967296;
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4294967296
+SET @@global.max_binlog_cache_size = 4095;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '4095'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@global.max_binlog_cache_size = ON;
+ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = 'test';
+ERROR 42000: Incorrect argument type to variable 'max_binlog_cache_size'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+'#-------------------FN_DYNVARS_072_05----------------------------#'
+SET @@session.max_binlog_cache_size = 4096;
+ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@session.max_binlog_cache_size;
+ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable
+'#----------------------FN_DYNVARS_072_06------------------------#'
+SELECT @@global.max_binlog_cache_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_binlog_cache_size';
+@@global.max_binlog_cache_size = VARIABLE_VALUE
+1
+SELECT @@max_binlog_cache_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_binlog_cache_size';
+@@max_binlog_cache_size = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_072_07----------------------#'
+SET @@global.max_binlog_cache_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '1'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+SET @@global.max_binlog_cache_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_binlog_cache_size value: '0'
+SELECT @@global.max_binlog_cache_size;
+@@global.max_binlog_cache_size
+4096
+'#---------------------FN_DYNVARS_072_08----------------------#'
+SET @@global.max_binlog_cache_size = 5000;
+SELECT @@max_binlog_cache_size = @@global.max_binlog_cache_size;
+@@max_binlog_cache_size = @@global.max_binlog_cache_size
+1
+'#---------------------FN_DYNVARS_072_09----------------------#'
+SET max_binlog_cache_size = 6000;
+ERROR HY000: Variable 'max_binlog_cache_size' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@max_binlog_cache_size;
+@@max_binlog_cache_size
+4096
+SET local.max_binlog_cache_size = 7000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_binlog_cache_size = 7000'
at line 1
+SELECT local.max_binlog_cache_size;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.max_binlog_cache_size = 8000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_binlog_cache_size = 8000'
at line 1
+SELECT global.max_binlog_cache_size;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT max_binlog_cache_size = @@session.max_binlog_cache_size;
+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
diff -Nrup a/mysql-test/r/max_connect_errors_basic.result
b/mysql-test/r/max_connect_errors_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_connect_errors_basic.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,137 @@
+SET @start_value = @@global.max_connect_errors;
+SELECT @start_value;
+@start_value
+10
+'#--------------------FN_DYNVARS_073_01------------------------#'
+SET @@global.max_connect_errors = 5000;
+SET @@global.max_connect_errors = DEFAULT;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+10
+'Bug# 34876: This variable has invalid default value as compared to documentation';
+'#---------------------FN_DYNVARS_073_02-------------------------#'
+SET @@global.max_connect_errors = @start_value;
+SELECT @@global.max_connect_errors = 10;
+@@global.max_connect_errors = 10
+1
+'#--------------------FN_DYNVARS_073_03------------------------#'
+SET @@global.max_connect_errors = 4096;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4096
+SET @@global.max_connect_errors = 4294967294;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4294967294
+SET @@global.max_connect_errors = 4294967295;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4294967295
+SET @@global.max_connect_errors = 1;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = 2;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+2
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#--------------------FN_DYNVARS_073_04-------------------------#'
+SET @@global.max_connect_errors = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+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
+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
+4294967295
+SET @@global.max_connect_errors = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+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
+4294967295
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+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
+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
+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
+SELECT @@session.max_connect_errors;
+ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable
+'#----------------------FN_DYNVARS_073_06------------------------#'
+SELECT @@global.max_connect_errors = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_connect_errors';
+@@global.max_connect_errors = VARIABLE_VALUE
+1
+SELECT @@max_connect_errors = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_connect_errors';
+@@max_connect_errors = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_073_07----------------------#'
+SET @@global.max_connect_errors = TRUE;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+'#---------------------FN_DYNVARS_073_08----------------------#'
+SET @@global.max_connect_errors = 5000;
+SELECT @@max_connect_errors = @@global.max_connect_errors;
+@@max_connect_errors = @@global.max_connect_errors
+1
+'#---------------------FN_DYNVARS_073_09----------------------#'
+SET max_connect_errors = 6000;
+ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@max_connect_errors;
+@@max_connect_errors
+5000
+SET local.max_connect_errors = 7000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_connect_errors = 7000' at
line 1
+SELECT local.max_connect_errors;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.max_connect_errors = 8000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_connect_errors = 8000' at
line 1
+SELECT global.max_connect_errors;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT max_connect_errors = @@session.max_connect_errors;
+ERROR 42S22: Unknown column 'max_connect_errors' in 'field list'
+SET @@global.max_connect_errors = @start_value;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+10
diff -Nrup a/mysql-test/r/max_connect_errors_basic_64.result
b/mysql-test/r/max_connect_errors_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_connect_errors_basic_64.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,133 @@
+SET @start_value = @@global.max_connect_errors;
+SELECT @start_value;
+@start_value
+10
+'#--------------------FN_DYNVARS_073_01------------------------#'
+SET @@global.max_connect_errors = 5000;
+SET @@global.max_connect_errors = DEFAULT;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+10
+'Bug# 34876: This variable has invalid default value as compared to documentation';
+'#---------------------FN_DYNVARS_073_02-------------------------#'
+SET @@global.max_connect_errors = @start_value;
+SELECT @@global.max_connect_errors = 10;
+@@global.max_connect_errors = 10
+1
+'#--------------------FN_DYNVARS_073_03------------------------#'
+SET @@global.max_connect_errors = 4096;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4096
+SET @@global.max_connect_errors = 4294967294;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4294967294
+SET @@global.max_connect_errors = 4294967295;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4294967295
+SET @@global.max_connect_errors = 1;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = 2;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+2
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#--------------------FN_DYNVARS_073_04-------------------------#'
+SET @@global.max_connect_errors = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = 100000000000;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+100000000000
+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
+SET @@global.max_connect_errors = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = 4294967296;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+4294967296
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+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
+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
+'#-------------------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
+SELECT @@session.max_connect_errors;
+ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable
+'#----------------------FN_DYNVARS_073_06------------------------#'
+SELECT @@global.max_connect_errors = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_connect_errors';
+@@global.max_connect_errors = VARIABLE_VALUE
+1
+SELECT @@max_connect_errors = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_connect_errors';
+@@max_connect_errors = VARIABLE_VALUE
+1
+'#---------------------FN_DYNVARS_073_07----------------------#'
+SET @@global.max_connect_errors = TRUE;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+SET @@global.max_connect_errors = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_connect_errors value: '0'
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+1
+'#---------------------FN_DYNVARS_073_08----------------------#'
+SET @@global.max_connect_errors = 5000;
+SELECT @@max_connect_errors = @@global.max_connect_errors;
+@@max_connect_errors = @@global.max_connect_errors
+1
+'#---------------------FN_DYNVARS_073_09----------------------#'
+SET max_connect_errors = 6000;
+ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable and should be set with
SET GLOBAL
+SELECT @@max_connect_errors;
+@@max_connect_errors
+5000
+SET local.max_connect_errors = 7000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_connect_errors = 7000' at
line 1
+SELECT local.max_connect_errors;
+ERROR 42S02: Unknown table 'local' in field list
+SET global.max_connect_errors = 8000;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'max_connect_errors = 8000' at
line 1
+SELECT global.max_connect_errors;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT max_connect_errors = @@session.max_connect_errors;
+ERROR 42S22: Unknown column 'max_connect_errors' in 'field list'
+SET @@global.max_connect_errors = @start_value;
+SELECT @@global.max_connect_errors;
+@@global.max_connect_errors
+10
diff -Nrup a/mysql-test/r/max_heap_table_size_basic.result
b/mysql-test/r/max_heap_table_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_heap_table_size_basic.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,196 @@
+SET @start_global_value = @@global.max_heap_table_size;
+SELECT @start_global_value;
+@start_global_value
+1048576
+SET @start_session_value = @@session.max_heap_table_size;
+SELECT @start_session_value;
+@start_session_value
+1048576
+'#--------------------FN_DYNVARS_077_01-------------------------#'
+SET @@global.max_heap_table_size = 1677721610;
+SET @@global.max_heap_table_size = DEFAULT;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16777216
+SET @@session.max_heap_table_size = 1677721610;
+SET @@session.max_heap_table_size = DEFAULT;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16777216
+'#--------------------FN_DYNVARS_077_02-------------------------#'
+SET @@global.max_heap_table_size = DEFAULT;
+SELECT @@global.max_heap_table_size = 16777216;
+@@global.max_heap_table_size = 16777216
+1
+SET @@session.max_heap_table_size = DEFAULT;
+SELECT @@session.max_heap_table_size = 16777216;
+@@session.max_heap_table_size = 16777216
+1
+'#--------------------FN_DYNVARS_077_03-------------------------#'
+SET @@global.max_heap_table_size = 16384;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 16385;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 65535;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+64512
+SET @@global.max_heap_table_size = 4294967294;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+SET @@global.max_heap_table_size = 4294967295;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#--------------------FN_DYNVARS_077_04-------------------------#'
+SET @@session.max_heap_table_size = 16384;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 16385;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 65535;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+64512
+SET @@session.max_heap_table_size = 4294967294;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+SET @@session.max_heap_table_size = 4294967295;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#------------------FN_DYNVARS_077_05-----------------------#'
+SET @@global.max_heap_table_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 1024;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '1024'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 16383;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '16383'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 4294967296;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+SET @@global.max_heap_table_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+SET @@global.max_heap_table_size = test;
+ERROR 42000: Incorrect argument type to variable 'max_heap_table_size'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+SET @@session.max_heap_table_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 16383;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '16383'
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 4294967296;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+SET @@session.max_heap_table_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.max_heap_table_size = 10737418241;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.max_heap_table_size = test;
+ERROR 42000: Incorrect argument type to variable 'max_heap_table_size'
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+'#------------------FN_DYNVARS_077_06-----------------------#'
+SELECT @@global.max_heap_table_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_heap_table_size';
+@@global.max_heap_table_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_077_07-----------------------#'
+SELECT @@session.max_heap_table_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_heap_table_size';
+@@session.max_heap_table_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_077_08-----------------------#'
+SET @@global.max_heap_table_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '1'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+'#---------------------FN_DYNVARS_077_09----------------------#'
+SET @@global.max_heap_table_size = 163845;
+SELECT @@max_heap_table_size = @@global.max_heap_table_size;
+@@max_heap_table_size = @@global.max_heap_table_size
+0
+'#---------------------FN_DYNVARS_077_10----------------------#'
+SET @@max_heap_table_size = 16777216;
+SELECT @@max_heap_table_size = @@local.max_heap_table_size;
+@@max_heap_table_size = @@local.max_heap_table_size
+1
+SELECT @@local.max_heap_table_size = @@session.max_heap_table_size;
+@@local.max_heap_table_size = @@session.max_heap_table_size
+1
+'#---------------------FN_DYNVARS_077_11----------------------#'
+SET max_heap_table_size = 316777216;
+SELECT @@max_heap_table_size;
+@@max_heap_table_size
+316776448
+SELECT local.max_heap_table_size;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_heap_table_size;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_heap_table_size = @@session.max_heap_table_size;
+ERROR 42S22: Unknown column 'max_heap_table_size' in 'field list'
+SET @@global.max_heap_table_size = @start_global_value;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+1048576
+SET @@session.max_heap_table_size = @start_session_value;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+1048576
diff -Nrup a/mysql-test/r/max_heap_table_size_basic_64.result
b/mysql-test/r/max_heap_table_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_heap_table_size_basic_64.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,196 @@
+SET @start_global_value = @@global.max_heap_table_size;
+SELECT @start_global_value;
+@start_global_value
+1048576
+SET @start_session_value = @@session.max_heap_table_size;
+SELECT @start_session_value;
+@start_session_value
+1048576
+'#--------------------FN_DYNVARS_077_01-------------------------#'
+SET @@global.max_heap_table_size = 1677721610;
+SET @@global.max_heap_table_size = DEFAULT;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16777216
+SET @@session.max_heap_table_size = 1677721610;
+SET @@session.max_heap_table_size = DEFAULT;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16777216
+'#--------------------FN_DYNVARS_077_02-------------------------#'
+SET @@global.max_heap_table_size = DEFAULT;
+SELECT @@global.max_heap_table_size = 16777216;
+@@global.max_heap_table_size = 16777216
+1
+SET @@session.max_heap_table_size = DEFAULT;
+SELECT @@session.max_heap_table_size = 16777216;
+@@session.max_heap_table_size = 16777216
+1
+'#--------------------FN_DYNVARS_077_03-------------------------#'
+SET @@global.max_heap_table_size = 16384;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 16385;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 65535;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+64512
+SET @@global.max_heap_table_size = 4294967294;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+SET @@global.max_heap_table_size = 4294967295;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294966272
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#--------------------FN_DYNVARS_077_04-------------------------#'
+SET @@session.max_heap_table_size = 16384;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 16385;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 65535;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+64512
+SET @@session.max_heap_table_size = 4294967294;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+SET @@session.max_heap_table_size = 4294967295;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294966272
+'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
+'#------------------FN_DYNVARS_077_05-----------------------#'
+SET @@global.max_heap_table_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 1024;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '1024'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 16383;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '16383'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = 4294967296;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294967296
+SET @@global.max_heap_table_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294967296
+SET @@global.max_heap_table_size = test;
+ERROR 42000: Incorrect argument type to variable 'max_heap_table_size'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+4294967296
+SET @@session.max_heap_table_size = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 16383;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '16383'
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+16384
+SET @@session.max_heap_table_size = 4294967296;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+4294967296
+SET @@session.max_heap_table_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.max_heap_table_size = 10737418241;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+10737418240
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.max_heap_table_size = test;
+ERROR 42000: Incorrect argument type to variable 'max_heap_table_size'
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+10737418240
+'#------------------FN_DYNVARS_077_06-----------------------#'
+SELECT @@global.max_heap_table_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_heap_table_size';
+@@global.max_heap_table_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_077_07-----------------------#'
+SELECT @@session.max_heap_table_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_heap_table_size';
+@@session.max_heap_table_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_077_08-----------------------#'
+SET @@global.max_heap_table_size = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '1'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+SET @@global.max_heap_table_size = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_heap_table_size value: '0'
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+16384
+'#---------------------FN_DYNVARS_077_09----------------------#'
+SET @@global.max_heap_table_size = 163845;
+SELECT @@max_heap_table_size = @@global.max_heap_table_size;
+@@max_heap_table_size = @@global.max_heap_table_size
+0
+'#---------------------FN_DYNVARS_077_10----------------------#'
+SET @@max_heap_table_size = 16777216;
+SELECT @@max_heap_table_size = @@local.max_heap_table_size;
+@@max_heap_table_size = @@local.max_heap_table_size
+1
+SELECT @@local.max_heap_table_size = @@session.max_heap_table_size;
+@@local.max_heap_table_size = @@session.max_heap_table_size
+1
+'#---------------------FN_DYNVARS_077_11----------------------#'
+SET max_heap_table_size = 316777216;
+SELECT @@max_heap_table_size;
+@@max_heap_table_size
+316776448
+SELECT local.max_heap_table_size;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_heap_table_size;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_heap_table_size = @@session.max_heap_table_size;
+ERROR 42S22: Unknown column 'max_heap_table_size' in 'field list'
+SET @@global.max_heap_table_size = @start_global_value;
+SELECT @@global.max_heap_table_size;
+@@global.max_heap_table_size
+1048576
+SET @@session.max_heap_table_size = @start_session_value;
+SELECT @@session.max_heap_table_size;
+@@session.max_heap_table_size
+1048576
diff -Nrup a/mysql-test/r/max_seeks_for_key_basic.result
b/mysql-test/r/max_seeks_for_key_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_seeks_for_key_basic.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,180 @@
+SET @start_global_value = @@global.max_seeks_for_key;
+SELECT @start_global_value;
+@start_global_value
+4294967295
+SET @start_session_value = @@session.max_seeks_for_key;
+SELECT @start_session_value;
+@start_session_value
+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
+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
+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
+1
+SET @@session.max_seeks_for_key = DEFAULT;
+SELECT @@session.max_seeks_for_key = 4294967295;
+@@session.max_seeks_for_key = 4294967295
+1
+'#--------------------FN_DYNVARS_083_03-------------------------#'
+SET @@global.max_seeks_for_key = 1;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = 2;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+2
+SET @@global.max_seeks_for_key = 65536;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+65536
+SET @@global.max_seeks_for_key = 4294967295;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+4294967295
+SET @@global.max_seeks_for_key = 4294967294;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+4294967294
+'#--------------------FN_DYNVARS_083_04-------------------------#'
+SET @@session.max_seeks_for_key = 1;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+1
+SET @@session.max_seeks_for_key = 2;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+2
+SET @@session.max_seeks_for_key = 4294967295;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+4294967295
+SET @@session.max_seeks_for_key = 4294967294;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+4294967294
+SET @@session.max_seeks_for_key = 65535;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+65535
+'#------------------FN_DYNVARS_083_05-----------------------#'
+SET @@global.max_seeks_for_key = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+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
+4294967295
+SET @@global.max_seeks_for_key = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+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
+4294967295
+SET @@session.max_seeks_for_key = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+1
+SET @@session.max_seeks_for_key = -2;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+1
+SET @@session.max_seeks_for_key = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+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
+4294967295
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+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
+4294967295
+'#------------------FN_DYNVARS_083_06-----------------------#'
+SELECT @@global.max_seeks_for_key = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_seeks_for_key';
+@@global.max_seeks_for_key = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_083_07-----------------------#'
+SELECT @@session.max_seeks_for_key = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_seeks_for_key';
+@@session.max_seeks_for_key = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_083_08-----------------------#'
+SET @@global.max_seeks_for_key = TRUE;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+'#---------------------FN_DYNVARS_083_09----------------------#'
+SET @@global.max_seeks_for_key = 10;
+SELECT @@max_seeks_for_key = @@global.max_seeks_for_key;
+@@max_seeks_for_key = @@global.max_seeks_for_key
+0
+'#---------------------FN_DYNVARS_083_10----------------------#'
+SET @@max_seeks_for_key = 100;
+SELECT @@max_seeks_for_key = @@local.max_seeks_for_key;
+@@max_seeks_for_key = @@local.max_seeks_for_key
+1
+SELECT @@local.max_seeks_for_key = @@session.max_seeks_for_key;
+@@local.max_seeks_for_key = @@session.max_seeks_for_key
+1
+'#---------------------FN_DYNVARS_083_11----------------------#'
+SET max_seeks_for_key = 1;
+SELECT @@max_seeks_for_key;
+@@max_seeks_for_key
+1
+SELECT local.max_seeks_for_key;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_seeks_for_key;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_seeks_for_key = @@session.max_seeks_for_key;
+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
+4294967295
+SET @@session.max_seeks_for_key = @start_session_value;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+4294967295
diff -Nrup a/mysql-test/r/max_seeks_for_key_basic_64.result
b/mysql-test/r/max_seeks_for_key_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_seeks_for_key_basic_64.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,176 @@
+SET @start_global_value = @@global.max_seeks_for_key;
+SELECT @start_global_value;
+@start_global_value
+18446744073709551615
+SET @start_session_value = @@session.max_seeks_for_key;
+SELECT @start_session_value;
+@start_session_value
+18446744073709551615
+'#--------------------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
+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
+'#--------------------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
+SET @@session.max_seeks_for_key = DEFAULT;
+SELECT @@session.max_seeks_for_key = 4294967295;
+@@session.max_seeks_for_key = 4294967295
+0
+'#--------------------FN_DYNVARS_083_03-------------------------#'
+SET @@global.max_seeks_for_key = 1;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = 2;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+2
+SET @@global.max_seeks_for_key = 65536;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+65536
+SET @@global.max_seeks_for_key = 4294967295;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+4294967295
+SET @@global.max_seeks_for_key = 4294967294;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+4294967294
+'#--------------------FN_DYNVARS_083_04-------------------------#'
+SET @@session.max_seeks_for_key = 1;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+1
+SET @@session.max_seeks_for_key = 2;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+2
+SET @@session.max_seeks_for_key = 4294967295;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+4294967295
+SET @@session.max_seeks_for_key = 4294967294;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+4294967294
+SET @@session.max_seeks_for_key = 65535;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+65535
+'#------------------FN_DYNVARS_083_05-----------------------#'
+SET @@global.max_seeks_for_key = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = 4294967296;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+4294967296
+SET @@global.max_seeks_for_key = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+4294967296
+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
+SET @@session.max_seeks_for_key = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+1
+SET @@session.max_seeks_for_key = -2;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+1
+SET @@session.max_seeks_for_key = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.max_seeks_for_key = 4294967296;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+4294967296
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+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
+'#------------------FN_DYNVARS_083_06-----------------------#'
+SELECT @@global.max_seeks_for_key = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_seeks_for_key';
+@@global.max_seeks_for_key = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_083_07-----------------------#'
+SELECT @@session.max_seeks_for_key = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_seeks_for_key';
+@@session.max_seeks_for_key = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_083_08-----------------------#'
+SET @@global.max_seeks_for_key = TRUE;
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+SET @@global.max_seeks_for_key = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
+SELECT @@global.max_seeks_for_key;
+@@global.max_seeks_for_key
+1
+'#---------------------FN_DYNVARS_083_09----------------------#'
+SET @@global.max_seeks_for_key = 10;
+SELECT @@max_seeks_for_key = @@global.max_seeks_for_key;
+@@max_seeks_for_key = @@global.max_seeks_for_key
+0
+'#---------------------FN_DYNVARS_083_10----------------------#'
+SET @@max_seeks_for_key = 100;
+SELECT @@max_seeks_for_key = @@local.max_seeks_for_key;
+@@max_seeks_for_key = @@local.max_seeks_for_key
+1
+SELECT @@local.max_seeks_for_key = @@session.max_seeks_for_key;
+@@local.max_seeks_for_key = @@session.max_seeks_for_key
+1
+'#---------------------FN_DYNVARS_083_11----------------------#'
+SET max_seeks_for_key = 1;
+SELECT @@max_seeks_for_key;
+@@max_seeks_for_key
+1
+SELECT local.max_seeks_for_key;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_seeks_for_key;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_seeks_for_key = @@session.max_seeks_for_key;
+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
+SET @@session.max_seeks_for_key = @start_session_value;
+SELECT @@session.max_seeks_for_key;
+@@session.max_seeks_for_key
+18446744073709551615
diff -Nrup a/mysql-test/r/max_tmp_tables_basic.result
b/mysql-test/r/max_tmp_tables_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_tmp_tables_basic.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,197 @@
+SET @start_global_value = @@global.max_tmp_tables;
+SELECT @start_global_value;
+@start_global_value
+32
+SET @start_session_value = @@session.max_tmp_tables;
+SELECT @start_session_value;
+@start_session_value
+32
+'#--------------------FN_DYNVARS_086_01-------------------------#'
+SET @@global.max_tmp_tables = 1000;
+SET @@global.max_tmp_tables = DEFAULT;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+32
+SET @@session.max_tmp_tables = 1000;
+SET @@session.max_tmp_tables = DEFAULT;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+32
+'#--------------------FN_DYNVARS_086_02-------------------------#'
+SET @@global.max_tmp_tables = DEFAULT;
+SELECT @@global.max_tmp_tables = 32;
+@@global.max_tmp_tables = 32
+1
+SET @@session.max_tmp_tables = DEFAULT;
+SELECT @@session.max_tmp_tables = 32;
+@@session.max_tmp_tables = 32
+1
+'#--------------------FN_DYNVARS_086_03-------------------------#'
+SET @@global.max_tmp_tables = 1;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+SET @@global.max_tmp_tables = 2;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+2
+SET @@global.max_tmp_tables = 65536;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+65536
+SET @@global.max_tmp_tables = 4294967295;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+4294967295
+SET @@global.max_tmp_tables = 4294967294;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+4294967294
+'#--------------------FN_DYNVARS_086_04-------------------------#'
+SET @@session.max_tmp_tables = 1;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+1
+SET @@session.max_tmp_tables = 2;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+2
+SET @@session.max_tmp_tables = 65536;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+65536
+SET @@session.max_tmp_tables = 4294967295;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+4294967295
+SET @@session.max_tmp_tables = 4294967294;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+4294967294
+'#------------------FN_DYNVARS_086_05-----------------------#'
+SET @@global.max_tmp_tables = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+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
+4294967295
+SET @@global.max_tmp_tables = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+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
+4294967295
+SET @@global.max_tmp_tables = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+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
+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
+4294967295
+SET @@session.max_tmp_tables = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+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
+4294967295
+SET @@session.max_tmp_tables = -001;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+1
+SET @@session.max_tmp_tables = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+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
+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
+4294967295
+'#------------------FN_DYNVARS_086_06-----------------------#'
+SELECT @@global.max_tmp_tables = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_tmp_tables';
+@@global.max_tmp_tables = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_086_07-----------------------#'
+SELECT @@session.max_tmp_tables = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_tmp_tables';
+@@session.max_tmp_tables = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_086_08-----------------------#'
+SET @@global.max_tmp_tables = TRUE;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+SET @@global.max_tmp_tables = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+'#---------------------FN_DYNVARS_086_09----------------------#'
+SET @@global.max_tmp_tables = 20;
+SELECT @@max_tmp_tables = @@global.max_tmp_tables;
+@@max_tmp_tables = @@global.max_tmp_tables
+0
+'#---------------------FN_DYNVARS_086_10----------------------#'
+SET @@max_tmp_tables = 255;
+SELECT @@max_tmp_tables = @@local.max_tmp_tables;
+@@max_tmp_tables = @@local.max_tmp_tables
+1
+SELECT @@local.max_tmp_tables = @@session.max_tmp_tables;
+@@local.max_tmp_tables = @@session.max_tmp_tables
+1
+'#---------------------FN_DYNVARS_086_11----------------------#'
+SET max_tmp_tables = 102;
+SELECT @@max_tmp_tables;
+@@max_tmp_tables
+102
+SELECT local.max_tmp_tables;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_tmp_tables;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_tmp_tables = @@session.max_tmp_tables;
+ERROR 42S22: Unknown column 'max_tmp_tables' in 'field list'
+SET @@global.max_tmp_tables = @start_global_value;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+32
+SET @@session.max_tmp_tables = @start_session_value;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+32
diff -Nrup a/mysql-test/r/max_tmp_tables_basic_64.result
b/mysql-test/r/max_tmp_tables_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_tmp_tables_basic_64.result 2008-05-06 15:00:33 +02:00
@@ -0,0 +1,187 @@
+SET @start_global_value = @@global.max_tmp_tables;
+SELECT @start_global_value;
+@start_global_value
+32
+SET @start_session_value = @@session.max_tmp_tables;
+SELECT @start_session_value;
+@start_session_value
+32
+'#--------------------FN_DYNVARS_086_01-------------------------#'
+SET @@global.max_tmp_tables = 1000;
+SET @@global.max_tmp_tables = DEFAULT;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+32
+SET @@session.max_tmp_tables = 1000;
+SET @@session.max_tmp_tables = DEFAULT;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+32
+'#--------------------FN_DYNVARS_086_02-------------------------#'
+SET @@global.max_tmp_tables = DEFAULT;
+SELECT @@global.max_tmp_tables = 32;
+@@global.max_tmp_tables = 32
+1
+SET @@session.max_tmp_tables = DEFAULT;
+SELECT @@session.max_tmp_tables = 32;
+@@session.max_tmp_tables = 32
+1
+'#--------------------FN_DYNVARS_086_03-------------------------#'
+SET @@global.max_tmp_tables = 1;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+SET @@global.max_tmp_tables = 2;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+2
+SET @@global.max_tmp_tables = 65536;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+65536
+SET @@global.max_tmp_tables = 4294967295;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+4294967295
+SET @@global.max_tmp_tables = 4294967294;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+4294967294
+'#--------------------FN_DYNVARS_086_04-------------------------#'
+SET @@session.max_tmp_tables = 1;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+1
+SET @@session.max_tmp_tables = 2;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+2
+SET @@session.max_tmp_tables = 65536;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+65536
+SET @@session.max_tmp_tables = 4294967295;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+4294967295
+SET @@session.max_tmp_tables = 4294967294;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+4294967294
+'#------------------FN_DYNVARS_086_05-----------------------#'
+SET @@global.max_tmp_tables = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+SET @@global.max_tmp_tables = 4294967296;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+4294967296
+SET @@global.max_tmp_tables = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+SET @@global.max_tmp_tables = 429496729500;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+429496729500
+SET @@global.max_tmp_tables = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+429496729500
+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
+SET @@session.max_tmp_tables = 4294967296;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+4294967296
+SET @@session.max_tmp_tables = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+1
+SET @@session.max_tmp_tables = 429496729500;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+429496729500
+SET @@session.max_tmp_tables = -001;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+1
+SET @@session.max_tmp_tables = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.max_tmp_tables = 10737418241;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+10737418241
+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
+'#------------------FN_DYNVARS_086_06-----------------------#'
+SELECT @@global.max_tmp_tables = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_tmp_tables';
+@@global.max_tmp_tables = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_086_07-----------------------#'
+SELECT @@session.max_tmp_tables = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_tmp_tables';
+@@session.max_tmp_tables = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_086_08-----------------------#'
+SET @@global.max_tmp_tables = TRUE;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+SET @@global.max_tmp_tables = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_tmp_tables value: '0'
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+1
+'#---------------------FN_DYNVARS_086_09----------------------#'
+SET @@global.max_tmp_tables = 20;
+SELECT @@max_tmp_tables = @@global.max_tmp_tables;
+@@max_tmp_tables = @@global.max_tmp_tables
+0
+'#---------------------FN_DYNVARS_086_10----------------------#'
+SET @@max_tmp_tables = 255;
+SELECT @@max_tmp_tables = @@local.max_tmp_tables;
+@@max_tmp_tables = @@local.max_tmp_tables
+1
+SELECT @@local.max_tmp_tables = @@session.max_tmp_tables;
+@@local.max_tmp_tables = @@session.max_tmp_tables
+1
+'#---------------------FN_DYNVARS_086_11----------------------#'
+SET max_tmp_tables = 102;
+SELECT @@max_tmp_tables;
+@@max_tmp_tables
+102
+SELECT local.max_tmp_tables;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_tmp_tables;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_tmp_tables = @@session.max_tmp_tables;
+ERROR 42S22: Unknown column 'max_tmp_tables' in 'field list'
+SET @@global.max_tmp_tables = @start_global_value;
+SELECT @@global.max_tmp_tables;
+@@global.max_tmp_tables
+32
+SET @@session.max_tmp_tables = @start_session_value;
+SELECT @@session.max_tmp_tables;
+@@session.max_tmp_tables
+32
diff -Nrup a/mysql-test/r/max_write_lock_count_basic.result
b/mysql-test/r/max_write_lock_count_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_write_lock_count_basic.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,108 @@
+SET @start_global_value = @@global.max_write_lock_count;
+SELECT @start_global_value;
+@start_global_value
+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
+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
+1
+'#--------------------FN_DYNVARS_088_03-------------------------#'
+SET @@global.max_write_lock_count = 1;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+SET @@global.max_write_lock_count = 2;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+2
+SET @@global.max_write_lock_count = 65536;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+65536
+SET @@global.max_write_lock_count = 4294967295;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+4294967295
+SET @@global.max_write_lock_count = 4294967294;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+4294967294
+'#------------------FN_DYNVARS_088_04-----------------------#'
+SET @@global.max_write_lock_count = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_write_lock_count value: '0'
+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
+4294967295
+SET @@global.max_write_lock_count = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_write_lock_count value: '0'
+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
+4294967295
+SET @@global.max_write_lock_count = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+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
+4294967295
+'#------------------FN_DYNVARS_088_05-----------------------#'
+SELECT @@global.max_write_lock_count = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_write_lock_count';
+@@global.max_write_lock_count = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_088_06-----------------------#'
+SET @@global.max_write_lock_count = TRUE;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+SET @@global.max_write_lock_count = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_write_lock_count value: '0'
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+'#---------------------FN_DYNVARS_088_07----------------------#'
+SET @@global.max_write_lock_count = 20;
+SELECT @@max_write_lock_count = @@global.max_write_lock_count;
+@@max_write_lock_count = @@global.max_write_lock_count
+1
+'#---------------------FN_DYNVARS_088_08----------------------#'
+SET @@global.max_write_lock_count = 102;
+SELECT @@max_write_lock_count;
+@@max_write_lock_count
+102
+SELECT local.max_write_lock_count;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT global.max_write_lock_count;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT max_write_lock_count = @@global.max_write_lock_count;
+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
+4294967295
diff -Nrup a/mysql-test/r/max_write_lock_count_basic_64.result
b/mysql-test/r/max_write_lock_count_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/max_write_lock_count_basic_64.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,104 @@
+SET @start_global_value = @@global.max_write_lock_count;
+SELECT @start_global_value;
+@start_global_value
+18446744073709551615
+'#--------------------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
+'#--------------------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
+'#--------------------FN_DYNVARS_088_03-------------------------#'
+SET @@global.max_write_lock_count = 1;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+SET @@global.max_write_lock_count = 2;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+2
+SET @@global.max_write_lock_count = 65536;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+65536
+SET @@global.max_write_lock_count = 4294967295;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+4294967295
+SET @@global.max_write_lock_count = 4294967294;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+4294967294
+'#------------------FN_DYNVARS_088_04-----------------------#'
+SET @@global.max_write_lock_count = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_write_lock_count value: '0'
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+SET @@global.max_write_lock_count = 4294967296;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+4294967296
+SET @@global.max_write_lock_count = -1;
+Warnings:
+Warning 1292 Truncated incorrect max_write_lock_count value: '0'
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+SET @@global.max_write_lock_count = 429496729500;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+429496729500
+SET @@global.max_write_lock_count = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+429496729500
+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
+'#------------------FN_DYNVARS_088_05-----------------------#'
+SELECT @@global.max_write_lock_count = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_write_lock_count';
+@@global.max_write_lock_count = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_088_06-----------------------#'
+SET @@global.max_write_lock_count = TRUE;
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+SET @@global.max_write_lock_count = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_write_lock_count value: '0'
+SELECT @@global.max_write_lock_count;
+@@global.max_write_lock_count
+1
+'#---------------------FN_DYNVARS_088_07----------------------#'
+SET @@global.max_write_lock_count = 20;
+SELECT @@max_write_lock_count = @@global.max_write_lock_count;
+@@max_write_lock_count = @@global.max_write_lock_count
+1
+'#---------------------FN_DYNVARS_088_08----------------------#'
+SET @@global.max_write_lock_count = 102;
+SELECT @@max_write_lock_count;
+@@max_write_lock_count
+102
+SELECT local.max_write_lock_count;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT global.max_write_lock_count;
+ERROR 42S02: Unknown table 'global' in field list
+SELECT max_write_lock_count = @@global.max_write_lock_count;
+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
diff -Nrup a/mysql-test/r/min_examined_row_limit_basic.result
b/mysql-test/r/min_examined_row_limit_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/min_examined_row_limit_basic.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,180 @@
+SET @start_global_value = @@global.min_examined_row_limit;
+SELECT @start_global_value;
+@start_global_value
+0
+SET @start_session_value = @@session.min_examined_row_limit;
+SELECT @start_session_value;
+@start_session_value
+0
+'#--------------------FN_DYNVARS_089_01-------------------------#'
+SET @@global.min_examined_row_limit = 100;
+SET @@global.min_examined_row_limit = DEFAULT;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = 200;
+SET @@session.min_examined_row_limit = DEFAULT;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
+'#--------------------FN_DYNVARS_089_02-------------------------#'
+SET @@global.min_examined_row_limit = DEFAULT;
+SELECT @@global.min_examined_row_limit = 0;
+@@global.min_examined_row_limit = 0
+1
+SET @@session.min_examined_row_limit = DEFAULT;
+SELECT @@session.min_examined_row_limit = 0;
+@@session.min_examined_row_limit = 0
+1
+'#--------------------FN_DYNVARS_089_03-------------------------#'
+SET @@global.min_examined_row_limit = 0;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@global.min_examined_row_limit = 1;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+1
+SET @@global.min_examined_row_limit = 60020;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+60020
+SET @@global.min_examined_row_limit = 65535;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+65535
+SET @@global.min_examined_row_limit = 4294967295;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+4294967295
+SET @@global.min_examined_row_limit = 4294967294;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+4294967294
+'#--------------------FN_DYNVARS_089_04-------------------------#'
+SET @@session.min_examined_row_limit = 0;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = 1;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+1
+SET @@session.min_examined_row_limit = 50050;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+50050
+SET @@session.min_examined_row_limit = 65535;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+65535
+SET @@session.min_examined_row_limit = 4294967295;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+4294967295
+SET @@session.min_examined_row_limit = 4294967294;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+4294967294
+'#------------------FN_DYNVARS_089_05-----------------------#'
+SET @@global.min_examined_row_limit = 429496726;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+429496726
+SET @@global.min_examined_row_limit = -1024;
+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
+4294967295
+SET @@global.min_examined_row_limit = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+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
+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
+4294967295
+SET @@session.min_examined_row_limit = -1;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+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
+4294967295
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+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
+4294967295
+'#------------------FN_DYNVARS_089_06-----------------------#'
+SELECT @@global.min_examined_row_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='min_examined_row_limit';
+@@global.min_examined_row_limit = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_089_07-----------------------#'
+SELECT @@session.min_examined_row_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='min_examined_row_limit';
+@@session.min_examined_row_limit = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_089_08-----------------------#'
+SET @@global.min_examined_row_limit = TRUE;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+1
+SET @@global.min_examined_row_limit = FALSE;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+'#---------------------FN_DYNVARS_089_09----------------------#'
+SET @@global.min_examined_row_limit = 10;
+SELECT @@min_examined_row_limit = @@global.min_examined_row_limit;
+@@min_examined_row_limit = @@global.min_examined_row_limit
+0
+'#---------------------FN_DYNVARS_089_10----------------------#'
+SET @@min_examined_row_limit = 100;
+SELECT @@min_examined_row_limit = @@local.min_examined_row_limit;
+@@min_examined_row_limit = @@local.min_examined_row_limit
+1
+SELECT @@local.min_examined_row_limit = @@session.min_examined_row_limit;
+@@local.min_examined_row_limit = @@session.min_examined_row_limit
+1
+'#---------------------FN_DYNVARS_089_11----------------------#'
+SET min_examined_row_limit = 1;
+SELECT @@min_examined_row_limit;
+@@min_examined_row_limit
+1
+SELECT local.min_examined_row_limit;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.min_examined_row_limit;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT min_examined_row_limit = @@session.min_examined_row_limit;
+ERROR 42S22: Unknown column 'min_examined_row_limit' in 'field list'
+SET @@global.min_examined_row_limit = @start_global_value;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = @start_session_value;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
diff -Nrup a/mysql-test/r/min_examined_row_limit_basic_64.result
b/mysql-test/r/min_examined_row_limit_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/min_examined_row_limit_basic_64.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,174 @@
+SET @start_global_value = @@global.min_examined_row_limit;
+SELECT @start_global_value;
+@start_global_value
+0
+SET @start_session_value = @@session.min_examined_row_limit;
+SELECT @start_session_value;
+@start_session_value
+0
+'#--------------------FN_DYNVARS_089_01-------------------------#'
+SET @@global.min_examined_row_limit = 100;
+SET @@global.min_examined_row_limit = DEFAULT;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = 200;
+SET @@session.min_examined_row_limit = DEFAULT;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
+'#--------------------FN_DYNVARS_089_02-------------------------#'
+SET @@global.min_examined_row_limit = DEFAULT;
+SELECT @@global.min_examined_row_limit = 0;
+@@global.min_examined_row_limit = 0
+1
+SET @@session.min_examined_row_limit = DEFAULT;
+SELECT @@session.min_examined_row_limit = 0;
+@@session.min_examined_row_limit = 0
+1
+'#--------------------FN_DYNVARS_089_03-------------------------#'
+SET @@global.min_examined_row_limit = 0;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@global.min_examined_row_limit = 1;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+1
+SET @@global.min_examined_row_limit = 60020;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+60020
+SET @@global.min_examined_row_limit = 65535;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+65535
+SET @@global.min_examined_row_limit = 4294967295;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+4294967295
+SET @@global.min_examined_row_limit = 4294967294;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+4294967294
+'#--------------------FN_DYNVARS_089_04-------------------------#'
+SET @@session.min_examined_row_limit = 0;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = 1;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+1
+SET @@session.min_examined_row_limit = 50050;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+50050
+SET @@session.min_examined_row_limit = 65535;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+65535
+SET @@session.min_examined_row_limit = 4294967295;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+4294967295
+SET @@session.min_examined_row_limit = 4294967294;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+4294967294
+'#------------------FN_DYNVARS_089_05-----------------------#'
+SET @@global.min_examined_row_limit = 429496726;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+429496726
+SET @@global.min_examined_row_limit = -1024;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@global.min_examined_row_limit = 429496729500;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+429496729500
+SET @@global.min_examined_row_limit = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+429496729500
+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
+SET @@session.min_examined_row_limit = 4294967296;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+4294967296
+SET @@session.min_examined_row_limit = -1;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.min_examined_row_limit = 4294967295021;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+4294967295021
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+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
+'#------------------FN_DYNVARS_089_06-----------------------#'
+SELECT @@global.min_examined_row_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='min_examined_row_limit';
+@@global.min_examined_row_limit = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_089_07-----------------------#'
+SELECT @@session.min_examined_row_limit = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='min_examined_row_limit';
+@@session.min_examined_row_limit = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_089_08-----------------------#'
+SET @@global.min_examined_row_limit = TRUE;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+1
+SET @@global.min_examined_row_limit = FALSE;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+'#---------------------FN_DYNVARS_089_09----------------------#'
+SET @@global.min_examined_row_limit = 10;
+SELECT @@min_examined_row_limit = @@global.min_examined_row_limit;
+@@min_examined_row_limit = @@global.min_examined_row_limit
+0
+'#---------------------FN_DYNVARS_089_10----------------------#'
+SET @@min_examined_row_limit = 100;
+SELECT @@min_examined_row_limit = @@local.min_examined_row_limit;
+@@min_examined_row_limit = @@local.min_examined_row_limit
+1
+SELECT @@local.min_examined_row_limit = @@session.min_examined_row_limit;
+@@local.min_examined_row_limit = @@session.min_examined_row_limit
+1
+'#---------------------FN_DYNVARS_089_11----------------------#'
+SET min_examined_row_limit = 1;
+SELECT @@min_examined_row_limit;
+@@min_examined_row_limit
+1
+SELECT local.min_examined_row_limit;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.min_examined_row_limit;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT min_examined_row_limit = @@session.min_examined_row_limit;
+ERROR 42S22: Unknown column 'min_examined_row_limit' in 'field list'
+SET @@global.min_examined_row_limit = @start_global_value;
+SELECT @@global.min_examined_row_limit;
+@@global.min_examined_row_limit
+0
+SET @@session.min_examined_row_limit = @start_session_value;
+SELECT @@session.min_examined_row_limit;
+@@session.min_examined_row_limit
+0
diff -Nrup a/mysql-test/r/multi_range_count_basic.result
b/mysql-test/r/multi_range_count_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/multi_range_count_basic.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,192 @@
+SET @start_global_value = @@global.multi_range_count;
+SELECT @start_global_value;
+@start_global_value
+256
+SET @start_session_value = @@session.multi_range_count;
+SELECT @start_session_value;
+@start_session_value
+256
+'#--------------------FN_DYNVARS_090_01-------------------------#'
+SET @@global.multi_range_count = 100;
+SET @@global.multi_range_count = DEFAULT;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+256
+SET @@session.multi_range_count = 200;
+SET @@session.multi_range_count = DEFAULT;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+256
+'#--------------------FN_DYNVARS_090_02-------------------------#'
+SET @@global.multi_range_count = DEFAULT;
+SELECT @@global.multi_range_count = 256;
+@@global.multi_range_count = 256
+1
+SET @@session.multi_range_count = DEFAULT;
+SELECT @@session.multi_range_count = 256;
+@@session.multi_range_count = 256
+1
+'#--------------------FN_DYNVARS_090_03-------------------------#'
+SET @@global.multi_range_count = 1;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = 60020;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+60020
+SET @@global.multi_range_count = 65535;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+65535
+SET @@global.multi_range_count = 4294967295;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967295
+SET @@global.multi_range_count = 4294967294;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967294
+'#--------------------FN_DYNVARS_090_04-------------------------#'
+SET @@session.multi_range_count = 1;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+1
+SET @@session.multi_range_count = 50050;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+50050
+SET @@session.multi_range_count = 65535;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+65535
+SET @@session.multi_range_count = 4294967295;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295
+SET @@session.multi_range_count = 4294967294;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967294
+'#------------------FN_DYNVARS_090_05-----------------------#'
+SET @@global.multi_range_count = 0;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = 4294967296;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '4294967296'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967295
+SET @@global.multi_range_count = -1024;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = 429496729500;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '429496729500'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967295
+SET @@global.multi_range_count = 65530.34;
+ERROR 42000: Incorrect argument type to variable 'multi_range_count'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967295
+SET @@global.multi_range_count = test;
+ERROR 42000: Incorrect argument type to variable 'multi_range_count'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967295
+SET @@session.multi_range_count = 0;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+1
+SET @@session.multi_range_count = 4294967296;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '4294967296'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295
+SET @@session.multi_range_count = -1;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+1
+SET @@session.multi_range_count = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.multi_range_count = 4294967295021;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '4294967295021'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.multi_range_count = test;
+ERROR 42000: Incorrect argument type to variable 'multi_range_count'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295
+'#------------------FN_DYNVARS_090_06-----------------------#'
+SELECT @@global.multi_range_count = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='multi_range_count';
+@@global.multi_range_count = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_090_07-----------------------#'
+SELECT @@session.multi_range_count = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='multi_range_count';
+@@session.multi_range_count = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_090_08-----------------------#'
+SET @@global.multi_range_count = TRUE;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+'#---------------------FN_DYNVARS_090_09----------------------#'
+SET @@global.multi_range_count = 10;
+SELECT @@multi_range_count = @@global.multi_range_count;
+@@multi_range_count = @@global.multi_range_count
+0
+'#---------------------FN_DYNVARS_090_10----------------------#'
+SET @@multi_range_count = 100;
+SELECT @@multi_range_count = @@local.multi_range_count;
+@@multi_range_count = @@local.multi_range_count
+1
+SELECT @@local.multi_range_count = @@session.multi_range_count;
+@@local.multi_range_count = @@session.multi_range_count
+1
+'#---------------------FN_DYNVARS_090_11----------------------#'
+SET multi_range_count = 1;
+SELECT @@multi_range_count;
+@@multi_range_count
+1
+SELECT local.multi_range_count;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.multi_range_count;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT multi_range_count = @@session.multi_range_count;
+ERROR 42S22: Unknown column 'multi_range_count' in 'field list'
+SET @@global.multi_range_count = @start_global_value;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+256
+SET @@session.multi_range_count = @start_session_value;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+256
diff -Nrup a/mysql-test/r/multi_range_count_basic_64.result
b/mysql-test/r/multi_range_count_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/multi_range_count_basic_64.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,184 @@
+SET @start_global_value = @@global.multi_range_count;
+SELECT @start_global_value;
+@start_global_value
+256
+SET @start_session_value = @@session.multi_range_count;
+SELECT @start_session_value;
+@start_session_value
+256
+'#--------------------FN_DYNVARS_090_01-------------------------#'
+SET @@global.multi_range_count = 100;
+SET @@global.multi_range_count = DEFAULT;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+256
+SET @@session.multi_range_count = 200;
+SET @@session.multi_range_count = DEFAULT;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+256
+'#--------------------FN_DYNVARS_090_02-------------------------#'
+SET @@global.multi_range_count = DEFAULT;
+SELECT @@global.multi_range_count = 256;
+@@global.multi_range_count = 256
+1
+SET @@session.multi_range_count = DEFAULT;
+SELECT @@session.multi_range_count = 256;
+@@session.multi_range_count = 256
+1
+'#--------------------FN_DYNVARS_090_03-------------------------#'
+SET @@global.multi_range_count = 1;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = 60020;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+60020
+SET @@global.multi_range_count = 65535;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+65535
+SET @@global.multi_range_count = 4294967295;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967295
+SET @@global.multi_range_count = 4294967294;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967294
+'#--------------------FN_DYNVARS_090_04-------------------------#'
+SET @@session.multi_range_count = 1;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+1
+SET @@session.multi_range_count = 50050;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+50050
+SET @@session.multi_range_count = 65535;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+65535
+SET @@session.multi_range_count = 4294967295;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295
+SET @@session.multi_range_count = 4294967294;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967294
+'#------------------FN_DYNVARS_090_05-----------------------#'
+SET @@global.multi_range_count = 0;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = 4294967296;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+4294967296
+SET @@global.multi_range_count = -1024;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = 429496729500;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+429496729500
+SET @@global.multi_range_count = 65530.34;
+ERROR 42000: Incorrect argument type to variable 'multi_range_count'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+429496729500
+SET @@global.multi_range_count = test;
+ERROR 42000: Incorrect argument type to variable 'multi_range_count'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+429496729500
+SET @@session.multi_range_count = 0;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+1
+SET @@session.multi_range_count = 4294967296;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967296
+SET @@session.multi_range_count = -1;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+1
+SET @@session.multi_range_count = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SET @@session.multi_range_count = 4294967295021;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295021
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.multi_range_count = test;
+ERROR 42000: Incorrect argument type to variable 'multi_range_count'
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+4294967295021
+'#------------------FN_DYNVARS_090_06-----------------------#'
+SELECT @@global.multi_range_count = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='multi_range_count';
+@@global.multi_range_count = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_090_07-----------------------#'
+SELECT @@session.multi_range_count = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='multi_range_count';
+@@session.multi_range_count = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_090_08-----------------------#'
+SET @@global.multi_range_count = TRUE;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+SET @@global.multi_range_count = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect multi_range_count value: '0'
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+1
+'#---------------------FN_DYNVARS_090_09----------------------#'
+SET @@global.multi_range_count = 10;
+SELECT @@multi_range_count = @@global.multi_range_count;
+@@multi_range_count = @@global.multi_range_count
+0
+'#---------------------FN_DYNVARS_090_10----------------------#'
+SET @@multi_range_count = 100;
+SELECT @@multi_range_count = @@local.multi_range_count;
+@@multi_range_count = @@local.multi_range_count
+1
+SELECT @@local.multi_range_count = @@session.multi_range_count;
+@@local.multi_range_count = @@session.multi_range_count
+1
+'#---------------------FN_DYNVARS_090_11----------------------#'
+SET multi_range_count = 1;
+SELECT @@multi_range_count;
+@@multi_range_count
+1
+SELECT local.multi_range_count;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.multi_range_count;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT multi_range_count = @@session.multi_range_count;
+ERROR 42S22: Unknown column 'multi_range_count' in 'field list'
+SET @@global.multi_range_count = @start_global_value;
+SELECT @@global.multi_range_count;
+@@global.multi_range_count
+256
+SET @@session.multi_range_count = @start_session_value;
+SELECT @@session.multi_range_count;
+@@session.multi_range_count
+256
diff -Nrup a/mysql-test/r/myisam_max_sort_file_size_basic.result
b/mysql-test/r/myisam_max_sort_file_size_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/myisam_max_sort_file_size_basic.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,114 @@
+SET @start_global_value = @@global.myisam_max_sort_file_size;
+SELECT @start_global_value;
+@start_global_value
+2147483647
+'#--------------------FN_DYNVARS_094_01-------------------------#'
+SET @@global.myisam_max_sort_file_size = 500000;
+SET @@global.myisam_max_sort_file_size = DEFAULT;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+2146435072
+'Bug# 34876: This variable has invalid default value as compared to documentation';
+'#--------------------FN_DYNVARS_094_02-------------------------#'
+SET @@global.myisam_max_sort_file_size = DEFAULT;
+SELECT @@global.myisam_max_sort_file_size = 2147483648;
+@@global.myisam_max_sort_file_size = 2147483648
+0
+'#--------------------FN_DYNVARS_094_03-------------------------#'
+SET @@global.myisam_max_sort_file_size = 0;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 1024;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 123456789;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+122683392
+SET @@global.myisam_max_sort_file_size = 2147483648*2;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+4294967296
+SET @@global.myisam_max_sort_file_size = 2147483648*1024;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+2199023255552
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+2199023255552
+SET @@global.myisam_max_sort_file_size = 2147483648*2147483648;
+'#--------------------FN_DYNVARS_094_04-------------------------#'
+SET @@myisam_max_sort_file_size = 2;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+SET @@session.myisam_max_sort_file_size = 3;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+SET @@local.myisam_max_sort_file_size = 4;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+'#------------------FN_DYNVARS_094_05-----------------------#'
+SET @@global.myisam_max_sort_file_size = -1;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = -2147483648;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = -2147483649;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 2147483649.56;
+ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 1G;
+ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+'#------------------FN_DYNVARS_094_06-----------------------#'
+SET @@global.myisam_max_sort_file_size = 3000;
+SELECT @@global.myisam_max_sort_file_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='myisam_max_sort_file_size';
+@@global.myisam_max_sort_file_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_094_07-----------------------#'
+SELECT count(VARIABLE_VALUE)
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='myisam_max_sort_file_size';
+count(VARIABLE_VALUE)
+1
+'#------------------FN_DYNVARS_094_08-----------------------#'
+SET @@global.myisam_max_sort_file_size = TRUE;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = FALSE;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+'#---------------------FN_DYNVARS_001_09----------------------#'
+SET @@global.myisam_max_sort_file_size = 512;
+SELECT @@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size;
+@@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size
+1
+'#---------------------FN_DYNVARS_001_10----------------------#'
+SET myisam_max_sort_file_size = 2048;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT myisam_max_sort_file_size;
+ERROR 42S22: Unknown column 'myisam_max_sort_file_size' in 'field list'
+SELECT @@myisam_max_sort_file_size;
+@@myisam_max_sort_file_size
+0
+SET global myisam_max_sort_file_size = 64;
+SET @@global.myisam_max_sort_file_size = @start_global_value;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+2146435072
diff -Nrup a/mysql-test/r/myisam_max_sort_file_size_basic_64.result
b/mysql-test/r/myisam_max_sort_file_size_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/myisam_max_sort_file_size_basic_64.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,114 @@
+SET @start_global_value = @@global.myisam_max_sort_file_size;
+SELECT @start_global_value;
+@start_global_value
+9223372036854775807
+'#--------------------FN_DYNVARS_094_01-------------------------#'
+SET @@global.myisam_max_sort_file_size = 500000;
+SET @@global.myisam_max_sort_file_size = DEFAULT;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+9223372036853727232
+'Bug# 34876: This variable has invalid default value as compared to documentation';
+'#--------------------FN_DYNVARS_094_02-------------------------#'
+SET @@global.myisam_max_sort_file_size = DEFAULT;
+SELECT @@global.myisam_max_sort_file_size = 2147483648;
+@@global.myisam_max_sort_file_size = 2147483648
+0
+'#--------------------FN_DYNVARS_094_03-------------------------#'
+SET @@global.myisam_max_sort_file_size = 0;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 1024;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 123456789;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+122683392
+SET @@global.myisam_max_sort_file_size = 2147483648*2;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+4294967296
+SET @@global.myisam_max_sort_file_size = 2147483648*1024;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+2199023255552
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+2199023255552
+SET @@global.myisam_max_sort_file_size = 2147483648*2147483648;
+'#--------------------FN_DYNVARS_094_04-------------------------#'
+SET @@myisam_max_sort_file_size = 2;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+SET @@session.myisam_max_sort_file_size = 3;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+SET @@local.myisam_max_sort_file_size = 4;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+'#------------------FN_DYNVARS_094_05-----------------------#'
+SET @@global.myisam_max_sort_file_size = -1;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = -2147483648;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = -2147483649;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 2147483649.56;
+ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = 1G;
+ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+'#------------------FN_DYNVARS_094_06-----------------------#'
+SET @@global.myisam_max_sort_file_size = 3000;
+SELECT @@global.myisam_max_sort_file_size = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='myisam_max_sort_file_size';
+@@global.myisam_max_sort_file_size = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_094_07-----------------------#'
+SELECT count(VARIABLE_VALUE)
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='myisam_max_sort_file_size';
+count(VARIABLE_VALUE)
+1
+'#------------------FN_DYNVARS_094_08-----------------------#'
+SET @@global.myisam_max_sort_file_size = TRUE;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+SET @@global.myisam_max_sort_file_size = FALSE;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+0
+'#---------------------FN_DYNVARS_001_09----------------------#'
+SET @@global.myisam_max_sort_file_size = 512;
+SELECT @@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size;
+@@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size
+1
+'#---------------------FN_DYNVARS_001_10----------------------#'
+SET myisam_max_sort_file_size = 2048;
+ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set
with SET GLOBAL
+SELECT myisam_max_sort_file_size;
+ERROR 42S22: Unknown column 'myisam_max_sort_file_size' in 'field list'
+SELECT @@myisam_max_sort_file_size;
+@@myisam_max_sort_file_size
+0
+SET global myisam_max_sort_file_size = 64;
+SET @@global.myisam_max_sort_file_size = @start_global_value;
+SELECT @@global.myisam_max_sort_file_size;
+@@global.myisam_max_sort_file_size
+9223372036853727232
diff -Nrup a/mysql-test/r/myisam_repair_threads_basic.result
b/mysql-test/r/myisam_repair_threads_basic.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/myisam_repair_threads_basic.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,180 @@
+SET @start_global_value = @@global.myisam_repair_threads;
+SELECT @start_global_value;
+@start_global_value
+1
+SET @start_session_value = @@session.myisam_repair_threads;
+SELECT @start_session_value;
+@start_session_value
+1
+'#--------------------FN_DYNVARS_005_01-------------------------#'
+SET @@global.myisam_repair_threads = 100;
+SET @@global.myisam_repair_threads = DEFAULT;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = 200;
+SET @@session.myisam_repair_threads = DEFAULT;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+'#--------------------FN_DYNVARS_005_02-------------------------#'
+SET @@global.myisam_repair_threads = DEFAULT;
+SELECT @@global.myisam_repair_threads = 1;
+@@global.myisam_repair_threads = 1
+1
+SET @@session.myisam_repair_threads = DEFAULT;
+SELECT @@session.myisam_repair_threads = 1;
+@@session.myisam_repair_threads = 1
+1
+'#--------------------FN_DYNVARS_005_03-------------------------#'
+SET @@global.myisam_repair_threads = 1;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = 4294967295;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = 655354;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+655354
+'#--------------------FN_DYNVARS_005_04-------------------------#'
+SET @@session.myisam_repair_threads = 1;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = 4294967295;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+4294967295
+SET @@session.myisam_repair_threads = 655345;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+655345
+'#------------------FN_DYNVARS_005_05-----------------------#'
+SET @@global.myisam_repair_threads = 0;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = -1024;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = 429496729533;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '429496729533'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = test;
+ERROR 42000: Incorrect argument type to variable 'myisam_repair_threads'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = "test";
+ERROR 42000: Incorrect argument type to variable 'myisam_repair_threads'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = 'test';
+ERROR 42000: Incorrect argument type to variable 'myisam_repair_threads'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = ON;
+ERROR 42000: Incorrect argument type to variable 'myisam_repair_threads'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@session.myisam_repair_threads = 0;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = -2;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = test;
+ERROR 42000: Incorrect argument type to variable 'myisam_repair_threads'
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = "test";
+ERROR 42000: Incorrect argument type to variable 'myisam_repair_threads'
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+'#------------------FN_DYNVARS_005_06-----------------------#'
+SELECT @@global.myisam_repair_threads = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='myisam_repair_threads ';
+@@global.myisam_repair_threads = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_005_07-----------------------#'
+SELECT @@session.myisam_repair_threads = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='myisam_repair_threads ';
+@@session.myisam_repair_threads = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_005_08-----------------------#'
+SET @@global.myisam_repair_threads = TRUE;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+'#---------------------FN_DYNVARS_001_09----------------------#'
+SET @@global.myisam_repair_threads = 10;
+SELECT @@myisam_repair_threads = @@global.myisam_repair_threads ;
+@@myisam_repair_threads = @@global.myisam_repair_threads
+0
+'#---------------------FN_DYNVARS_001_10----------------------#'
+SET @@myisam_repair_threads = 100;
+SELECT @@myisam_repair_threads = @@local.myisam_repair_threads ;
+@@myisam_repair_threads = @@local.myisam_repair_threads
+1
+SELECT @@local.myisam_repair_threads = @@session.myisam_repair_threads ;
+@@local.myisam_repair_threads = @@session.myisam_repair_threads
+1
+'#---------------------FN_DYNVARS_001_11----------------------#'
+SET myisam_repair_threads = 1;
+SELECT @@myisam_repair_threads ;
+@@myisam_repair_threads
+1
+SELECT local.myisam_repair_threads ;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.myisam_repair_threads ;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT myisam_repair_threads = @@session.myisam_repair_threads ;
+ERROR 42S22: Unknown column 'myisam_repair_threads' in 'field list'
+SET @@global.myisam_repair_threads = @start_global_value;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = @start_session_value;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
diff -Nrup a/mysql-test/r/myisam_repair_threads_basic_64.result
b/mysql-test/r/myisam_repair_threads_basic_64.result
--- /dev/null Wed Dec 31 16:00:00 196900
+++ b/mysql-test/r/myisam_repair_threads_basic_64.result 2008-05-06 15:00:34 +02:00
@@ -0,0 +1,178 @@
+SET @start_global_value = @@global.myisam_repair_threads;
+SELECT @start_global_value;
+@start_global_value
+1
+SET @start_session_value = @@session.myisam_repair_threads;
+SELECT @start_session_value;
+@start_session_value
+1
+'#--------------------FN_DYNVARS_005_01-------------------------#'
+SET @@global.myisam_repair_threads = 100;
+SET @@global.myisam_repair_threads = DEFAULT;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = 200;
+SET @@session.myisam_repair_threads = DEFAULT;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+'#--------------------FN_DYNVARS_005_02-------------------------#'
+SET @@global.myisam_repair_threads = DEFAULT;
+SELECT @@global.myisam_repair_threads = 1;
+@@global.myisam_repair_threads = 1
+1
+SET @@session.myisam_repair_threads = DEFAULT;
+SELECT @@session.myisam_repair_threads = 1;
+@@session.myisam_repair_threads = 1
+1
+'#--------------------FN_DYNVARS_005_03-------------------------#'
+SET @@global.myisam_repair_threads = 1;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = 4294967295;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+4294967295
+SET @@global.myisam_repair_threads = 655354;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+655354
+'#--------------------FN_DYNVARS_005_04-------------------------#'
+SET @@session.myisam_repair_threads = 1;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+1
+SET @@session.myisam_repair_threads = 4294967295;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+4294967295
+SET @@session.myisam_repair_threads = 655345;
+SELECT @@session.myisam_repair_threads ;
+@@session.myisam_repair_threads
+655345
+'#------------------FN_DYNVARS_005_05-----------------------#'
+SET @@global.myisam_repair_threads = 0;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = -1024;
+Warnings:
+Warning 1292 Truncated incorrect myisam_repair_threads value: '0'
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+1
+SET @@global.myisam_repair_threads = 429496729533;
+SELECT @@global.myisam_repair_threads ;
+@@global.myisam_repair_threads
+429496729533
+SET @@global.myisam_repair_threads = 65530.34.;
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '.' at line 1
+SELECT @@global.myisam_repair_threads ;
+