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

- stackoverflow check added for view of view processing

- fixed bug in join view processing
- postreview fixes (BUG#9398 & BUG#8703)
This commit is contained in:
bell@sanja.is.com.ua
2005-04-03 01:23:45 +03:00
parent 05c9defefa
commit e2a83fca56
4 changed files with 62 additions and 27 deletions

View File

@ -755,17 +755,17 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
table->ancestor= view_tables;
/* next table should include SELECT_LEX under this table SELECT_LEX */
table->ancestor->select_lex= table->select_lex;
/*
Process upper level tables of view. As far as we do noy suport union
here we can go through local tables of view most upper SELECT
*/
for(tbl= (TABLE_LIST*)view_select->table_list.first;
for(tbl= view_tables;
tbl;
tbl= tbl->next_local)
{
/* next table should include SELECT_LEX under this table SELECT_LEX */
tbl->select_lex= table->select_lex;
/*
move lock type (TODO: should we issue error in case of TMPTABLE
algorithm and non-read locking)?