summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-09-12 16:36:46 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-09-12 16:36:46 +0300
commitd28686ada6f72035f23b83960e63599f50fbc38d (patch)
treec7295d08ffa9f27d7f8b19b5741b286acaa40b9b /sql/item_func.h
parent9d26f3dabb8299149af99faafa52398cce44e610 (diff)
parent60c04be6599597548ad07ce11e1d7d4004a7cc9c (diff)
downloadmariadb-git-d28686ada6f72035f23b83960e63599f50fbc38d.tar.gz
Merge 10.4 into 10.5
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 a48e1895a5f..51ade5a9068 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -1342,16 +1342,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 *);