diff options
author | kevg <claprix@yandex.ru> | 2017-03-14 13:05:39 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2017-05-05 20:36:31 +0300 |
commit | 4ebf680c9bb7fa42656a87024e9d464226b089d4 (patch) | |
tree | ba5fdc4f36900f543cbe989fd403bbfd30a0f733 /sql/sql_view.cc | |
parent | 92c7a87119d1a212d0028dd05a834f458cc9e6f8 (diff) | |
download | mariadb-git-4ebf680c9bb7fa42656a87024e9d464226b089d4.tar.gz |
SQL: VIEW over a JOIN of versioned tables [fixes #153]
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 215d81f5724..d542a5710f6 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -467,9 +467,9 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, const char *end = s->vers_end_field()->field_name; select_lex->item_list.push_back(new (thd->mem_root) Item_field( - thd, &select_lex->context, NULL, NULL, start)); + thd, &select_lex->context, tables->db, tables->alias, start)); select_lex->item_list.push_back(new (thd->mem_root) Item_field( - thd, &select_lex->context, NULL, NULL, end)); + thd, &select_lex->context, tables->db, tables->alias, end)); if (lex->view_list.elements) { |