SET @start_global_value = @@global.transaction_prealloc_size; SELECT @start_global_value; @start_global_value 4096 SET @start_session_value = @@session.transaction_prealloc_size; SELECT @start_session_value; @start_session_value 4096 '#--------------------FN_DYNVARS_005_01-------------------------#' SET @@global.transaction_prealloc_size = 100; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '100' SET @@global.transaction_prealloc_size = DEFAULT; SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 4096 SET @@session.transaction_prealloc_size = 200; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '200' SET @@session.transaction_prealloc_size = DEFAULT; SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 4096 '#--------------------FN_DYNVARS_005_02-------------------------#' SET @@global.transaction_prealloc_size = DEFAULT; SELECT @@global.transaction_prealloc_size = 4096; @@global.transaction_prealloc_size = 4096 1 SET @@session.transaction_prealloc_size = DEFAULT; SELECT @@session.transaction_prealloc_size = 4096; @@session.transaction_prealloc_size = 4096 1 '#--------------------FN_DYNVARS_005_03-------------------------#' SET @@global.transaction_prealloc_size = 1024; SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 1024 SET @@global.transaction_prealloc_size = 60020; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '60020' SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 59392 '#--------------------FN_DYNVARS_005_04-------------------------#' SET @@session.transaction_prealloc_size = 1024; SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 1024 SET @@session.transaction_prealloc_size = 65535; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '65535' SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 64512 '#------------------FN_DYNVARS_005_05-----------------------#' SET @@global.transaction_prealloc_size = 0; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '0' SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 1024 SET @@global.transaction_prealloc_size = -1024; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '-1024' SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 1024 SET @@global.transaction_prealloc_size = ON; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@global.transaction_prealloc_size = OFF; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@global.transaction_prealloc_size = True; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '1' SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 1024 SET @@global.transaction_prealloc_size = False; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '0' SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 1024 SET @@global.transaction_prealloc_size = 65530.34; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@global.transaction_prealloc_size ="Test"; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@global.transaction_prealloc_size = 1000; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '1000' SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 1024 SET @@session.transaction_prealloc_size = ON; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@session.transaction_prealloc_size = OFF; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@session.transaction_prealloc_size = True; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '1' SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 1024 SET @@session.transaction_prealloc_size = False; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '0' SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 1024 SET @@session.transaction_prealloc_size = "Test"; ERROR 42000: Incorrect argument type to variable 'transaction_prealloc_size' SET @@session.transaction_prealloc_size = 135217728; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '135217728' SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 131072 '#------------------FN_DYNVARS_005_06-----------------------#' SELECT @@global.transaction_prealloc_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='transaction_prealloc_size'; @@global.transaction_prealloc_size = VARIABLE_VALUE 1 '#------------------FN_DYNVARS_005_07-----------------------#' SELECT @@session.transaction_prealloc_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='transaction_prealloc_size'; @@session.transaction_prealloc_size = VARIABLE_VALUE 1 '#---------------------FN_DYNVARS_001_09----------------------#' SET @@global.transaction_prealloc_size = 1024; SET @@global.transaction_prealloc_size = 10; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '10' SELECT @@transaction_prealloc_size = @@global.transaction_prealloc_size; @@transaction_prealloc_size = @@global.transaction_prealloc_size 0 '#---------------------FN_DYNVARS_001_10----------------------#' SET @@transaction_prealloc_size = 100; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '100' SELECT @@transaction_prealloc_size = @@local.transaction_prealloc_size; @@transaction_prealloc_size = @@local.transaction_prealloc_size 1 SELECT @@local.transaction_prealloc_size = @@session.transaction_prealloc_size; @@local.transaction_prealloc_size = @@session.transaction_prealloc_size 1 '#---------------------FN_DYNVARS_001_11----------------------#' SET transaction_prealloc_size = 1027; Warnings: Warning 1292 Truncated incorrect transaction_prealloc_size value: '1027' SELECT @@transaction_prealloc_size; @@transaction_prealloc_size 1024 SELECT local.transaction_prealloc_size; ERROR 42S02: Unknown table 'local' in field list SELECT session.transaction_prealloc_size; ERROR 42S02: Unknown table 'session' in field list SELECT transaction_prealloc_size = @@session.transaction_prealloc_size; ERROR 42S22: Unknown column 'transaction_prealloc_size' in 'field list' SET @@global.transaction_prealloc_size = @start_global_value; SELECT @@global.transaction_prealloc_size; @@global.transaction_prealloc_size 4096 SET @@session.transaction_prealloc_size = @start_session_value; SELECT @@session.transaction_prealloc_size; @@session.transaction_prealloc_size 4096