diff options
author | unknown <bell@sanja.is.com.ua> | 2004-08-25 16:14:42 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-08-25 16:14:42 +0300 |
commit | 7bba8128ed65a5d841679fceb8c6c8dd5cac008c (patch) | |
tree | 26f7ae5496c612f652cb69756bdb5e603e8641b2 /sql/table.cc | |
parent | 29c44654ffb7ba111140d201e23d0b902d7ae2e3 (diff) | |
download | mariadb-git-7bba8128ed65a5d841679fceb8c6c8dd5cac008c.tar.gz |
full text function moving to current select (BUG#4822)
mysql-test/r/view.result:
VIEW with full text
mysql-test/t/view.test:
VIEW with full text
sql/table.cc:
full text function moving to current select
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc index a1e1faa36a6..3e481443801 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -1603,6 +1603,16 @@ bool st_table_list::setup_ancestor(THD *thd, Item **conds) thd->restore_backup_item_arena(arena, &backup); } + /* full text function moving to current select */ + if (view->select_lex.ftfunc_list->elements) + { + Item_func_match *ifm; + List_iterator_fast<Item_func_match> + li(*(view->select_lex.ftfunc_list)); + while ((ifm= li++)) + current_select_save->ftfunc_list->push_front(ifm); + } + ok: thd->lex->select_lex.no_wrap_view_item= save_wrapper; thd->lex->current_select= current_select_save; |