1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fixed bugs in check_part_func_fields

This commit is contained in:
mikael/pappa@dator5.(none)
2006-09-26 01:38:17 -04:00
parent 3b9f4a616c
commit 0d4d06fd6c

View File

@@ -1452,16 +1452,13 @@ static bool check_part_func_fields(Field **ptr, bool ok_with_charsets)
CHARSET_INFO *cs= ((Field_str*)field)->charset();
if (field->type() == MYSQL_TYPE_STRING &&
cs->state & MY_CS_BINSORT)
{
DBUG_RETURN(FALSE);
}
continue;
if (!ok_with_charsets ||
cs->mbmaxlen > 1 ||
cs->strxfrm_multiply > 1)
{
DBUG_RETURN(TRUE);
}
DBUG_RETURN(FALSE);
}
}
DBUG_RETURN(FALSE);