From a0e137c4a9e8a86aeca2b56456f75e1278b7460c Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Tue, 12 Dec 2017 20:27:47 +0300 Subject: SQL: RIGHT JOIN in derived [fix #383] --- sql/sql_select.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sql/sql_select.h') diff --git a/sql/sql_select.h b/sql/sql_select.h index 659bc4e7827..662047c02e3 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -2215,6 +2215,10 @@ inline Item * and_items(THD *thd, Item* cond, Item *item) { return (cond ? (new (thd->mem_root) Item_cond_and(thd, cond, item)) : item); } +inline Item * or_items(THD *thd, Item* cond, Item *item) +{ + return (cond ? (new (thd->mem_root) Item_cond_or(thd, cond, item)) : item); +} bool choose_plan(JOIN *join, table_map join_tables); void optimize_wo_join_buffering(JOIN *join, uint first_tab, uint last_tab, table_map last_remaining_tables, -- cgit v1.2.1