summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-08-23 23:17:36 +0300
committerunknown <bell@sanja.is.com.ua>2005-08-23 23:17:36 +0300
commiteb7c4ff2dbcfcc0292dcd1ff577b1d203463834c (patch)
treeb23f9eadbed55b7a8cbac4da9ef2cc8338d7fa44 /sql/table.h
parent142f65834b73e99cce98d9c537c22584bdd81033 (diff)
parent705118d1f627c6aa9a14f2a00f080b13af7b3484 (diff)
downloadmariadb-git-eb7c4ff2dbcfcc0292dcd1ff577b1d203463834c.tar.gz
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0
into sanja.is.com.ua:/home/bell/mysql/bk/work-bug3-5.0 BitKeeper/etc/config: Auto merged sql/mysql_priv.h: Auto merged sql/sql_base.cc: Auto merged sql/sql_delete.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_update.cc: Auto merged sql/sql_view.cc: Auto merged sql/table.cc: Auto merged mysql-test/r/view.result: merge mysql-test/t/view.test: merge sql/share/errmsg.txt: merge sql/sql_insert.cc: merge sql/table.h: merge
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index c9095ad48f6..d7c14e1938a 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -602,6 +602,8 @@ typedef struct st_table_list
st_table_list *first_leaf_for_name_resolution();
st_table_list *last_leaf_for_name_resolution();
bool is_leaf_for_name_resolution();
+ inline st_table_list *top_table()
+ { return belong_to_view ? belong_to_view : this; }
inline bool prepare_check_option(THD *thd)
{
bool res= FALSE;