From 522cd3c7aa9b466d5e0a4d010d4acb13c76a014c Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Fri, 10 Aug 2018 06:22:13 +0400 Subject: [PATCH] Fixing compilation failure on Windows (cannot compare "bool" and "my_bool" directly, cast needed) --- sql/item_func.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/item_func.h b/sql/item_func.h index fc51a41e9b6..f44986a9111 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -2197,7 +2197,7 @@ protected: { my_bool tmp_null_value; m_ptr= udf->val_decimal(&tmp_null_value, &m_buffer); - DBUG_ASSERT(is_null() == tmp_null_value); + DBUG_ASSERT(is_null() == (tmp_null_value != 0)); func->null_value= is_null(); } };