diff options
author | unknown <bell@sanja.is.com.ua> | 2005-01-31 10:43:36 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-01-31 10:43:36 +0200 |
commit | ba98de430cd39c89e35407d01bf1c50877ebed02 (patch) | |
tree | f512b3278de25a03edefc495e364f09cd3b7f095 /sql/table.cc | |
parent | 913d1e97c170ace0fa04355fb0d6dbe3fb6938e2 (diff) | |
download | mariadb-git-ba98de430cd39c89e35407d01bf1c50877ebed02.tar.gz |
fixed problem in view over view setup (BUG#7433)
mysql-test/r/view.result:
view over other view setup
mysql-test/t/view.test:
view over other view setup
sql/table.cc:
before using ancestor, check that it exists
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc index a67563ff34f..3e1fc22e0f0 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -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; |