diff options
author | halfspawn <j.brauge@qualiac.com> | 2017-05-31 09:49:17 +0200 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-08-11 14:47:36 +0400 |
commit | c9981fbee2436dcb893ff74e57a0f461a2020f92 (patch) | |
tree | 17bd91cbd8503834a22eb833fb6768d23c174823 /sql/sql_lex.cc | |
parent | 1a9e13d622382285d979e75774bdd1dde1660e2d (diff) | |
download | mariadb-git-c9981fbee2436dcb893ff74e57a0f461a2020f92.tar.gz |
MDEV-13003 - Oracle compatibility : Replace function
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 034cb62bbf4..f9c335e04bd 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -7161,3 +7161,14 @@ bool LEX::add_grant_command(THD *thd, enum_sql_command sql_command_arg, type= type_arg; return false; } + + +Item *LEX::make_item_func_replace(THD *thd, + Item *org, + Item *find, + Item *replace) +{ + return (thd->variables.sql_mode & MODE_ORACLE) ? + new (thd->mem_root) Item_func_replace_oracle(thd, org, find, replace) : + new (thd->mem_root) Item_func_replace(thd, org, find, replace); +} |