summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-08-25 16:14:42 +0300
committerbell@sanja.is.com.ua <>2004-08-25 16:14:42 +0300
commita5f063e0dab5a5c769596894a8d39bed2ab31875 (patch)
tree26f7ae5496c612f652cb69756bdb5e603e8641b2 /sql/table.cc
parent99f92a5cabb6da2743b1c717aace700c9a592e90 (diff)
downloadmariadb-git-a5f063e0dab5a5c769596894a8d39bed2ab31875.tar.gz
full text function moving to current select (BUG#4822)
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc10
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;