summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2006-03-31 15:17:15 +0400
committerunknown <sergefp@mysql.com>2006-03-31 15:17:15 +0400
commit457510903fd4f4c98ca09c81d53c6a810084a8e0 (patch)
tree605c6048b6806d57e2dfffe278315fd0ed0da3b7 /sql/opt_range.cc
parentb002c11756aa59273b548c442dd69c8f41a9e9e2 (diff)
downloadmariadb-git-457510903fd4f4c98ca09c81d53c6a810084a8e0.tar.gz
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.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 1 insertions, 1 deletions
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)
{