diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-11-11 14:20:37 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-03-12 13:10:49 +0100 |
commit | 22f1cf9292f859f2f59208f267917481b29d4739 (patch) | |
tree | 13fd60bcaad9487c60db585afaa5281d367c0c0f /sql/sql_view.cc | |
parent | dda2e940fb035d41852e95a1c2f513ab1534b041 (diff) | |
download | mariadb-git-22f1cf9292f859f2f59208f267917481b29d4739.tar.gz |
cleanup: misc
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 9a9309a133b..df9fdab6635 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -891,15 +891,8 @@ static int mysql_register_view(THD *thd, TABLE_LIST *view, View definition query is stored in the client character set. */ - char view_query_buff[4096]; - String view_query(view_query_buff, - sizeof (view_query_buff), - thd->charset()); - - char is_query_buff[4096]; - String is_query(is_query_buff, - sizeof (is_query_buff), - system_charset_info); + StringBuffer<4096> view_query(thd->charset()); + StringBuffer<4096> is_query(system_charset_info); char md5[MD5_BUFF_LENGTH]; bool can_be_merged; |