summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-05-29 12:58:44 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-05-29 12:58:44 +0400
commit5cd18326c2167ddf1fe989154c519809cd26f175 (patch)
tree0166109cba0ae1b9b6bfa81d8c38ecd1a0fe2276 /sql/table.cc
parent8ce2e1bcbe1f00b6030b1c82ea62b3a64b1d0de9 (diff)
parent4efe046352f61cc7b8a44a604f96f8b68cf155c0 (diff)
downloadmariadb-git-5cd18326c2167ddf1fe989154c519809cd26f175.tar.gz
Merge 5.3->main -> 5.3-mwl90
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 5548c220897..ca78b7baa87 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -5345,6 +5345,19 @@ bool st_table::is_children_attached(void)
(parent && parent->children_attached));
}
+
+/*
+ Return TRUE if the table is filled at execution phase
+
+ (and so, the optimizer must not do anything that depends on the contents of
+ the table, like range analysis or constant table detection)
+*/
+
+bool st_table::is_filled_at_execution()
+{
+ return test(pos_in_table_list->jtbm_subselect);
+}
+
/*
Cleanup this table for re-execution.