summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-09-07 07:44:54 +0400
committerAlexander Barkov <bar@mariadb.com>2019-09-07 07:44:54 +0400
commit8750df43ab94fb63c1f628b72e89e15118eb7431 (patch)
treedad04ad932cf21f2c6d057a130d76998ba2cdec5 /sql/item_func.h
parent39e5b76ef1e68c0aed0b0f6941d517a986fe8821 (diff)
downloadmariadb-git-8750df43ab94fb63c1f628b72e89e15118eb7431.tar.gz
MDEV-20517 Assertion `!is_expensive()' failed in Item::value_depends_on_sql_mode_const_item
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 5be62427852..1193daea106 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -773,16 +773,15 @@ public:
class Item_func_minus :public Item_func_additive_op
{
- Sql_mode_dependency m_sql_mode_dependency;
+ bool m_depends_on_sql_mode_no_unsigned_subtraction;
public:
Item_func_minus(THD *thd, Item *a, Item *b):
- Item_func_additive_op(thd, a, b) {}
+ Item_func_additive_op(thd, a, b),
+ m_depends_on_sql_mode_no_unsigned_subtraction(false)
+ { }
const char *func_name() const { return "-"; }
enum precedence precedence() const { return ADD_PRECEDENCE; }
- Sql_mode_dependency value_depends_on_sql_mode() const
- {
- return m_sql_mode_dependency;
- }
+ Sql_mode_dependency value_depends_on_sql_mode() const;
longlong int_op();
double real_op();
my_decimal *decimal_op(my_decimal *);