summaryrefslogtreecommitdiff
path: root/mysql-test/t/select_safe.test
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-07-28 18:22:49 -0700
committerunknown <jimw@mysql.com>2005-07-28 18:22:49 -0700
commite0593575953b1bf8141201b488e9916f96c32a21 (patch)
tree25d339128c266fd163f68ec5c2cb870f4eaf4903 /mysql-test/t/select_safe.test
parent008d8f07fee7bf6b2f359397541c7f66a4e0b35f (diff)
downloadmariadb-git-e0593575953b1bf8141201b488e9916f96c32a21.tar.gz
Fix for handling of unsigned long options on 32-bit platforms that
allowed unintended overflows. (Bug #10351) mysql-test/r/select_safe.result: Update results mysql-test/r/variables.result: Update results mysql-test/t/select_safe.test: Remove "SELECT @@MAX_SEEKS_FOR_KEY;" because it depends on size of unsigned long of the system. mysql-test/t/variables.test: Fix test for #10351 to test the actual problem sql/mysqld.cc: Undo unnecessary change to default and max of max_seeks_for_key sql/set_var.cc: On platforms where SIZEOF_LONG != SIZEOF_LONGLONG, make sure to handle max values for ulong-sized options correctly.
Diffstat (limited to 'mysql-test/t/select_safe.test')
-rw-r--r--mysql-test/t/select_safe.test1
1 files changed, 0 insertions, 1 deletions
diff --git a/mysql-test/t/select_safe.test b/mysql-test/t/select_safe.test
index 5b2dfb00bb7..7515ff40ab9 100644
--- a/mysql-test/t/select_safe.test
+++ b/mysql-test/t/select_safe.test
@@ -56,7 +56,6 @@ SELECT * from t1;
#
# Test MAX_SEEKS_FOR_KEY
#
-SELECT @@MAX_SEEKS_FOR_KEY;
analyze table t1;
insert into t1 values (null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a");
explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;