diff options
author | igor@rurik.mysql.com <> | 2006-06-02 14:14:57 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2006-06-02 14:14:57 -0700 |
commit | 37e049db012b8e136dcc826bb2579f8af02201ab (patch) | |
tree | 73c42f8475188528c843bc2d2a7f64fa2f122d1e /sql/sql_select.h | |
parent | de8a1b4f19bfaa362c8ff9725ba298f1954d0083 (diff) | |
download | mariadb-git-37e049db012b8e136dcc826bb2579f8af02201ab.tar.gz |
Fixed bug #18206.
The bug report revealed two problems related to min/max optimization:
1. If the length of a constant key used in a SARGable condition for
for the MIN/MAX fields is greater than the length of the field an
unwanted warning on key truncation is issued;
2. If MIN/MAX optimization is applied to a partial index, like INDEX(b(4))
than can lead to returning a wrong result set.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 94cc8839466..75cd0b4d797 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -335,7 +335,7 @@ extern const char *join_type_str[]; void TEST_join(JOIN *join); /* Extern functions in sql_select.cc */ -bool store_val_in_field(Field *field,Item *val); +bool store_val_in_field(Field *field, Item *val, enum_check_fields check_flag); TABLE *create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields, ORDER *group, bool distinct, bool save_sum_fields, ulong select_options, ha_rows rows_limit, |