Skip to content

Commit 4672008

Browse files
author
Ajo Robert
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents 95b58bc + f7316aa commit 4672008

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sql/item.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef ITEM_INCLUDED
22
#define ITEM_INCLUDED
33

4-
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
4+
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
55
66
This program is free software; you can redistribute it and/or modify
77
it under the terms of the GNU General Public License as published by
@@ -2017,6 +2017,12 @@ class Item_name_const : public Item
20172017
return value_item->result_type();
20182018
}
20192019

2020+
virtual bool cache_const_expr_analyzer(uchar **arg)
2021+
{
2022+
// Item_name_const always wraps a literal, so there is no need to cache it.
2023+
return false;
2024+
}
2025+
20202026
type_conversion_status save_in_field(Field *field, bool no_conversions)
20212027
{
20222028
return value_item->save_in_field(field, no_conversions);

0 commit comments

Comments
 (0)