From 5e88e3f7c8dba50e8836d3dd7df01c3037833431 Mon Sep 17 00:00:00 2001 From: Alexander Peresypkin Date: Wed, 17 Jul 2019 12:07:27 +0200 Subject: [PATCH] Fix bug https://bugs.mysql.com/bug.php?id=95927 --- sql/item_cmpfunc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 8c32859a389..4db30ae4c93 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -5687,10 +5687,10 @@ float Item_func_xor::get_filtering_effect(THD *thd, table_map filter_for_table, longlong Item_func_xor::val_int() { DBUG_ASSERT(fixed == 1); - int result = 0; + uint result = 0; null_value = false; for (uint i = 0; i < arg_count; i++) { - result ^= (args[i]->val_int() != 0); + result ^= (args[i]->val_bool() != 0); if (args[i]->null_value) { null_value = true; return 0;