summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index f473ca33676..8b35705f191 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -125,9 +125,10 @@ public:
optimisation changes in prepared statements
*/
Item(THD *thd, Item &item);
- virtual ~Item() { name=0; } /*lint -e1509 */
+ virtual ~Item() { name=0; cleanup(); } /*lint -e1509 */
void set_name(const char *str,uint length, CHARSET_INFO *cs);
void init_make_field(Send_field *tmp_field,enum enum_field_types type);
+ virtual void cleanup() {}
virtual void make_field(Send_field *field);
virtual bool fix_fields(THD *, struct st_table_list *, Item **);
virtual int save_in_field(Field *field, bool no_conversions);