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

Fix UNION

New faster list iterators
Change list code to be simpler and faster
Optimize count(distinct)
New error messages for UNION
Make create_tmp_table more general to be usable by UNION
This commit is contained in:
monty@tik.mysql.fi
2001-08-02 06:29:50 +03:00
parent 423f2851c5
commit b13d453d50
57 changed files with 798 additions and 472 deletions

View File

@@ -72,7 +72,7 @@ mysqld_show_dbs(THD *thd,const char *wild)
DBUG_RETURN(1);
if (mysql_find_files(thd,&files,NullS,mysql_data_home,wild,1))
DBUG_RETURN(1);
List_iterator<char> it(files);
List_iterator_fast<char> it(files);
while ((file_name=it++))
{
if (!opt_safe_show_db || thd->master_access ||
@@ -154,7 +154,7 @@ int mysqld_show_tables(THD *thd,const char *db,const char *wild)
DBUG_RETURN(1);
if (mysql_find_files(thd,&files,db,path,wild,0))
DBUG_RETURN(-1);
List_iterator<char> it(files);
List_iterator_fast<char> it(files);
while ((file_name=it++))
{
thd->packet.length(0);
@@ -284,7 +284,7 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
if (mysql_find_files(thd,&files,db,path,wild,0))
DBUG_RETURN(-1);
List_iterator<char> it(files);
List_iterator_fast<char> it(files);
while ((file_name=it++))
{
TABLE_LIST table_list;
@@ -1165,6 +1165,6 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
}
#ifdef __GNUC__
template class List_iterator<char>;
template class List_iterator_fast<char>;
template class List<char>;
#endif