diff options
author | unknown <sanja@montyprogram.com> | 2012-02-14 16:52:56 +0200 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2012-02-14 16:52:56 +0200 |
commit | 764eeeee74f999fe2107fc362236563be0025093 (patch) | |
tree | 8af3359111969a90c2670d887c5ef79262aab74f /sql/sql_lex.cc | |
parent | 7ab53e80627e54c6dece486bf0b059436b7e5777 (diff) | |
download | mariadb-git-764eeeee74f999fe2107fc362236563be0025093.tar.gz |
Fix for LP BUG#910123 MariaDB 5.3.3 causes 1093 error on Drupal
Problem was that now we can merge derived table (subquery in the FROM clause).
Fix: in case of detected conflict and presence of derived table "over" the table which cased the conflict - try materialization strategy.
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 f29f51325a9..4a69cd3b1fa 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -2885,6 +2885,7 @@ void st_lex::cleanup_after_one_table_open() if (all_selects_list != &select_lex) { derived_tables= 0; + select_lex.exclude_from_table_unique_test= false; /* cleunup underlying units (units of VIEW) */ for (SELECT_LEX_UNIT *un= select_lex.first_inner_unit(); un; |