1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Adding "const" qualifier to Item::compare_collation()

This commit is contained in:
Alexander Barkov
2015-03-13 13:52:07 +04:00
parent 4d0e52189c
commit bd2105855a
4 changed files with 14 additions and 13 deletions

View File

@ -6476,7 +6476,7 @@ bool Field_longstr::can_optimize_group_min_max(const Item_bool_func2 *cond,
return false;
// Don't use an index when comparing strings of different collations.
return charset() == ((Item_bool_func2*) cond)->compare_collation();
return charset() == cond->compare_collation();
}