From 457510903fd4f4c98ca09c81d53c6a810084a8e0 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 Mar 2006 15:17:15 +0400 Subject: Fix for BUG#18025: Wrong query results because of bugs in partition pruning: - Fix typo bug in SEL_ARG::is_singlepoint() - In set_up_range_analysis_info(), treat MEDIUMINT as enumerable type just like other integer types mysql-test/r/partition_pruning.result: Testcase for BUG#18025 mysql-test/t/partition_pruning.test: Testcase for BUG#18025 sql/opt_range.cc: BUG#18025: Fix a typo bug in SEL_ARG::is_singlepoint() sql/sql_partition.cc: BUG#18025: In set_up_range_analysis_info(), treat MEDIUMINT as enumerable type just like other integer types. --- sql/opt_range.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/opt_range.cc') diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 36de27ef3e3..9706a0ccd1e 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -339,7 +339,7 @@ public: if (min_flag || max_flag) return FALSE; byte *min_val= (byte *)min_value; - byte *max_val= (byte *)min_value; + byte *max_val= (byte *)max_value; if (maybe_null) { -- cgit v1.2.1