summaryrefslogtreecommitdiff
path: root/sql/sql_view.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-09-08 10:18:04 +0300
committerunknown <bell@sanja.is.com.ua>2004-09-08 10:18:04 +0300
commit7de077f7dfc209bdfcc847920a394ff4c55a2e96 (patch)
tree09e24097656202a2f0bff94dbc2778035a4118fa /sql/sql_view.cc
parentc647f600afb2f6967519d3262646ab2d98c6c61c (diff)
downloadmariadb-git-7de077f7dfc209bdfcc847920a394ff4c55a2e96.tar.gz
test of updating and fetching from the same table check (BUG##5157)
mysql-test/r/lowercase_view.result: test of updating and fetching from the same table check mysql-test/r/view.result: test of updating and fetching from the same table check mysql-test/t/lowercase_view.test: test of updating and fetching from the same table check mysql-test/t/view.test: test of updating and fetching from the same table check sql/mysql_priv.h: unique table test sql/sql_base.cc: unique table test which take into account views added sql/sql_delete.cc: unique table test which take into account views added sql/sql_insert.cc: unique table test which take into account views added sql/sql_parse.cc: unique table test which take into account views added sql/sql_update.cc: unique table test which take into account views added sql/sql_view.cc: unique table test which take into account views added sql/table.h: save next independent (do not belong to current view) table
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r--sql/sql_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc
index 2b1971907b3..cddeca33ebf 100644
--- a/sql/sql_view.cc
+++ b/sql/sql_view.cc
@@ -618,7 +618,7 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
if (lex->spfuns.array.buffer)
hash_free(&lex->spfuns);
- old_next= table->next_global;
+ old_next= table->old_next= table->next_global;
if ((table->next_global= lex->query_tables))
table->next_global->prev_global= &table->next_global;