Browse Source
Fixed bug mdev-10785.
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.pull/241/head
6 changed files with 59 additions and 33 deletions
-
16mysql-test/r/derived_cond_pushdown.result
-
17mysql-test/t/derived_cond_pushdown.test
-
38sql/sql_derived.cc
-
1sql/sql_lex.cc
-
2sql/sql_lex.h
-
18sql/sql_select.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue