From 9050c44cffd26d7ff24c5c7413d1126f22078671 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 20 Jul 2004 10:34:39 +0300 Subject: fix case what VIEW have not tables (BUG#4614) mysql-test/r/view.result: test of VIEW without tables mysql-test/t/view.test: test of VIEW without tables sql/sql_view.cc: fix case what VIEW have not tables --- sql/sql_view.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sql/sql_view.cc') diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 32d09cc63ef..c558d1c5d34 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -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; -- cgit v1.2.1