summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-05-23 14:57:29 +0400
committerAlexander Barkov <bar@mariadb.com>2019-05-23 14:58:03 +0400
commitc83018751cc8eed11279eb6df555bd66c153fa9a (patch)
tree3d6fa41a975ca9ad1cee5308feda49b787183987 /sql/sql_view.cc
parent826f9d4f7e99973cafe7654697d7c50b8b64b76b (diff)
downloadmariadb-git-c83018751cc8eed11279eb6df555bd66c153fa9a.tar.gz
MDEV-19566 Remove Item::name related strlen() calls in constructors of some Item_string descendands
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index b130fbc099b..04cdfbcb5bf 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -556,7 +556,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
}
while ((item= it++, name= nm++))
{
- item->set_name(thd, name->str, (uint) name->length, system_charset_info);
+ item->set_name(thd, *name);
item->is_autogenerated_name= FALSE;
}
}