1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-8613 Full table scan for WHERE indexed_varchar_column <=> 'bad-character'

This commit is contained in:
Alexander Barkov
2015-08-13 16:41:02 +04:00
parent 60985e5375
commit 0750b2df37
3 changed files with 22 additions and 1 deletions

View File

@@ -7845,7 +7845,7 @@ Item_bool_func::get_mm_leaf(RANGE_OPT_PARAM *param,
err= value->save_in_field_no_warnings(field, 1);
if (err == 2 && field->cmp_type() == STRING_RESULT)
{
if (type == EQ_FUNC)
if (type == EQ_FUNC || type == EQUAL_FUNC)
{
tree= new (alloc) SEL_ARG(field, 0, 0);
tree->type= SEL_ARG::IMPOSSIBLE;