summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2013-08-26 12:55:58 -0700
committerIgor Babaev <igor@askmonty.org>2013-08-26 12:55:58 -0700
commit901737c9782215e409ae6f7869f5d0adbe215ad6 (patch)
treed95324308b0c054ebe366be14124045cf8148fa7 /sql/sql_select.h
parentdbc84ff96c021f9d8b5968812a416bc6890d015a (diff)
downloadmariadb-git-901737c9782215e409ae6f7869f5d0adbe215ad6.tar.gz
Fixed bug mdev-4944.
The patch to fix mdev-4418 turned out to be incorrect. At the substitution of single row tables in make_join_statistics() the used multiple equalities may change and references to the new multiple equalities must be updated. The function remove_eq_conds() takes care of it and it should be called right after the substitution of single row tables. Calling it after the call of make_join_statistics was a mistake.
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r--sql/sql_select.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index eb064b39f22..083302d1e4c 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -1139,6 +1139,11 @@ public:
bool need_tmp, hidden_group_fields;
DYNAMIC_ARRAY keyuse;
Item::cond_result cond_value, having_value;
+ /**
+ Impossible where after reading const tables
+ (set in make_join_statistics())
+ */
+ bool impossible_where;
List<Item> all_fields; ///< to store all fields that used in query
///Above list changed to use temporary table
List<Item> tmp_all_fields1, tmp_all_fields2, tmp_all_fields3;