1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Fixed bug with GROUP BY on NULL fields.

(Merge of code from 4.0)
This commit is contained in:
monty@mashka.mysql.fi
2002-08-05 18:10:53 +03:00
parent 8a38deea44
commit 621b5da80e
9 changed files with 83 additions and 27 deletions

View File

@@ -2222,18 +2222,18 @@ int setup_ftfuncs(THD *thd)
return 0;
}
int init_ftfuncs(THD *thd, bool no_order)
{
List_iterator<Item_func_match> li(thd->lex.ftfunc_list);
Item_func_match *ifm;
DBUG_PRINT("info",("Performing FULLTEXT search"));
thd->proc_info="FULLTEXT initialization";
while ((ifm=li++))
if (thd->lex.ftfunc_list.elements)
{
ifm->init_search(no_order);
}
List_iterator<Item_func_match> li(thd->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;
}