diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2017-12-12 20:27:47 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2017-12-12 20:39:44 +0300 |
commit | a0e137c4a9e8a86aeca2b56456f75e1278b7460c (patch) | |
tree | a1aa1015764032aae27fa3b0b3686811fc008804 /sql/sql_select.h | |
parent | cb4657e3b42e273318344181754a0cf8fb393524 (diff) | |
download | mariadb-git-a0e137c4a9e8a86aeca2b56456f75e1278b7460c.tar.gz |
SQL: RIGHT JOIN in derived [fix #383]
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 4 |
1 files changed, 4 insertions, 0 deletions
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, |