From e7afab72459e7832fc22922e1e4838bc7f9a7cb1 Mon Sep 17 00:00:00 2001 From: "Tatiana A. Nurnberg" Date: Mon, 9 Mar 2009 15:26:53 +0100 Subject: [PATCH] Bug#40657: assertion with out of range variables and traditional sql_mode test-fixes for 32-bit mysql-test/t/variables.test: Test for 10351 ("Max_Heap_Table_Size cannot be set to 4 gb") now throws a warning on 32-bit, as it should. As we're not actually interested in the warning but only in whether the variable is set to a correct value afterwards, we disable warnings for the duration of that test case so we won't have to split the test into a 32-bit and a 64-bit flavour for no real reason. --- mysql-test/t/variables.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test index db1e218b334..95f4d6e97c5 100644 --- a/mysql-test/t/variables.test +++ b/mysql-test/t/variables.test @@ -647,12 +647,14 @@ set @@global.error_count=1; # Bug #10351: Setting ulong variable to > MAX_ULONG fails on 32-bit platform # +--disable_warnings set @@max_heap_table_size= 4294967296; select @@max_heap_table_size > 0; set global max_heap_table_size= 4294967296; select @@max_heap_table_size > 0; set @@max_heap_table_size= 4294967296; select @@max_heap_table_size > 0; +--enable_warnings # # Bug #11775 Variable character_set_system does not exist (sometimes)