diff options
author | bell@sanja.is.com.ua <> | 2002-05-09 15:23:57 +0300 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2002-05-09 15:23:57 +0300 |
commit | 4cb3760b447b0df4bc3c1c13532c92b3af3a54ab (patch) | |
tree | f1077e91c5d64a2cfeebc6ff2fafe734c77fb369 /sql/table.h | |
parent | 0e29107fa1625e0466d0935350a010e6eb33e113 (diff) | |
download | mariadb-git-4cb3760b447b0df4bc3c1c13532c92b3af3a54ab.tar.gz |
total table list managment is changed
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/table.h b/sql/table.h index e30e29ddd3f..1c65c2a7ce2 100644 --- a/sql/table.h +++ b/sql/table.h @@ -143,7 +143,15 @@ typedef struct st_table_list { struct st_table_list *natural_join; /* natural join on this table*/ /* ... join ... USE INDEX ... IGNORE INDEX */ List<String> *use_index, *ignore_index; - TABLE *table; + /* + Usually hold reference on opened table, but may hold reference + to node of complete list of tables used in UNION & subselect. + */ + union + { + TABLE *table; /* opened table */ + st_table_list *table_list; /* pointer to node of list of all tables */ + }; GRANT_INFO grant; thr_lock_type lock_type; uint outer_join; /* Which join type */ |