diff options
author | unknown <monty@hundin.mysql.fi> | 2001-12-06 01:05:30 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-12-06 01:05:30 +0200 |
commit | ff8c7348648b2a2e1ce14d8332c065a38a43ca0c (patch) | |
tree | b6eaff9c9c574324b7a2aae18f5de2e52f89576c /sql/sql_base.cc | |
parent | 84788e278f97ccabe0cfe6d5b6cfcdbe1fe86c59 (diff) | |
download | mariadb-git-ff8c7348648b2a2e1ce14d8332c065a38a43ca0c.tar.gz |
Update of query cache code
Docs/manual.texi:
Added information about RESET
sql/mysql_priv.h:
Fixed wrong type
sql/sql_base.cc:
Removed wrong info in DBUG output
sql/sql_class.cc:
cleanup
sql/sql_parse.cc:
Fixed wrong type
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index b913233806f..7f6ffd04d98 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -2195,16 +2195,18 @@ int setup_ftfuncs(THD *thd) int init_ftfuncs(THD *thd, bool no_order) { - List_iterator<Item_func_match> li(thd->lex.select_lex.ftfunc_list); - Item_func_match *ifm; - DBUG_PRINT("info",("Performing FULLTEXT search")); - thd->proc_info="FULLTEXT initialization"; - - while ((ifm=li++)) + if (thd->lex.select_lex.ftfunc_list.elements) { - ifm->init_search(no_order); - } + List_iterator<Item_func_match> li(thd->lex.select_lex.ftfunc_list); + Item_func_match *ifm; + DBUG_PRINT("info",("Performing FULLTEXT search")); + thd->proc_info="FULLTEXT initialization"; + while ((ifm=li++)) + { + ifm->init_search(no_order); + } + } return 0; } |