summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-07-22 16:18:34 -0700
committerunknown <jimw@mysql.com>2005-07-22 16:18:34 -0700
commitc055edc631ad5e681e3b5fea6527d0608797ddab (patch)
tree2c85c101a029d878e55c1520a01261212d52ef9f /mysql-test
parent9a0d9c35697c250f3136b1cb7b6a184cef3c6d45 (diff)
downloadmariadb-git-c055edc631ad5e681e3b5fea6527d0608797ddab.tar.gz
Fix value returned from SELECT of unsigned long system
variables. (Bug #10351) mysql-test/r/variables.result: Update results mysql-test/t/variables.test: Add regression test sql/item.h: Add Item_uint(ulong) constructor sql/mysqld.cc: Fix default/max max_seeks_for_key to UINT_MAX32 sql/set_var.cc: Use correct Item_uint() constructors in sys_var::item()
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/variables.result12
-rw-r--r--mysql-test/t/variables.test10
2 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/r/variables.result b/mysql-test/r/variables.result
index 5468508165c..8ab591e18d0 100644
--- a/mysql-test/r/variables.result
+++ b/mysql-test/r/variables.result
@@ -525,3 +525,15 @@ set @@warning_count=1;
ERROR HY000: Variable 'warning_count' is a read only variable
set @@global.error_count=1;
ERROR HY000: Variable 'error_count' is a read only variable
+set @@max_heap_table_size= 4294967296;
+select @@max_heap_table_size;
+@@max_heap_table_size
+4294967296
+set global max_heap_table_size= 4294967296;
+select @@max_heap_table_size;
+@@max_heap_table_size
+4294967296
+set @@max_heap_table_size= 4294967296;
+select @@max_heap_table_size;
+@@max_heap_table_size
+4294967296
diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test
index c3ffdc79c16..e6efb86e325 100644
--- a/mysql-test/t/variables.test
+++ b/mysql-test/t/variables.test
@@ -406,3 +406,13 @@ drop table t1;
set @@warning_count=1;
--error 1238
set @@global.error_count=1;
+
+#
+# Bug #10351: Setting max_heap_table_size to 4G fails
+#
+set @@max_heap_table_size= 4294967296;
+select @@max_heap_table_size;
+set global max_heap_table_size= 4294967296;
+select @@max_heap_table_size;
+set @@max_heap_table_size= 4294967296;
+select @@max_heap_table_size;