1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

support of view to COM_FIELD_LIST added (BUG#5145)

This commit is contained in:
bell@sanja.is.com.ua
2004-09-07 15:50:56 +03:00
parent 481e895494
commit c84eeefef4
2 changed files with 18 additions and 2 deletions

View File

@ -1124,14 +1124,19 @@ void
mysqld_list_fields(THD *thd, TABLE_LIST *table_list, const char *wild)
{
TABLE *table;
int res;
DBUG_ENTER("mysqld_list_fields");
DBUG_PRINT("enter",("table: %s",table_list->real_name));
if (!(table = open_ltable(thd, table_list, TL_UNLOCK)))
table_list->lock_type= TL_UNLOCK;
if ((res= open_and_lock_tables(thd, table_list)))
{
send_error(thd);
if (res < 0)
send_error(thd);
DBUG_VOID_RETURN;
}
table= table_list->table;
List<Item> field_list;
Field **ptr,*field;