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
commit92bd617a6522d277c5b528f1f69cbad83c101800 (patch)
tree0166109cba0ae1b9b6bfa81d8c38ecd1a0fe2276 /sql/table.cc
parent0845e138cdc16f227762b09cf67127418bdc5946 (diff)
parentb71476e3cc1fdeebd52649bec72ba351ab98a4cb (diff)
downloadmariadb-git-92bd617a6522d277c5b528f1f69cbad83c101800.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.