diff options
author | monty@tik.mysql.fi <> | 2001-08-02 06:29:50 +0300 |
---|---|---|
committer | monty@tik.mysql.fi <> | 2001-08-02 06:29:50 +0300 |
commit | b13d453d50c47b647c868b9dcb425133eb58c776 (patch) | |
tree | fc9655d17169cd0d2593f7a2e888de91cd33dfe8 /sql/sql_show.cc | |
parent | 423f2851c57a253166d4e98cc71dc5177632ca10 (diff) | |
download | mariadb-git-b13d453d50c47b647c868b9dcb425133eb58c776.tar.gz |
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
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 34e8985007e..2bd6e383eac 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -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 |