1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13003 - Oracle compatibility : Replace function

This commit is contained in:
halfspawn
2017-05-31 09:49:17 +02:00
committed by Alexander Barkov
parent 1a9e13d622
commit c9981fbee2
9 changed files with 125 additions and 10 deletions

View File

@ -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);
}