1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fixed problem in view over view setup (BUG#7433)

This commit is contained in:
bell@sanja.is.com.ua
2005-01-31 10:43:36 +02:00
parent 25042ae70c
commit e447b88869
3 changed files with 20 additions and 1 deletions

View File

@ -1613,7 +1613,7 @@ void st_table_list::set_ancestor()
tbl->table->grant= grant;
}
/* if view contain only one table, substitute TABLE of it */
if (!ancestor->next_local)
if (ancestor && !ancestor->next_local)
{
table= ancestor->table;
schema_table= ancestor->schema_table;