summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-11-17 10:30:16 +0400
committerholyfoot/hf@mysql.com/deer.(none) <>2006-11-17 10:30:16 +0400
commite95e23b0f3305d498b49809af5793415964afc65 (patch)
treecb20b9f192e4db85bad99d431083278909cfe454 /sql/table.cc
parent497ccd6b87b9978fadac6c48d4ae6bd2f689feb7 (diff)
parent5198354584e56682e5d5b87ee680582aac44ea61 (diff)
downloadmariadb-git-e95e23b0f3305d498b49809af5793415964afc65.tar.gz
Merge bk@192.168.21.1:mysql-5.0-opt
into mysql.com:/home/hf/work/mysql-5.0-0mrg
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index d72379efb32..5d5d5095e7c 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -3032,6 +3032,23 @@ void st_table_list::reinit_before_use(THD *thd)
embedding->nested_join->join_list.head() == embedded);
}
+/*
+ Return subselect that contains the FROM list this table is taken from
+
+ SYNOPSIS
+ st_table_list::containing_subselect()
+
+ RETURN
+ Subselect item for the subquery that contains the FROM list
+ this table is taken from if there is any
+ 0 - otherwise
+
+*/
+
+Item_subselect *st_table_list::containing_subselect()
+{
+ return (select_lex ? select_lex->master_unit()->item : 0);
+}
/*****************************************************************************
** Instansiate templates