mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
Moved test to keep Tim happy
This commit is contained in:
parent
51c2a1ebb0
commit
6738cfb979
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue