summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-10-25 17:32:28 +0300
committerunknown <bell@sanja.is.com.ua>2004-10-25 17:32:28 +0300
commit9f9893c97139098f27795a8cd96ef4b131a94a9e (patch)
treeafc8943b8f56ae85e2d764dfe4921c803e11dcea /sql/table.h
parent4f410c4b6909a506ead60b4a4f802a94b079b72c (diff)
downloadmariadb-git-9f9893c97139098f27795a8cd96ef4b131a94a9e.tar.gz
fixed detection of updating table on which we select (BUG#6032)
mysql-test/r/view.result: Trys update table from which we select using views and subqueries mysql-test/t/view.test: Trys update table from which we select using views and subqueries sql/sql_acl.cc: fix of fix for bug BUG#5976 sql/sql_base.cc: protection against temporary tables which have not table->table->table_cache_key fixed unique check to skip the same table instences sql/sql_delete.cc: removed next_independent to allow to check VIEW subqueries sql/sql_insert.cc: removed next_independent to allow to check VIEW subqueries sql/sql_parse.cc: removed next_independent to allow to check VIEW subqueries sql/sql_update.cc: removed next_independent to allow to check VIEW subqueries sql/sql_view.cc: removed next_independent to allow to check VIEW subqueries optimisation to mark as non-updatable views with subqueries by same table. sql/table.h: removed next_independent to allow to check VIEW subqueries
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sql/table.h b/sql/table.h
index 3e2a61d5a21..de048e7cc5c 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -232,8 +232,6 @@ typedef struct st_table_list
st_table_list *ancestor;
/* most upper view this table belongs to */
st_table_list *belong_to_view;
- /* next_global before adding VIEW tables */
- st_table_list *old_next;
Item *where; /* VIEW WHERE clause condition */
Item *check_option; /* WITH CHECK OPTION condition */
LEX_STRING query; /* text of (CRETE/SELECT) statement */
@@ -286,12 +284,6 @@ typedef struct st_table_list
bool setup_ancestor(THD *thd, Item **conds, uint8 check_option);
bool placeholder() {return derived || view; }
void print(THD *thd, String *str);
- inline st_table_list *next_independent()
- {
- if (view)
- return old_next;
- return next_global;
- }
} TABLE_LIST;
class Item;