diff options
author | unknown <monty@donna.mysql.fi> | 2001-04-17 14:07:38 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.fi> | 2001-04-17 14:07:38 +0300 |
commit | 6738cfb97966c4fd83a7e6ab87a6afbcfdcb00db (patch) | |
tree | 990180856d59c295127c0e01d3b72e1d863868fe /sql | |
parent | 51c2a1ebb081a9dbe031e6c345ff216f882f1ac4 (diff) | |
download | mariadb-git-6738cfb97966c4fd83a7e6ab87a6afbcfdcb00db.tar.gz |
Moved test to keep Tim happy
Diffstat (limited to 'sql')
-rw-r--r-- | sql/opt_range.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 5354803e6ab..98be3639a06 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -919,14 +919,13 @@ get_mm_leaf(Field *field,KEY_PART *key_part, if (type == Item_func::LIKE_FUNC) { - if (!field->optimize_range()) - DBUG_RETURN(0); // Can't optimize this - bool like_error; char buff1[MAX_FIELD_WIDTH],*min_str,*max_str; String tmp(buff1,sizeof(buff1)),*res; uint length,offset,min_length,max_length; + if (!field->optimize_range()) + DBUG_RETURN(0); // Can't optimize this if (!(res= value->val_str(&tmp))) DBUG_RETURN(&null_element); |