1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MariaDB 5.2 -> 5.2 post-merge fixes:

- When building multiple-equalities for HAVING, don't set JOIN::cond_equal, set
  join_having_equal instead. Setting JOIN::cond_equal based on HAVING makes 
  equality propagation data self-inconsistent
This commit is contained in:
Sergey Petrunya
2010-10-17 18:05:29 +04:00
parent c27b3902a3
commit f75fd03ea9
2 changed files with 10 additions and 5 deletions

View File

@ -1570,6 +1570,7 @@ public:
TABLE_LIST *tables_list; ///<hold 'tables' parameter of mysql_select
List<TABLE_LIST> *join_list; ///< list of joined tables in reverse order
COND_EQUAL *cond_equal;
COND_EQUAL *having_equal;
SQL_SELECT *select; ///<created in optimisation phase
JOIN_TAB *return_tab; ///<used only for outer joins
Item **ref_pointer_array; ///<used pointer reference for this select
@ -1657,6 +1658,7 @@ public:
zero_result_cause= 0;
optimized= 0;
cond_equal= 0;
having_equal= 0;
group_optimized_away= 0;
no_rows_in_result_called= 0;