diff options
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index b7cabe21638..acb60b44282 100644 --- a/sql/table.h +++ b/sql/table.h @@ -217,6 +217,8 @@ 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 */ LEX_STRING query; /* text of (CRETE/SELECT) statement */ LEX_STRING md5; /* md5 of query tesxt */ @@ -260,6 +262,12 @@ typedef struct st_table_list bool setup_ancestor(THD *thd, Item **conds); 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; |