diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-03-30 18:53:33 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-10 13:12:36 +0200 |
commit | 08a901cc0bc13e7d0794a691ed139aa611ccc872 (patch) | |
tree | 7b31f3c653c5b7e8debfdc88fd24222196a3fcb6 /sql/sql_view.cc | |
parent | 0dcb47cae93b8b25a1c1bd7ca31e0d2432df89f3 (diff) | |
download | mariadb-git-08a901cc0bc13e7d0794a691ed139aa611ccc872.tar.gz |
cleanup: remove XString::operator== and !=
use named methods instead.
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index b84dc46cae6..e910d48c75c 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -612,8 +612,8 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, const LString_i field_name= fld->field->field_name; if (s->tmp_table || (s->versioned && - (field_name == s->vers_start_field()->field_name || - field_name == s->vers_end_field()->field_name))) + (field_name.streq(s->vers_start_field()->field_name) || + field_name.streq(s->vers_end_field()->field_name)))) { continue; } @@ -2040,8 +2040,8 @@ bool insert_view_fields(THD *thd, List<Item> *list, TABLE_LIST *view) TABLE_SHARE *s= fld->context->table_list->table->s; LString_i field_name= fld->field_name; if (s->versioned && - (field_name == s->vers_start_field()->field_name || - field_name == s->vers_end_field()->field_name)) + (field_name.streq(s->vers_start_field()->field_name) || + field_name.streq(s->vers_end_field()->field_name))) continue; list->push_back(fld, thd->mem_root); } |