summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-08-10 06:22:13 +0400
committerAlexander Barkov <bar@mariadb.com>2018-08-10 06:22:13 +0400
commit522cd3c7aa9b466d5e0a4d010d4acb13c76a014c (patch)
treeb011f14e9f2518fa7268f922344c68fc8062f628 /sql/item_func.h
parentd2bba4ce258eb80117771fb6c3782348ce4ae924 (diff)
downloadmariadb-git-522cd3c7aa9b466d5e0a4d010d4acb13c76a014c.tar.gz
Fixing compilation failure on Windows (cannot compare "bool" and "my_bool" directly, cast needed)
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h2
1 files changed, 1 insertions, 1 deletions
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();
}
};