summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-04-22 18:18:51 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-04-22 18:18:51 +0300
commit88cf6f1c7ff5d56138c8b53a5adaca4c61752f86 (patch)
treeeee8eed7e9388a575de4d9c948b0706e2356d694 /sql/item.h
parent498c5e2be1021569c1d5554bcb91f45090e30d4b (diff)
parent455cf6196c8c73f5a50004ac7f31a9be8ac14bbe (diff)
downloadmariadb-git-88cf6f1c7ff5d56138c8b53a5adaca4c61752f86.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/item.h b/sql/item.h
index 990ca0ec887..54eaaaf8743 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -2,7 +2,7 @@
#define SQL_ITEM_INCLUDED
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
- Copyright (c) 2009, 2019, MariaDB Corporation.
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -6254,21 +6254,23 @@ class Item_default_value : public Item_field
void calculate();
public:
Item *arg;
+ Field *cached_field;
Item_default_value(THD *thd, Name_resolution_context *context_arg)
:Item_field(thd, context_arg, (const char *)NULL, (const char *)NULL,
&null_clex_str),
- arg(NULL) {}
+ arg(NULL), cached_field(NULL) {}
Item_default_value(THD *thd, Name_resolution_context *context_arg, Item *a)
:Item_field(thd, context_arg, (const char *)NULL, (const char *)NULL,
&null_clex_str),
- arg(a) {}
+ arg(a), cached_field(NULL) {}
Item_default_value(THD *thd, Name_resolution_context *context_arg, Field *a)
:Item_field(thd, context_arg, (const char *)NULL, (const char *)NULL,
&null_clex_str),
- arg(NULL) {}
+ arg(NULL), cached_field(NULL) {}
enum Type type() const { return DEFAULT_VALUE_ITEM; }
bool eq(const Item *item, bool binary_cmp) const;
bool fix_fields(THD *, Item **);
+ void cleanup();
void print(String *str, enum_query_type query_type);
String *val_str(String *str);
double val_real();