1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix case what VIEW have not tables (BUG#4614)

This commit is contained in:
bell@sanja.is.com.ua
2004-07-20 10:34:39 +03:00
parent 1e3f10a4b1
commit 054cdbe72c
3 changed files with 20 additions and 0 deletions

View File

@ -677,6 +677,11 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
if ((tbl_end->next_global= old_next))
tbl_end->next_global->prev_global= &tbl_end->next_global;
}
else
{
/* VIEW do not contain tables */
table->next_global= old_next;
}
}
table->derived= &lex->unit;