summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-07-03 10:41:16 +0400
committerAlexander Barkov <bar@mariadb.org>2016-07-03 10:41:16 +0400
commitf832b47833bd03fbb9e972508097f3f88c0ba184 (patch)
tree23d3989230570528574ca97d76899c12bf15d7c5 /sql/item_func.h
parentccdd63388a789f407d502848d12c618593a5ded1 (diff)
downloadmariadb-git-f832b47833bd03fbb9e972508097f3f88c0ba184.tar.gz
Removing the "thd" argument from Item::create_field_for_create_select().
"thd" is available through the "table" argument, as table->in_use. Backporting (partially) from 10.2.
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 6a1494040c9..a6d0374d491 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -175,7 +175,7 @@ public:
friend class udf_handler;
Field *tmp_table_field() { return result_field; }
Field *tmp_table_field(TABLE *t_arg);
- Field *create_field_for_create_select(THD *thd, TABLE *table)
+ Field *create_field_for_create_select(TABLE *table)
{
return result_type() != STRING_RESULT ?
tmp_table_field(table) :
@@ -1762,7 +1762,7 @@ public:
bool update();
bool fix_fields(THD *thd, Item **ref);
void fix_length_and_dec();
- Field *create_field_for_create_select(THD *thd, TABLE *table)
+ Field *create_field_for_create_select(TABLE *table)
{
return result_type() != STRING_RESULT ?
tmp_table_field(table) :