diff options
author | Igor Babaev <igor@askmonty.org> | 2016-09-14 01:06:45 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2016-09-14 01:06:45 -0700 |
commit | c22d307afa1a6accbfe9857256cad01c1eacd677 (patch) | |
tree | 2a78540435691e50fc50fa1d625f30fea3197e28 /sql/sql_lex.cc | |
parent | 61d46e0423c61ff2fd1eedd707924193006cdedd (diff) | |
download | mariadb-git-c22d307afa1a6accbfe9857256cad01c1eacd677.tar.gz |
Fixed bug mdev-10785.
The condition pushed into WHERE/HAVING of a materialized
view/derived table may differ for different executions of
the same prepared statement. That's why the should be
ANDed with the existing WHERE/HAVING conditions only after all
permanent transformations of these conditions has been
performed.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 5c2b004a471..592de98ca0f 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -2093,6 +2093,7 @@ void st_select_lex::init_query() item_list.empty(); join= 0; having= prep_having= where= prep_where= 0; + cond_pushed_into_where= cond_pushed_into_having= 0; olap= UNSPECIFIED_OLAP_TYPE; having_fix_field= 0; context.select_lex= this; |